0
我正在开发Windows Phone应用程序。Imagebutton更改源属性
我有一个自定义按钮,里面有图像。这是它的XAML代码:
<ControlTemplate x:Key="ImageButton" TargetType="Button">
<Grid>
<Image Margin="45,8,35,8" Source="Images/Delete.png"/>
</Grid>
</ControlTemplate>
如何以编程方式更改Image Source属性?