///
/// A behavior that shows a camera view on the background of a panel
///
public class CameraViewBackgroundBehavior : SafeBehavior
{
private PhotoCamera camera;
private VideoBrush backgroundBrush;
public CameraViewBackgroundBehavior()
{
ListenToPageBackEvent = true;
}
}
}
Note this behavior needs to detect the user navigating back to the page – this in necessary because we need to do something with the camera.
In stead of all the song and dance for attaching and detaching events...(Read whole news on source site)