hotfix: 修复 BAML 反序列化运行时错误 (v2.0.2)
问题: 启动时报 System.Windows.Baml2006.DeferredBinaryDeserializerExtension 异常 根因: ResourceDictionary 中使用了不合法的共享资源类型 修复: - 移除主题中 DropShadowEffect/CubicEase/QuadraticEase/Duration 共享资源 - 将所有 Effect 和 EasingFunction 改为内联声明 - 修复 DynamicResource 引用
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
CornerRadius="{DynamicResource WindowCornerRadius}"
|
||||
BorderThickness="1"
|
||||
BorderBrush="{DynamicResource BorderBrush}"
|
||||
Effect="{DynamicResource WindowShadow}"
|
||||
Effect="{StaticResource WindowShadowInline}"
|
||||
ClipToBounds="True"
|
||||
Opacity="0">
|
||||
|
||||
@@ -278,6 +278,13 @@
|
||||
<!-- ===== 窗口级样式资源 ===== -->
|
||||
<Window.Resources>
|
||||
|
||||
<!-- 窗口阴影(必须为 StaticResource,Effect 不能跨元素共享) -->
|
||||
<DropShadowEffect x:Key="WindowShadowInline"
|
||||
ShadowDepth="4"
|
||||
BlurRadius="24"
|
||||
Opacity="0.6"
|
||||
Color="#000000" />
|
||||
|
||||
<!-- ===== 主要按钮样式(强调色背景,悬停缩放) ===== -->
|
||||
<Style x:Key="PrimaryButtonStyle" TargetType="Button">
|
||||
<Setter Property="Template">
|
||||
|
||||
Reference in New Issue
Block a user