Closed teekay closed 5 years ago
@teekay We set the UseLayoutRounding
for the inner ContentPresenter
to false for better results, so to bring back the same as without MahApps just set this to true for your StackPanel (I got the same result as without MahApps)
<StackPanel Margin="0,200,0,0" UseLayoutRounding="True">
<Canvas Width="600" Height="60" x:Name="Whiteboard"></Canvas>
<Button HorizontalAlignment="Center"
Margin="0,20,0,0"
Click="RunTestAnimation">Run Test</Button>
</StackPanel>
Issue description
I have a simple animation that I create programmatically. Say it's a vertical line moving along the X axis.
Using a "normal" WPF Window, it does so smoothly.
Using a MetroWindow, the animation is choppy - the line moves a pixel, stops for a few ms., then moves again.
Code sample
Window.xaml
Window.xaml.cs
Environment