Skip to content

Commit b3c1957

Browse files
committed
UseLayoutRounding for MetroWindow for better pixel stuff
1 parent e74c895 commit b3c1957

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

MahApps.Metro/Themes/MetroWindow.xaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@
238238
</ControlTemplate>
239239

240240
<Style TargetType="{x:Type Controls:MetroWindow}">
241+
<Setter Property="UseLayoutRounding"
242+
Value="True" />
241243
<Setter Property="WindowTitleBrush"
242244
Value="{DynamicResource WindowTitleColorBrush}" />
243245
<Setter Property="TextElement.FontSize"

samples/MetroDemo/ExampleWindows/SizeToContentDemo.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
55
Title="SizeToContent Demo"
6+
GlowBrush="{DynamicResource AccentColorBrush}"
67
WindowStartupLocation="CenterOwner"
78
SizeToContent="WidthAndHeight">
89
<Window.Resources>

0 commit comments

Comments
 (0)