/*-------------------------------------------------------------------------------------------------------*/ public VideoScreen() { InitializeComponent(); cameraControl = new Camera_NET.CameraControl(); _CameraChoice = new CameraChoice(); InitializeDirectShow(); }
private void grid_Loaded(object sender, RoutedEventArgs e) { var camera = new Camera_NET.CameraControl(); grid.Children.Add(camera); }