Ejemplo n.º 1
0
        public static IScreen PickScreen()
        {
            var picker = new VideoSourcePickerWindow(VideoPickerMode.Screen);

            picker.ShowDialog();

            return(picker.SelectedScreen);
        }
Ejemplo n.º 2
0
        public static IWindow PickWindow(Predicate <IWindow> filter)
        {
            var picker = new VideoSourcePickerWindow(VideoPickerMode.Window)
            {
                Border =
                {
                    BorderThickness = new Thickness(5)
                },
                Predicate = filter
            };

            picker.ShowDialog();

            return(picker.SelectedWindow);
        }