C# 在Windows Phone中创建图像按钮的最佳方法是什么?

C# 在Windows Phone中创建图像按钮的最佳方法是什么?,c#,windows-phone-7,imagebutton,C#,Windows Phone 7,Imagebutton,在Android中,我们可以使用.xml文件中定义的选择器。在Windows Phone中,如何快速实现它?您可以将图像添加到按钮的内容属性中 <Button> <Button.Content> <Grid> <Image Name="Normal" Source="Resources/Image.png"/> </Grid> </Button.Content> </Button> 你可以试试吗?嗨,简,谢谢

在Android中,我们可以使用.xml文件中定义的选择器。在Windows Phone中,如何快速实现它?

您可以将图像添加到按钮的内容属性中

<Button>
<Button.Content>
<Grid>
<Image Name="Normal" Source="Resources/Image.png"/>
</Grid>
</Button.Content>
</Button>


你可以试试吗?嗨,简,谢谢你的回复。是的,你的解决方案是有效的,但它只是我所寻找的一部分。我的问题是当按钮被点击、按下、按住等等。对于每种情况,我们都需要特定类型的事件处理程序。在安卓系统中,选择器会做一些棘手的事情。你可以勾选各种事件(点击,从我头顶双击)。@mthama-所以你知道你需要做什么。你的问题到底是什么?