I am new with WPF, I am trying to change one of my applications form windows application to a browser application. In browser applications we use pages instead of windows. So I wonder if I can still use dependency properties. Here is my code in the WPF Windows Application:
public static readonly DependencyProperty KinectSensorManagerProperty =
DependencyProperty.Register(
"KinectSensorManager",
typeof(KinectSensorManager),
typeof(MainWindow),
new PropertyMetadata(null));
public KinectSensorManager KinectSensorManager
{
get { return (KinectSensorManager)GetValue(KinectSensorManagerProperty); }
set { SetValue(KinectSensorManagerProperty, value); }
}
Therefore, can I use the same code in a browser application? And if not what is the substitute?