【发布时间】:2011-04-24 12:40:07
【问题描述】:
我正在开发一个 Windows Phone 应用程序。
我有一个自定义按钮,里面有一张图片。这是它的 XAML 代码:
<ControlTemplate x:Key="ImageButton" TargetType="Button">
<Grid>
<Image Margin="45,8,35,8" Source="Images/Delete.png"/>
</Grid>
</ControlTemplate>
如何以编程方式更改图像源属性?
【问题讨论】:
标签: windows-phone-7 custom-controls custom-attributes