I am new to WPF and just starting to get used to it, I want to move a page across the screen when I load it. The Code I using for that currently is :
<Storyboard>
<ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="Margin" BeginTime="00:00:00">
<SplineThicknessKeyFrame KeyTime="00:00:00" Value="1920,0,0,0" />
<SplineThicknessKeyFrame KeyTime="00:00:02" Value="0,0,0,0" />
</ThicknessAnimationUsingKeyFrames>
<DoubleAnimation
Storyboard.TargetName="SummaryPageName"
Storyboard.TargetProperty="Opacity"
From="0" To="1" Duration="0:0:2"
AutoReverse="False">
</DoubleAnimation>
</Storyboard>
While this works fine for me, what I want is to not use hard values(1920) in value field of
<SplineThicknessKeyFrame KeyTime="00:00:00" Value="1920,0,0,0" />
Is there anyway to do that without specifying this value, so that it will work with other resolutions as well.
Thank you