|
85 | 85 | <ScrollViewer x:Name="SubMenuScrollViewer" Style="{DynamicResource {ComponentResourceKey ResourceId=MenuScrollViewer, TypeInTargetAssembly={x:Type FrameworkElement}}}">
|
86 | 86 | <Grid RenderOptions.ClearTypeHint="Enabled" Margin="0 16">
|
87 | 87 | <ItemsPresenter x:Name="ItemsPresenter"
|
88 |
| - KeyboardNavigation.DirectionalNavigation="Cycle" |
89 |
| - Grid.IsSharedSizeScope="True" |
90 |
| - SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" |
91 |
| - KeyboardNavigation.TabNavigation="Cycle"/> |
| 88 | + KeyboardNavigation.DirectionalNavigation="Cycle" |
| 89 | + Grid.IsSharedSizeScope="True" |
| 90 | + SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" |
| 91 | + KeyboardNavigation.TabNavigation="Cycle"/> |
92 | 92 | </Grid>
|
93 | 93 | </ScrollViewer>
|
94 | 94 | </Border>
|
|
106 | 106 | <Setter.Value>
|
107 | 107 | <ControlTemplate TargetType="{x:Type MenuItem}">
|
108 | 108 | <ControlTemplate.Resources>
|
109 |
| - <Style TargetType="{x:Type wpf:PackIcon}" > |
| 109 | + <Style TargetType="wpf:PackIcon"> |
110 | 110 | <Setter Property="FrameworkElement.Width" Value="16" />
|
111 | 111 | <Setter Property="FrameworkElement.Height" Value="16" />
|
112 | 112 | </Style>
|
|
124 | 124 | SnapsToDevicePixels="True"
|
125 | 125 | Opacity="0"/>
|
126 | 126 | <wpf:Ripple Background="Transparent"
|
127 |
| - HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" |
128 |
| - Focusable="False" |
129 |
| - Feedback="{TemplateBinding Foreground, Converter={StaticResource BrushRoundConverter}}"> |
| 127 | + HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" |
| 128 | + Focusable="False" |
| 129 | + Feedback="{TemplateBinding Foreground, Converter={StaticResource BrushRoundConverter}}"> |
130 | 130 | <Grid Height="{TemplateBinding Height}" Background="Transparent">
|
131 | 131 | <Grid VerticalAlignment="Center"
|
132 |
| - Background="Transparent" |
133 |
| - Margin="{TemplateBinding Padding}"> |
| 132 | + Background="Transparent" |
| 133 | + Margin="{TemplateBinding Padding}"> |
134 | 134 | <Grid.ColumnDefinitions>
|
135 | 135 | <ColumnDefinition Width="Auto" SharedSizeGroup="IconGroup"/>
|
136 | 136 | <ColumnDefinition Width="*" SharedSizeGroup="HeaderGroup"/>
|
137 | 137 | <ColumnDefinition Width="*"/>
|
138 | 138 | </Grid.ColumnDefinitions>
|
139 | 139 | <Grid x:Name="IconWrapper" Visibility="Visible" Width="40">
|
140 | 140 | <ContentPresenter x:Name="Icon"
|
141 |
| - Content="{TemplateBinding Icon}" |
142 |
| - ContentSource="Icon" |
143 |
| - HorizontalAlignment="Left" VerticalAlignment="Center" |
144 |
| - Height="16" Width="16" |
145 |
| - SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/> |
| 141 | + Content="{TemplateBinding Icon}" |
| 142 | + ContentSource="Icon" |
| 143 | + HorizontalAlignment="Left" VerticalAlignment="Center" |
| 144 | + Height="16" Width="16" |
| 145 | + SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/> |
146 | 146 | </Grid>
|
147 | 147 | <Grid x:Name="GlyphWrapper" Visibility="Collapsed" Width="40">
|
148 | 148 | <Viewbox x:Name="GlyphPanel"
|
149 |
| - Width="16" Height="16" |
150 |
| - HorizontalAlignment="Left" |
151 |
| - Margin="0" Visibility="Collapsed" VerticalAlignment="Center" |
152 |
| - FlowDirection="LeftToRight"> |
| 149 | + Width="16" Height="16" |
| 150 | + HorizontalAlignment="Left" |
| 151 | + Margin="0" Visibility="Collapsed" VerticalAlignment="Center" |
| 152 | + FlowDirection="LeftToRight"> |
153 | 153 | <Canvas Width="24" Height="24">
|
154 | 154 | <Path Data="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"
|
155 |
| - x:Name="Glyph" |
156 |
| - Fill="{TemplateBinding Foreground}" FlowDirection="LeftToRight" /> |
| 155 | + x:Name="Glyph" |
| 156 | + Fill="{TemplateBinding Foreground}" FlowDirection="LeftToRight" /> |
157 | 157 | </Canvas>
|
158 | 158 | </Viewbox>
|
159 | 159 | </Grid>
|
|
178 | 178 | VerticalAlignment="Center"/>
|
179 | 179 | </Grid>
|
180 | 180 | <Grid x:Name="InputGestureTextWrapper"
|
181 |
| - Grid.Column="2" |
182 |
| - Visibility="Collapsed"> |
| 181 | + Grid.Column="2" |
| 182 | + Visibility="Collapsed"> |
183 | 183 | <TextBlock Visibility="{TemplateBinding InputGestureText, Converter={StaticResource StringIsEmptyVisibilityConverter}}"
|
184 |
| - Margin="16 0 0 0" |
185 |
| - VerticalAlignment="Center" HorizontalAlignment="Right" |
186 |
| - Text="{TemplateBinding InputGestureText}" |
187 |
| - SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" |
188 |
| - Foreground="{TemplateBinding Foreground}"/> |
| 184 | + Margin="16 0 0 0" |
| 185 | + VerticalAlignment="Center" HorizontalAlignment="Right" |
| 186 | + Text="{TemplateBinding InputGestureText}" |
| 187 | + SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" |
| 188 | + Foreground="{TemplateBinding Foreground}"/> |
189 | 189 | </Grid>
|
190 | 190 | <Grid x:Name="SubBlock"
|
191 |
| - Grid.Column="2" |
192 |
| - Visibility="Collapsed" |
193 |
| - Margin="16 0 0 0"> |
| 191 | + Grid.Column="2" |
| 192 | + Visibility="Collapsed" |
| 193 | + Margin="16 0 0 0"> |
194 | 194 | <Path Width="5" Height="10"
|
195 |
| - Stretch="Uniform" |
196 |
| - HorizontalAlignment="Right" |
197 |
| - VerticalAlignment="Center" |
198 |
| - Data="M0,16 L8,8 L0,0 Z" |
199 |
| - Fill="{TemplateBinding Foreground}" |
200 |
| - SnapsToDevicePixels="False"/> |
| 195 | + Stretch="Uniform" |
| 196 | + HorizontalAlignment="Right" |
| 197 | + VerticalAlignment="Center" |
| 198 | + Data="M0,16 L8,8 L0,0 Z" |
| 199 | + Fill="{TemplateBinding Foreground}" |
| 200 | + SnapsToDevicePixels="False"/> |
201 | 201 | </Grid>
|
202 | 202 | </Grid>
|
203 | 203 | </Grid>
|
|
0 commit comments