feat: add avalonia OverlayPopupHost style.
This commit is contained in:
1 parent
22dda176ca
commit
eecfd3efa3
2 files changed
+27
No files matched your search
@@ -22,6 +22,7 @@
|
||||
<MergeResourceInclude Source="avares://HandyControl/Themes/Styles/EmbeddableControlRoot.axaml" />
|
||||
<MergeResourceInclude Source="avares://HandyControl/Themes/Styles/TransitioningContentControl.axaml" />
|
||||
<MergeResourceInclude Source="avares://HandyControl/Themes/Styles/PopupRoot.axaml" />
|
||||
<MergeResourceInclude Source="avares://HandyControl/Themes/Styles/OverlayPopupHost.axaml" />
|
||||
<MergeResourceInclude Source="avares://HandyControl/Themes/Styles/PathIcon.axaml" />
|
||||
<MergeResourceInclude Source="avares://HandyControl/Themes/Styles/Separator.axaml" />
|
||||
<MergeResourceInclude Source="avares://HandyControl/Themes/Styles/ToolTip.axaml" />
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
<ResourceDictionary xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
x:ClassModifier="internal">
|
||||
|
||||
<ControlTheme x:Key="{x:Type OverlayPopupHost}"
|
||||
TargetType="OverlayPopupHost">
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource PrimaryTextBrush}" />
|
||||
<Setter Property="FontSize"
|
||||
Value="12" />
|
||||
<Setter Property="Template">
|
||||
<ControlTemplate>
|
||||
<LayoutTransformControl LayoutTransform="{TemplateBinding Transform}">
|
||||
<VisualLayerManager IsPopup="True">
|
||||
<ContentPresenter Name="PART_ContentPresenter"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
Background="{TemplateBinding Background}"
|
||||
Content="{TemplateBinding Content}"
|
||||
ContentTemplate="{TemplateBinding ContentTemplate}" />
|
||||
</VisualLayerManager>
|
||||
</LayoutTransformControl>
|
||||
</ControlTemplate>
|
||||
</Setter>
|
||||
</ControlTheme>
|
||||
|
||||
</ResourceDictionary>
|
||||
Reference in new issue
Block a user