|
7 | 7 | DataContext="{Binding ComboBoxDemo,Source={StaticResource Locator}}" |
8 | 8 | Background="{DynamicResource RegionBrush}"> |
9 | 9 | <hc:TransitioningContentControl> |
10 | | - <ToolBarTray Margin="32" VerticalAlignment="Center"> |
11 | | - <ToolBar Padding="6" Header="{ex:Lang Key={x:Static langs:LangKeys.Title}}"> |
12 | | - <CheckBox IsChecked="True" Margin="10,0,0,0"/> |
13 | | - <Separator Margin="10,0,0,0"/> |
14 | | - <RadioButton Margin="10,0,0,0"/> |
15 | | - <StackPanel Orientation="Horizontal"> |
16 | | - <RadioButton IsChecked="True" Margin="10,0,0,0"/> |
| 10 | + <StackPanel Margin="32"> |
| 11 | + <ToolBarTray VerticalAlignment="Center"> |
| 12 | + <ToolBar Padding="6" Header="{ex:Lang Key={x:Static langs:LangKeys.Title}}"> |
| 13 | + <CheckBox IsChecked="True" Margin="10,0,0,0"/> |
| 14 | + <Separator Margin="10,0,0,0"/> |
17 | 15 | <RadioButton Margin="10,0,0,0"/> |
18 | | - </StackPanel> |
19 | | - <Button Content="{ex:Lang Key={x:Static langs:LangKeys.Button}}" Margin="10,0,0,0"/> |
20 | | - <Button Content="{ex:Lang Key={x:Static langs:LangKeys.Button}}" Margin="10,0,0,0" Style="{StaticResource ButtonPrimary}"/> |
21 | | - </ToolBar> |
22 | | - <ToolBar Band="1" Padding="6"> |
23 | | - <ComboBox ItemsSource="{Binding DataList}" SelectedIndex="0" Width="230"/> |
24 | | - <TextBox Text="{ex:Lang Key={x:Static langs:LangKeys.Text},Converter={StaticResource StringRepeatConverter},ConverterParameter=4,Mode=OneWay}" Margin="10,0,0,0" Width="230"/> |
25 | | - </ToolBar> |
26 | | - <ToolBar Band="0" Padding="6"> |
27 | | - <Menu Background="Transparent" VerticalAlignment="Center"> |
28 | | - <MenuItem Header="{ex:Lang Key={x:Static langs:LangKeys.Repository}}"> |
29 | | - <MenuItem Header="GitHub"> |
30 | | - <MenuItem.Icon> |
31 | | - <Path Data="{StaticResource GithubGeometry}" Fill="{DynamicResource PrimaryTextBrush}"/> |
32 | | - </MenuItem.Icon> |
| 16 | + <StackPanel Orientation="Horizontal"> |
| 17 | + <RadioButton IsChecked="True" Margin="10,0,0,0"/> |
| 18 | + <RadioButton Margin="10,0,0,0"/> |
| 19 | + </StackPanel> |
| 20 | + <Button Content="{ex:Lang Key={x:Static langs:LangKeys.Button}}" Margin="10,0,0,0"/> |
| 21 | + <Button Content="{ex:Lang Key={x:Static langs:LangKeys.Button}}" Margin="10,0,0,0" Style="{StaticResource ButtonPrimary}"/> |
| 22 | + </ToolBar> |
| 23 | + <ToolBar Band="1" Padding="6"> |
| 24 | + <ComboBox Margin="10,0,0,0" ItemsSource="{Binding DataList}" SelectedIndex="0" Width="230"/> |
| 25 | + <TextBox Text="{ex:Lang Key={x:Static langs:LangKeys.Text},Converter={StaticResource StringRepeatConverter},ConverterParameter=4,Mode=OneWay}" Margin="10,0,0,0" Width="230"/> |
| 26 | + </ToolBar> |
| 27 | + <ToolBar Band="0" Padding="6"> |
| 28 | + <Menu Background="Transparent" VerticalAlignment="Center"> |
| 29 | + <MenuItem Header="{ex:Lang Key={x:Static langs:LangKeys.Repository}}"> |
| 30 | + <MenuItem Header="GitHub"> |
| 31 | + <MenuItem.Icon> |
| 32 | + <Path Data="{StaticResource GithubGeometry}" Fill="{DynamicResource PrimaryTextBrush}"/> |
| 33 | + </MenuItem.Icon> |
| 34 | + </MenuItem> |
| 35 | + <MenuItem Header="NuGet"> |
| 36 | + <MenuItem.Icon> |
| 37 | + <Path Data="{StaticResource NugetGeometry}" Fill="#224880"/> |
| 38 | + </MenuItem.Icon> |
| 39 | + </MenuItem> |
33 | 40 | </MenuItem> |
34 | | - <MenuItem Header="NuGet"> |
35 | | - <MenuItem.Icon> |
36 | | - <Path Data="{StaticResource NugetGeometry}" Fill="#224880"/> |
37 | | - </MenuItem.Icon> |
| 41 | + <MenuItem Header="{ex:Lang Key={x:Static langs:LangKeys.About}}"> |
| 42 | + <MenuItem Header="{ex:Lang Key={x:Static langs:LangKeys.Email}}"> |
| 43 | + <MenuItem.Icon> |
| 44 | + <Path Data="{StaticResource EmailGeometry}" Fill="{DynamicResource PrimaryBrush}"/> |
| 45 | + </MenuItem.Icon> |
| 46 | + </MenuItem> |
| 47 | + <MenuItem Header="{ex:Lang Key={x:Static langs:LangKeys.Chatroom}}"> |
| 48 | + <MenuItem.Icon> |
| 49 | + <Path Data="{StaticResource GitterGeometry}" Fill="#e52e64"/> |
| 50 | + </MenuItem.Icon> |
| 51 | + </MenuItem> |
| 52 | + <MenuItem Header="{ex:Lang Key={x:Static langs:LangKeys.Blog}}"> |
| 53 | + <MenuItem.Icon> |
| 54 | + <Path Data="{StaticResource CnblogsGeometry}" Fill="{DynamicResource PrimaryTextBrush}"/> |
| 55 | + </MenuItem.Icon> |
| 56 | + </MenuItem> |
38 | 57 | </MenuItem> |
39 | | - </MenuItem> |
40 | | - <MenuItem Header="{ex:Lang Key={x:Static langs:LangKeys.About}}"> |
41 | | - <MenuItem Header="{ex:Lang Key={x:Static langs:LangKeys.Email}}"> |
42 | | - <MenuItem.Icon> |
43 | | - <Path Data="{StaticResource EmailGeometry}" Fill="{DynamicResource PrimaryBrush}"/> |
44 | | - </MenuItem.Icon> |
45 | | - </MenuItem> |
46 | | - <MenuItem Header="{ex:Lang Key={x:Static langs:LangKeys.Chatroom}}"> |
47 | | - <MenuItem.Icon> |
48 | | - <Path Data="{StaticResource GitterGeometry}" Fill="#e52e64"/> |
49 | | - </MenuItem.Icon> |
50 | | - </MenuItem> |
51 | | - <MenuItem Header="{ex:Lang Key={x:Static langs:LangKeys.Blog}}"> |
52 | | - <MenuItem.Icon> |
53 | | - <Path Data="{StaticResource CnblogsGeometry}" Fill="{DynamicResource PrimaryTextBrush}"/> |
54 | | - </MenuItem.Icon> |
55 | | - </MenuItem> |
56 | | - </MenuItem> |
57 | | - <MenuItem Header="{ex:Lang Key={x:Static langs:LangKeys.Contributors}}"/> |
58 | | - </Menu> |
59 | | - </ToolBar> |
60 | | - </ToolBarTray> |
| 58 | + <MenuItem Header="{ex:Lang Key={x:Static langs:LangKeys.Contributors}}"/> |
| 59 | + </Menu> |
| 60 | + </ToolBar> |
| 61 | + </ToolBarTray> |
| 62 | + <ToolBarTray Orientation="Vertical" Margin="0,16,0,0"> |
| 63 | + <ToolBar Padding="6" Header="{ex:Lang Key={x:Static langs:LangKeys.Title}}"> |
| 64 | + <CheckBox IsChecked="True" Margin="0,10,0,0"/> |
| 65 | + <Separator Margin="0,10,0,0"/> |
| 66 | + <RadioButton Margin="0,10,0,0"/> |
| 67 | + <StackPanel> |
| 68 | + <RadioButton IsChecked="True" Margin="0,10,0,0"/> |
| 69 | + <RadioButton Margin="0,10,0,0"/> |
| 70 | + </StackPanel> |
| 71 | + <Button Content="{ex:Lang Key={x:Static langs:LangKeys.Button}}" Margin="0,10,0,0"/> |
| 72 | + <Button Content="{ex:Lang Key={x:Static langs:LangKeys.Button}}" Margin="0,10,0,0" Style="{StaticResource ButtonPrimary}"/> |
| 73 | + </ToolBar> |
| 74 | + <ToolBar Band="1" Padding="6" Header="{ex:Lang Key={x:Static langs:LangKeys.Title}}"> |
| 75 | + <CheckBox IsChecked="True" Margin="0,10,0,0"/> |
| 76 | + <Separator Margin="0,10,0,0"/> |
| 77 | + <RadioButton Margin="0,10,0,0"/> |
| 78 | + <StackPanel> |
| 79 | + <RadioButton IsChecked="True" Margin="0,10,0,0"/> |
| 80 | + <RadioButton Margin="0,10,0,0"/> |
| 81 | + </StackPanel> |
| 82 | + <Button Content="{ex:Lang Key={x:Static langs:LangKeys.Button}}" Margin="0,10,0,0"/> |
| 83 | + <Button Content="{ex:Lang Key={x:Static langs:LangKeys.Button}}" Margin="0,10,0,0" Style="{StaticResource ButtonPrimary}"/> |
| 84 | + </ToolBar> |
| 85 | + </ToolBarTray> |
| 86 | + </StackPanel> |
61 | 87 | </hc:TransitioningContentControl> |
62 | 88 | </UserControl> |
0 commit comments