How can I make Storyboard.TargetProperty=“Width”
From 100 To fullscreen to adapt all screen?
I want to set it to fullscreen, not 500.
<Window.Triggers>
<EventTrigger RoutedEvent="Window.Loaded" >
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Duration="00:00:02" Storyboard.TargetProperty="Width" From="500" To="100" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Window.Triggers>
代替500使用
{Binding Source={x:Static SystemParameters.FullPrimaryScreenWidth}}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.