Skip to content

Commit

Permalink
UseLayoutRounding for MetroWindow for better pixel stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Jan 10, 2015
1 parent e74c895 commit b3c1957
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MahApps.Metro/Themes/MetroWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@
</ControlTemplate>

<Style TargetType="{x:Type Controls:MetroWindow}">
<Setter Property="UseLayoutRounding"
Value="True" />
<Setter Property="WindowTitleBrush"
Value="{DynamicResource WindowTitleColorBrush}" />
<Setter Property="TextElement.FontSize"
Expand Down
1 change: 1 addition & 0 deletions samples/MetroDemo/ExampleWindows/SizeToContentDemo.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
Title="SizeToContent Demo"
GlowBrush="{DynamicResource AccentColorBrush}"
WindowStartupLocation="CenterOwner"
SizeToContent="WidthAndHeight">
<Window.Resources>
Expand Down

0 comments on commit b3c1957

Please sign in to comment.