C# 如何更改datatemplate wpf中内置的“中的图像”按钮
我如何在标题中说,我有一个Telerik RadTileView的数据模板,在大型内容中我有一个带有播放按钮的工具栏,其想法是当用户单击此按钮时,平铺视图中的图像会自动更改,我已经这样做了,但我需要使用停止图标更改播放按钮内的图像,这是我的数据模板:C# 如何更改datatemplate wpf中内置的“中的图像”按钮,c#,wpf,binding,datatemplate,C#,Wpf,Binding,Datatemplate,我如何在标题中说,我有一个Telerik RadTileView的数据模板,在大型内容中我有一个带有播放按钮的工具栏,其想法是当用户单击此按钮时,平铺视图中的图像会自动更改,我已经这样做了,但我需要使用停止图标更改播放按钮内的图像,这是我的数据模板: <DataTemplate x:Key="contentTemplate"> <telerik:RadFluidContentControl> <telerik:
<DataTemplate x:Key="contentTemplate">
<telerik:RadFluidContentControl>
<telerik:RadFluidContentControl.Content>
<Border>
<Image Source="{Binding Frame}" />
</Border>
</telerik:RadFluidContentControl.Content>
<telerik:RadFluidContentControl.LargeContent>
<Grid>
<Grid>
<Image Source="{Binding Frame}" />
</Grid>
<Border BorderBrush="Black" BorderThickness="1" Background="#80000000" Height="80" VerticalAlignment="Bottom">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
<Button Style="{StaticResource BotonGrande}" Name="BotonImagenAtras" Click="BotonImagenAtras_Click">
<Image Style="{StaticResource ImagenGrande}" Source="/VisorSeproban;component/Imagenes/izquierda.png" />
</Button>
<Button Style="{StaticResource BotonGrande}" Name="BotonImagenesPlay" Click="BotonImagenesPlay_Click">
<Image Style="{StaticResource ImagenGrande}" Source="/VisorSeproban;component/Imagenes/play_on.png" />
</Button>
<Button Style="{StaticResource BotonGrande}" Name="BotonCaputarImagen" Click="BotonCaputarImagen_Click">
<Image Style="{StaticResource ImagenGrande}" Source="/VisorSeproban;component/Imagenes/captura_img_on.png" />
</Button>
<Button Style="{StaticResource BotonGrande}" Name="BotonImagenAdelante" Click="BotonImagenAdelante_Click">
<Image Style="{StaticResource ImagenGrande}" Source="/VisorSeproban;component/Imagenes/derecha.png" />
</Button>
</StackPanel>
</Border>
</Grid>
</telerik:RadFluidContentControl.LargeContent>
</telerik:RadFluidContentControl>
</DataTemplate>
谢谢你的帮助!
注意尝试附加事件,并在事件触发时更改图像。如果在浏览器中运行应用程序,可以尝试使用Javascript