VideoSourcePickerWindow(VideoPickerMode Mode) { _mode = Mode; InitializeComponent(); Left = Top = 0; Width = SystemParameters.VirtualScreenWidth; Height = SystemParameters.VirtualScreenHeight; UpdateBackground(); _screens = Screen.AllScreens; _windows = Window.EnumerateVisible().ToArray(); ShowCancelText(); }
VideoSourcePickerWindow(VideoPickerMode Mode) { _mode = Mode; InitializeComponent(); Left = SystemParameters.VirtualScreenLeft; Top = SystemParameters.VirtualScreenTop; Width = SystemParameters.VirtualScreenWidth; Height = SystemParameters.VirtualScreenHeight; UpdateBackground(); var platformServices = ServiceProvider.Get <IPlatformServices>(); _screens = platformServices.EnumerateScreens().ToArray(); _windows = platformServices.EnumerateWindows().ToArray(); ShowCancelText(); }