Skip to content

Commit

Permalink
fix: 修复部分组件无法局部覆盖 MainWindowBodyFontSize 的问题 ClassIsland#343
Browse files Browse the repository at this point in the history
  • Loading branch information
HelloWRC committed Sep 17, 2024
1 parent f496548 commit 448b5bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ClassIsland/Controls/ComponentPresenter.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:ClassIsland.Controls"
mc:Ignorable="d"
mc:Ignorable="d"
FontSize="{DynamicResource MainWindowBodyFontSize}"
TextElement.FontSize="{DynamicResource MainWindowBodyFontSize}"
d:DesignHeight="450" d:DesignWidth="800">
<ContentPresenter x:Name="MainContentPresenter"
Content="{Binding PresentingContent, RelativeSource={RelativeSource FindAncestor, AncestorType=local:ComponentPresenter}}"/>
Expand Down

0 comments on commit 448b5bf

Please sign in to comment.