|
| 1 | +<ResourceDictionary xmlns="https://github.com/avaloniaui" |
| 2 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | + xmlns:hc="https://handyorg.github.io/handycontrol"> |
| 4 | + |
| 5 | + <ControlTheme x:Key="{x:Type MenuFlyoutPresenter}" |
| 6 | + TargetType="MenuFlyoutPresenter"> |
| 7 | + <Setter Property="hc:MenuAttach.ItemPadding" |
| 8 | + Value="{StaticResource DefaultControlPadding}" /> |
| 9 | + <Setter Property="hc:MenuAttach.ItemMinHeight" |
| 10 | + Value="{StaticResource DefaultControlHeight}" /> |
| 11 | + <Setter Property="hc:MenuAttach.PopupVerticalOffset" |
| 12 | + Value="-16" /> |
| 13 | + <Setter Property="hc:MenuAttach.PopupHorizontalOffset" |
| 14 | + Value="1" /> |
| 15 | + <Setter Property="Background" |
| 16 | + Value="{DynamicResource RegionBrush}" /> |
| 17 | + <Setter Property="BorderBrush" |
| 18 | + Value="{DynamicResource BorderBrush}" /> |
| 19 | + <Setter Property="hc:BorderElement.CornerRadius" |
| 20 | + Value="{StaticResource DefaultCornerRadius}" /> |
| 21 | + <Setter Property="CornerRadius" |
| 22 | + Value="{Binding $self.(hc:BorderElement.CornerRadius)}" /> |
| 23 | + <Setter Property="Padding" |
| 24 | + Value="2,2,2,0" /> |
| 25 | + <Setter Property="BorderThickness" |
| 26 | + Value="1" /> |
| 27 | + <Setter Property="Template"> |
| 28 | + <ControlTemplate> |
| 29 | + <Border Effect="{StaticResource EffectShadow2}" |
| 30 | + Margin="8" |
| 31 | + Background="{TemplateBinding Background}" |
| 32 | + CornerRadius="{TemplateBinding CornerRadius}" |
| 33 | + MaxHeight="{TemplateBinding MaxHeight}" |
| 34 | + BorderThickness="{TemplateBinding BorderThickness}" |
| 35 | + BorderBrush="{TemplateBinding BorderBrush}"> |
| 36 | + <ScrollViewer Theme="{StaticResource ScrollViewerUpDown}" |
| 37 | + Margin="{TemplateBinding Padding}"> |
| 38 | + <ItemsPresenter Name="PART_ItemsPresenter" |
| 39 | + ItemsPanel="{TemplateBinding ItemsPanel}" |
| 40 | + KeyboardNavigation.TabNavigation="Continue" /> |
| 41 | + </ScrollViewer> |
| 42 | + </Border> |
| 43 | + </ControlTemplate> |
| 44 | + </Setter> |
| 45 | + </ControlTheme> |
| 46 | + |
| 47 | +</ResourceDictionary> |
0 commit comments