Skip to content

Commit

Permalink
Adding window resizing on theme change in showcase to work around ali…
Browse files Browse the repository at this point in the history
…gnment issues #146
  • Loading branch information
batzen committed Aug 20, 2015
1 parent 5e6717c commit c4cb7e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions FluentTest/TestContent.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ private void ChangeTheme(Theme theme, string color)
owner.Style = null;
owner.Style = owner.FindResource("RibbonWindowStyle") as Style;
owner.Style = null;

// Resize Window to work around alignment issues caused by theme change
++owner.Width;
--owner.Width;
}
}
}));
Expand Down

0 comments on commit c4cb7e2

Please sign in to comment.