Skip to content

Commit

Permalink
Merge pull request #840 from MakesYT/development
Browse files Browse the repository at this point in the history
Fix dynamic style binding
  • Loading branch information
pomianowski authored Nov 23, 2023
2 parents e77ea4e + f8f6ac4 commit 8dbb625
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 73 deletions.
1 change: 1 addition & 0 deletions src/Wpf.Ui.Tray/Wpf.Ui.Tray.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<PropertyGroup>
<GeneratePackageOnBuild Condition="'$(Configuration)'=='Release'">true</GeneratePackageOnBuild>
<GenerateDocumentationFile Condition="'$(Configuration)'=='Release'">true</GenerateDocumentationFile>
<DebugType Condition="'$(Configuration)'=='Release'">none</DebugType>
<PackageIcon>wpfui.png</PackageIcon>
</PropertyGroup>

Expand Down
1 change: 1 addition & 0 deletions src/Wpf.Ui/Controls/Expander/Expander.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
Grid.Column="0"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
TextElement.FontSize="{TemplateBinding FontSize}"
Content="{TemplateBinding Content}" />
<Grid
x:Name="ChevronGrid"
Expand Down
1 change: 1 addition & 0 deletions src/Wpf.Ui/Controls/TextBox/TextBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@
Margin="0"
Padding="1,0"
VerticalAlignment="Center"
FontSize="{TemplateBinding FontSize}"
Foreground="{DynamicResource TextControlPlaceholderForeground}"
Text="{TemplateBinding PlaceholderText}" />
</Grid>
Expand Down
3 changes: 2 additions & 1 deletion src/Wpf.Ui/Controls/ToggleButton/ToggleButton.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
Content="{TemplateBinding Content}"
TextElement.Foreground="{TemplateBinding Foreground}" />
TextElement.Foreground="{TemplateBinding Foreground}"
TextElement.FontSize="{TemplateBinding FontSize}"/>
</Border>
<ControlTemplate.Triggers>
<MultiTrigger>
Expand Down
72 changes: 36 additions & 36 deletions src/Wpf.Ui/Resources/Theme/Dark.xaml

Large diffs are not rendered by default.

72 changes: 36 additions & 36 deletions src/Wpf.Ui/Resources/Theme/Light.xaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/Wpf.Ui/Wpf.Ui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<PropertyGroup>
<GeneratePackageOnBuild Condition="'$(Configuration)'=='Release'">true</GeneratePackageOnBuild>
<GenerateDocumentationFile Condition="'$(Configuration)'=='Release'">true</GenerateDocumentationFile>
<DebugType Condition="'$(Configuration)'=='Release'">none</DebugType>
<PackageIcon>wpfui.png</PackageIcon>
</PropertyGroup>

Expand Down

0 comments on commit 8dbb625

Please sign in to comment.