我是 Windows Phone 应用程序的新手,需要创建一个小型 Windows Phone 7 应用程序。该应用程序将执行以下任务
应用程序屏幕有一个图像“image1”,当我按下“image1”时,它将显示第二个图像“image2”
当我按下 image2 时,它将显示 image1 等等
我的 XAML 代码
<Button Click="Button_Click">
<Image Source="resourse/image1.jpg"/>
</Button>
C# 代码
namespace Test
{
public partial class MainPage : PhoneApplicationPage
{
public MainPage()
{
InitializeComponent();
}
private void Button_Click(object sender, RoutedEventArgs e)
{
// here will shows the 'image2' and also give click event to turn 'image1'
}
}
}
请帮忙