Skip to content

Commit

Permalink
Fix Borders of Right Click menu for Textbox (eg. Searchbar)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marterich committed Sep 18, 2024
1 parent d8f8176 commit e235b2e
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions xaml/inputXML.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -603,9 +603,23 @@
<Setter Property="ContextMenu">
<Setter.Value>
<ContextMenu>
<MenuItem Command="Cut" Header="Cut"/>
<MenuItem Command="Copy" Header="Copy"/>
<MenuItem Command="Paste" Header="Paste"/>
<ContextMenu.Style>
<Style TargetType="ContextMenu">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ContextMenu">
<Border Background="{MainBackgroundColor}" BorderBrush="{MainForegroundColor}" BorderThickness="1" CornerRadius="5" Padding="5">
<StackPanel>
<MenuItem Command="Cut" Header="Cut"/>
<MenuItem Command="Copy" Header="Copy"/>
<MenuItem Command="Paste" Header="Paste"/>
</StackPanel>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ContextMenu.Style>
</ContextMenu>
</Setter.Value>
</Setter>
Expand Down

0 comments on commit e235b2e

Please sign in to comment.