Click here to Skip to main content
15,912,205 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
My wpf application don't minimize when i click windows key + D key.it will stable in desktop only.

What I have tried:

i tried many ways but its not working...i done one way that time that windows + d entirely not working ,that key blocked .so other application also not minimized.
Posted
Updated 16-Feb-20 12:10pm

1 solution

Do include the code as well that you are trying that would help to understand your problem better. Based on the understanding that i got about your problem, try this

in XAML:

<Window.InputBindings>
		<KeyBinding Modifiers="Windows" Key="D" Command="{Binding YourVMCommand}" CommandParameter="{Binding ElementName=AppWindowName}"/>
	</Window.InputBindings>


In View Model set
WindowState = WindowState.Minimized;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900