Skip to content

Commit

Permalink
Merge pull request #1017 from seasonyuu/development
Browse files Browse the repository at this point in the history
TitleBarButton: Fix Foreground not using property value at initial
  • Loading branch information
pomianowski authored Mar 26, 2024
2 parents d8c1f12 + 5abcc0d commit ccc2e44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Wpf.Ui/Controls/TitleBar/TitleBarButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ private void TitleBarButton_Unloaded(object sender, RoutedEventArgs e)

private void TitleBarButton_Loaded(object sender, RoutedEventArgs e)
{
RenderButtonsForeground = ButtonsForeground;
DependencyPropertyDescriptor
.FromProperty(ButtonsForegroundProperty, typeof(Brush))
.AddValueChanged(this, OnButtonsForegroundChanged);
Expand Down

0 comments on commit ccc2e44

Please sign in to comment.