2 changed files with 26 additions and 27 deletions
@ -1,17 +1,21 @@ |
|||||
<Style xmlns="https://github.com/avaloniaui" Selector="PopupRoot"> |
<Styles xmlns="https://github.com/avaloniaui" |
||||
<Setter Property="Background" Value="{DynamicResource ThemeBackgroundBrush}"/> |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
||||
<Setter Property="Template"> |
<Style Selector="PopupRoot"> |
||||
<ControlTemplate> |
<Setter Property="TransparencyLevelHint" Value="Transparent" /> |
||||
<Panel> |
<Setter Property="Background" Value="{x:Null}" /> |
||||
<Border Name="PART_TransparencyFallback" IsHitTestVisible="False" /> |
<Setter Property="Template"> |
||||
<VisualLayerManager IsPopup="True"> |
<ControlTemplate> |
||||
<ContentPresenter Name="PART_ContentPresenter" |
<Panel> |
||||
Background="{TemplateBinding Background}" |
<Border Name="PART_TransparencyFallback" IsHitTestVisible="False" /> |
||||
ContentTemplate="{TemplateBinding ContentTemplate}" |
<VisualLayerManager IsPopup="True"> |
||||
Content="{TemplateBinding Content}" |
<ContentPresenter Name="PART_ContentPresenter" |
||||
Padding="{TemplateBinding Padding}"/> |
Background="{TemplateBinding Background}" |
||||
</VisualLayerManager> |
ContentTemplate="{TemplateBinding ContentTemplate}" |
||||
</Panel> |
Content="{TemplateBinding Content}" |
||||
</ControlTemplate> |
Padding="{TemplateBinding Padding}"/> |
||||
</Setter> |
</VisualLayerManager> |
||||
</Style> |
</Panel> |
||||
|
</ControlTemplate> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
</Styles> |
||||
|
|||||
Loading…
Reference in new issue