From c312b48177c47d55360a8e2d89e4fa258ab2f930 Mon Sep 17 00:00:00 2001 From: rabbitism Date: Sun, 15 Sep 2024 01:37:55 +0800 Subject: [PATCH] feat: WIP fix xaml updates in 11.2.0 --- demo/Directory.Build.props | 2 +- src/Package.props | 2 +- src/Ursa.Themes.Semi/Controls/Divider.axaml | 44 ++++++++++--------- .../Controls/UrsaWindow.axaml | 37 +++------------- 4 files changed, 33 insertions(+), 52 deletions(-) diff --git a/demo/Directory.Build.props b/demo/Directory.Build.props index e25d59ce..4c822aed 100644 --- a/demo/Directory.Build.props +++ b/demo/Directory.Build.props @@ -1,6 +1,6 @@ enable - 11.1.3 + 11.2.0-beta1 diff --git a/src/Package.props b/src/Package.props index 84387aed..cf9ed475 100644 --- a/src/Package.props +++ b/src/Package.props @@ -1,7 +1,7 @@ 1.3.0 - 11.1.1 + 11.2.0-beta1 IRIHI Technology Co., Ltd. https://github.com/irihitech/Ursa.Avalonia MIT diff --git a/src/Ursa.Themes.Semi/Controls/Divider.axaml b/src/Ursa.Themes.Semi/Controls/Divider.axaml index 2469b3b3..d82ad1a4 100644 --- a/src/Ursa.Themes.Semi/Controls/Divider.axaml +++ b/src/Ursa.Themes.Semi/Controls/Divider.axaml @@ -22,18 +22,6 @@ - - - - - - - - - - - - @@ -49,8 +37,12 @@ + Content="{TemplateBinding Content}" + Background="{TemplateBinding Background}" + Foreground="{TemplateBinding Foreground}" + ContentTemplate="{TemplateBinding ContentTemplate}" + Margin="{DynamicResource ThicknessDividerTextMargin}" + IsVisible="{Binding Content, RelativeSource={RelativeSource TemplatedParent}, Converter={x:Static ObjectConverters.IsNotNull}}"/> @@ -66,8 +58,12 @@ + Content="{TemplateBinding Content}" + Background="{TemplateBinding Background}" + Foreground="{TemplateBinding Foreground}" + ContentTemplate="{TemplateBinding ContentTemplate}" + Margin="{DynamicResource ThicknessDividerTextMargin}" + IsVisible="{Binding Content, RelativeSource={RelativeSource TemplatedParent}, Converter={x:Static ObjectConverters.IsNotNull}}"/> @@ -83,8 +79,12 @@ + Content="{TemplateBinding Content}" + Background="{TemplateBinding Background}" + Foreground="{TemplateBinding Foreground}" + ContentTemplate="{TemplateBinding ContentTemplate}" + Margin="{DynamicResource ThicknessDividerTextMargin}" + IsVisible="{Binding Content, RelativeSource={RelativeSource TemplatedParent}, Converter={x:Static ObjectConverters.IsNotNull}}"/> @@ -100,8 +100,12 @@ + Content="{TemplateBinding Content}" + Background="{TemplateBinding Background}" + Foreground="{TemplateBinding Foreground}" + ContentTemplate="{TemplateBinding ContentTemplate}" + Margin="{DynamicResource ThicknessDividerTextMargin}" + IsVisible="{Binding Content, RelativeSource={RelativeSource TemplatedParent}, Converter={x:Static ObjectConverters.IsNotNull}}"/> diff --git a/src/Ursa.Themes.Semi/Controls/UrsaWindow.axaml b/src/Ursa.Themes.Semi/Controls/UrsaWindow.axaml index aafb7f0e..45bc28ca 100644 --- a/src/Ursa.Themes.Semi/Controls/UrsaWindow.axaml +++ b/src/Ursa.Themes.Semi/Controls/UrsaWindow.axaml @@ -11,36 +11,13 @@ - - - - True - - - False - - - - - - - True - - - False - - - - - - - True - - - False - - - +