Skip to content

Commit

Permalink
Changes cursor to the default arrow inside TextBox's popups. Fixes #323
Browse files Browse the repository at this point in the history
  • Loading branch information
SKProCH committed Nov 23, 2023
1 parent 1cbaf18 commit a92922d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Material.Styles/Resources/Themes/TextBox.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@

<ContextMenu x:Key="DefaultTextBoxContextMenu"
Name="TextBoxContextMenu"
WindowManagerAddShadowHint="False">
WindowManagerAddShadowHint="False"
Cursor="Arrow">

<MenuItem Name="TextBoxContextMenuCutItem"
Header="Cut"
Expand Down Expand Up @@ -57,8 +58,14 @@
Icon="{extensions:MaterialInternalIcon Kind=MaterialSelectAll, Size=24}" />
</ContextMenu>

<ControlTheme x:Key="MaterialTextBoxFlyoutPresenter" TargetType="MenuFlyoutPresenter"
BasedOn="{StaticResource {x:Type MenuFlyoutPresenter}}">
<Setter Property="Cursor" Value="Arrow" />
</ControlTheme>

<MenuFlyout x:Key="DefaultTextBoxMenuFlyout"
Placement="Bottom">
Placement="Bottom"
FlyoutPresenterTheme="{StaticResource MaterialTextBoxFlyoutPresenter}">
<MenuItem Name="TextBoxMenuFlyoutCutItem"
Header="Cut"
Command="{Binding $parent[TextBox].Cut}"
Expand Down

0 comments on commit a92922d

Please sign in to comment.