wpf的宽度动画设置中 后台设置 以下是前台xaml代码 想写到它的子文件.cs中怎么写啊~~ 求指教~
<ListBox.Triggers><EventTriggerRoutedEvent="Window.Loaded"><BeginStoryboard><Storyboa...
<ListBox.Triggers>
<EventTrigger RoutedEvent="Window.Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="mnjy" Storyboard.TargetProperty="Width" Duration="0:0:3" From="0" To="110"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</ListBox.Triggers>
【RoutedEvent,Storyboard.TargetName,Storyboard.TargetProperty,Duration,To 】 这些属性写到后台。 展开
<EventTrigger RoutedEvent="Window.Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="mnjy" Storyboard.TargetProperty="Width" Duration="0:0:3" From="0" To="110"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</ListBox.Triggers>
【RoutedEvent,Storyboard.TargetName,Storyboard.TargetProperty,Duration,To 】 这些属性写到后台。 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询