views:

35

answers:

1

how can I make short cut key in mainwindows in WPF example when I press ctrl+f to open new window ?

A: 

Look at CommandBinding http://msdn.microsoft.com/en-us/library/system.windows.input.commandbinding.aspx

<UserControl.CommandBindings> 
    <CommandBinding  
        Command="ApplicationCommands.Open" 
        Executed="_HandleApplicationOpenCommandExecute"/>         
</UserControl.CommandBindings> 
Jerod Houghtelling
thanks so much really
salamonti