Full Screen block

2 posts, 0 answers
  1. Marion
    Marion avatar
    1 posts
    Member since:
    Feb 2016

    Posted 22 Mar Link to this post

    Hi,

     

    I would like to create an WPF/Telerik application. User can display application on full screen and blocked it with a password even if user use "Window" key on keyboard.

    For the moment, I displayed it into full screen ( WindowStyle="None" WindowState="Maximized")  and put e.handled= true when Window_PreviewKeyDown event (if (e.Key == Key.LWin){e.Handled = true;Topmost = true;}). The second part doesn't work, window menu appears when I click on "Window" key.

    Do you have a solution/ideas for me ?

    Have a good day.

     

     

  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 24 Mar Link to this post

    Hi Marion,

    This issue is not related to any of our WPF controls, also there are many resources on the matter in StackOverflow and MSDN, you can check the following for a start:
    how to disable special keys in windows application using c#
    Capturing the windows key in c# (wpf)

    Regards,
    Yana
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top