mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-27 10:15:50 +08:00
* feat: add custom drawer control and integrate it into the UI * 更新仓库UI * feat: implement Git-based repository update mechanism and improve error handling * feat: add reset repository functionality with confirmation dialog * 修改打开队伍配置界面的重试次数和日志 * feat: add drawer open/close events and improve drawer closing logic * feat: enhance WebpagePanel navigation handling and improve initialization logic * feat: add drawer opened event handling and improve navigation completion logic * feat: implement dynamic height adjustment for WebpagePanel using Grid container * feat: update drawer dimensions and apply dynamic sizing based on position * feat: add CustomDrawer component and integrate with MapPathingViewModel for enhanced navigation * feat: integrate WebView2 for Markdown file navigation in MapPathingViewModel
27 lines
1.3 KiB
XML
27 lines
1.3 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="Black"
|
|
Opacity="0"/>
|
|
<Border x:Name="PART_DrawerContainer"
|
|
Background="{TemplateBinding DrawerBackground}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="0"
|
|
Effect="{DynamicResource ControlElevationBorderShadow}">
|
|
<ContentPresenter Margin="{TemplateBinding Padding}"/>
|
|
</Border>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary> |