mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-17 09:26:50 +08:00
31 lines
1.6 KiB
XML
31 lines
1.6 KiB
XML
<ResourceDictionary
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:drawer="clr-namespace:BetterGenshinImpact.View.Controls.Drawer">
|
|
|
|
<Style TargetType="{x:Type drawer:CustomDrawer}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type drawer:CustomDrawer}">
|
|
<Grid x:Name="PART_MainGrid">
|
|
<Border x:Name="PART_BackgroundOverlay"
|
|
Background="{DynamicResource ApplicationBackgroundBrush}"
|
|
CornerRadius="8"
|
|
Opacity="0"/>
|
|
<Border x:Name="PART_DrawerContainer"
|
|
Background="{TemplateBinding DrawerBackground}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="8"
|
|
ClipToBounds="True"
|
|
UseLayoutRounding="True"
|
|
Effect="{DynamicResource ControlElevationBorderShadow}">
|
|
<ContentPresenter Margin="{TemplateBinding Padding}"
|
|
ClipToBounds="True"/>
|
|
</Border>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary> |