mirror of https://github.com/AMT-Cheif/Stylet.git
Mucking about with an integration test for BindingProxy
See also SetResourceReference and BindingOperations.SetBinding(inputBinding, CommandProperty, new Binding("."))
This commit is contained in:
parent
a703659095
commit
f4bf876c6b
|
@ -35,5 +35,16 @@
|
||||||
<Button DockPanel.Dock="Top" Command="{s:Action TestDispatcher}">Test Dispatcher</Button>
|
<Button DockPanel.Dock="Top" Command="{s:Action TestDispatcher}">Test Dispatcher</Button>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
</GroupBox>
|
</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>
|
</DockPanel>
|
||||||
</Window>
|
</Window>
|
||||||
|
|
|
@ -64,5 +64,10 @@ namespace StyletIntegrationTests
|
||||||
else
|
else
|
||||||
this.windowManager.ShowMessageBox("Failure");
|
this.windowManager.ShowMessageBox("Failure");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void ShowActionTargetSaved()
|
||||||
|
{
|
||||||
|
this.windowManager.ShowMessageBox("Saved!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue