-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInitiativeSet.xaml
24 lines (24 loc) · 1.35 KB
/
InitiativeSet.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<Window x:Class="WpfApplication1.InitiativeSet"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="InitiativeSet" Height="412" Width="321">
<Window.CommandBindings>
<CommandBinding Command="New" Executed="SetThisInitiative" />
</Window.CommandBindings>
<Window.InputBindings>
<KeyBinding Key="Enter" Command="New"/>
</Window.InputBindings>
<Window.Resources>
<DataTemplate x:Key="listBoxTemplate">
<StackPanel Orientation="Horizontal">
<TextBlock Height="20" Name="textBlock2" Width="215" Text="{Binding Path=CName}" FontWeight="Bold" />
<TextBlock Height="20" Name="textBlock3" Width="25" Text="{Binding Path=Initiative}" FontWeight="Bold" />
</StackPanel>
</DataTemplate>
</Window.Resources>
<Canvas>
<ListBox Canvas.Left="19" Canvas.Top="9" ItemsSource="{Binding UpdateSourceTrigger=PropertyChanged}" ItemTemplate="{StaticResource listBoxTemplate}" IsSynchronizedWithCurrentItem="True" Height="317" Name="listBox1" Width="249" />
<TextBox Canvas.Left="19" Canvas.Top="335" Height="27" Name="initBox" Width="36" />
<Button Canvas.Left="61" Canvas.Top="335" Height="27" Name="nextButton" Command="New" Width="70">Next</Button>
</Canvas>
</Window>