Mucking about with an integration test for BindingProxy

See also SetResourceReference and
BindingOperations.SetBinding(inputBinding, CommandProperty, new Binding("."))
This commit is contained in:
Antony Male 2015-09-23 22:11:24 +01:00
parent a703659095
commit f4bf876c6b
2 changed files with 16 additions and 0 deletions

View File

@ -35,5 +35,16 @@
<Button DockPanel.Dock="Top" Command="{s:Action TestDispatcher}">Test Dispatcher</Button>
</DockPanel>
</GroupBox>
<GroupBox DockPanel.Dock="Top" Header="ActionTarget" Padding="10">
<DockPanel>
<TextBlock DockPanel.Dock="Top">Verify that pressing ctrl+s in the text box creates a dialog</TextBlock>
<TextBox DockPanel.Dock="Top">
<TextBox.InputBindings>
<KeyBinding Key="S" Modifiers="Ctrl" Command="{s:Action ShowActionTargetSaved}"/>
</TextBox.InputBindings>
</TextBox>
</DockPanel>
</GroupBox>
</DockPanel>
</Window>

View File

@ -64,5 +64,10 @@ namespace StyletIntegrationTests
else
this.windowManager.ShowMessageBox("Failure");
}
public void ShowActionTargetSaved()
{
this.windowManager.ShowMessageBox("Saved!");
}
}
}