hotfix: 修复 BAML 反序列化运行时错误 (v2.0.2)
问题: 启动时报 System.Windows.Baml2006.DeferredBinaryDeserializerExtension 异常 根因: ResourceDictionary 中使用了不合法的共享资源类型 修复: - 移除主题中 DropShadowEffect/CubicEase/QuadraticEase/Duration 共享资源 - 将所有 Effect 和 EasingFunction 改为内联声明 - 修复 DynamicResource 引用
This commit is contained in:
@@ -58,10 +58,13 @@
|
||||
CornerRadius="{DynamicResource StandardCornerRadius}"
|
||||
BorderThickness="1"
|
||||
BorderBrush="{DynamicResource BorderBrush}"
|
||||
Effect="{DynamicResource WindowShadow}"
|
||||
ClipToBounds="True"
|
||||
Opacity="0">
|
||||
|
||||
<Border.Effect>
|
||||
<DropShadowEffect ShadowDepth="4" BlurRadius="20" Opacity="0.5" Color="#000000" />
|
||||
</Border.Effect>
|
||||
|
||||
<!-- 缩放变换(用于入场动画) -->
|
||||
<Border.RenderTransform>
|
||||
<ScaleTransform ScaleX="1.0" ScaleY="1.0" />
|
||||
@@ -178,8 +181,11 @@
|
||||
<Border Grid.Column="0"
|
||||
Background="{DynamicResource SecondaryBackgroundBrush}"
|
||||
CornerRadius="{DynamicResource StandardCornerRadius}"
|
||||
Margin="4,4,0,4"
|
||||
Effect="{DynamicResource NavBarShadow}">
|
||||
Margin="4,4,0,4">
|
||||
|
||||
<Border.Effect>
|
||||
<DropShadowEffect ShadowDepth="2" BlurRadius="8" Opacity="0.25" Color="#000000" />
|
||||
</Border.Effect>
|
||||
|
||||
<!-- 导航按钮列表(竖向排列) -->
|
||||
<StackPanel VerticalAlignment="Center"
|
||||
@@ -349,8 +355,11 @@
|
||||
Margin="8,4,4,4"
|
||||
CornerRadius="{DynamicResource StandardCornerRadius}"
|
||||
Background="{DynamicResource CardBackgroundBrush}"
|
||||
ClipToBounds="True"
|
||||
Effect="{DynamicResource CardShadow}">
|
||||
ClipToBounds="True">
|
||||
|
||||
<Border.Effect>
|
||||
<DropShadowEffect ShadowDepth="2" BlurRadius="12" Opacity="0.3" Color="#000000" />
|
||||
</Border.Effect>
|
||||
|
||||
<!-- 页面导航Frame -->
|
||||
<Frame x:Name="ContentFrame"
|
||||
|
||||
Reference in New Issue
Block a user