Xaml 事件媒体元素
有没有一种不用点击按钮就能启动视频(媒体元素)的方式 我的意思是从后面的代码中用绑定之类的东西Xaml 事件媒体元素,xaml,Xaml,有没有一种不用点击按钮就能启动视频(媒体元素)的方式 我的意思是从后面的代码中用绑定之类的东西 <Grid Background="Black" Width="{Binding Shape.Width}" Height="{Binding Shape.Height}"> <Grid.Triggers> <EventTrigger ...> <EventTrigger.Actions
<Grid Background="Black" Width="{Binding Shape.Width}" Height="{Binding Shape.Height}">
<Grid.Triggers>
<EventTrigger ...>
<EventTrigger.Actions>
<BeginStoryboard Name="beginStoryboard">
<Storyboard>
<MediaTimeline Source="C:\riskpart1.wmv" Storyboard.TargetName="video" />
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</Grid.Triggers>
<MediaElement x:Name="video" LoadedBehavior="Play" />
</Grid>
<EventTrigger RoutedEvent="Window.Loaded">