Quantcast
Channel: patterns & practices: Prism
Viewing all articles
Browse latest Browse all 1878

New Post: InputBindings in Modal Window

$
0
0
How to setup InputBindings in the modal window? I can't do through the style because InputBindings is not a DependencyProperty.
<Window.InputBindings>
        <KeyBinding Key="A"
              Modifiers="Control" 
              Command="Close" />
    </Window.InputBindings>
Can't do this:
<Style x:Key="WindowRegionStyle" TargetType="Window">
                <Setter Property="Width" Value="{Binding Content.Width, RelativeSource={RelativeSource Self}}" />
                <Setter Property="Height" Value="{Binding Content.Height, RelativeSource={RelativeSource Self}}" />
                <Setter Property="WindowStyle" Value="None"/>
                <Setter Property="ResizeMode" Value="NoResize"/>
                <Setter Property="ShowInTaskbar" Value="False"/>
                <Setter Property="InputBindings"></Setter>
            </Style>

Viewing all articles
Browse latest Browse all 1878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>