protected override void OnStartingUp(StartingUpCancelEventArgs e) { // Setup the application window. _window = new NavigationWindow(); _window.TopMost = true; _window.CanResize = false; _window.WindowStyle = WindowStyle.None; _window.WindowState = WindowState.Maximized; Mouse.OverrideCursor = Cursor.None; _isFirstMouseClick = true; //Navigate to your page _window.Navigate(new Uri(screenSaverPage, false, true)); _window.Show(); _window.Focus(); base.OnStartingUp(e); // Add keyboard and mouse event handlers _window.AddHandler(Keyboard.KeyDownEventID, new KeyEventHandler(DoSSKeyDown), true); _window.AddHandler(Mouse.MouseRightButtonDownEventID, new MouseButtonEventHandler(DoSSMouseRightButtonDown), true); _window.AddHandler(Mouse.MouseLeftButtonDownEventID, new MouseButtonEventHandler(DoSSMouseLeftButtonDown), true); _window.AddHandler(Mouse.MouseWheelEventID, new MouseWheelEventHandler(DoSSMouseWheel), true); _window.AddHandler(Mouse.MouseMoveEventID, new MouseEventHandler(DoSSMouseMove), true); }