public static IScreen PickScreen()
        {
            var picker = new VideoSourcePickerWindow(VideoPickerMode.Screen);

            picker.ShowDialog();

            return(picker.SelectedScreen);
        }
        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);
        }
        public static IWindow PickWindow(IEnumerable <IntPtr> SkipWindows)
        {
            var picker = new VideoSourcePickerWindow(VideoPickerMode.Window)
            {
                Border =
                {
                    BorderThickness = new Thickness(5)
                }
            };

            if (SkipWindows != null)
            {
                picker.SkipWindows.AddRange(SkipWindows);
            }

            picker.ShowDialog();

            return(picker.SelectedWindow);
        }