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屬性?