Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions source/iNKORE.UI.WPF.Modern/Themes/Controls/MenuItem.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
</ResourceDictionary>
</ResourceDictionary.MergedDictionaries>

<TextAlignment x:Key="DefaultMenuFlyoutItemTextAlignment">Left</TextAlignment>

<Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type FrameworkElement}, ResourceId=MenuScrollViewer}" TargetType="ScrollViewer">
<Setter Property="HorizontalScrollBarVisibility" Value="Disabled" />
<Setter Property="VerticalScrollBarVisibility" Value="Auto" />
Expand Down Expand Up @@ -202,6 +204,7 @@
<local:ContentPresenterEx
x:Name="ContentPresenter"
Grid.Column="2"
TextBlock.TextAlignment="{DynamicResource DefaultMenuFlyoutItemTextAlignment}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
ContentSource="Header"
Expand Down Expand Up @@ -293,6 +296,7 @@
<local:ContentPresenterEx
x:Name="ContentPresenter"
Grid.Column="2"
TextBlock.TextAlignment="{DynamicResource DefaultMenuFlyoutItemTextAlignment}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
ContentSource="Header"
Expand Down
Loading