This is a migrated thread and some comments may be shown as answers.

Full Screen block

1 Answer 92 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Marion
Top achievements
Rank 1
Marion asked on 22 Mar 2016, 10:01 AM

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.

 

 

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 24 Mar 2016, 09:17 AM
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.
Tags
General Discussion
Asked by
Marion
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or