正常和按下按钮状态的不同背景图像 [英] Different background images for normal and pressed button states

查看:80
本文介绍了正常和按下按钮状态的不同背景图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在按下状态和正常状态下在按钮上显示不同的背景图像?我更喜欢这个例子是在C#中,因为我使用C#创建了应用程序的按钮。但是,XAML中的一个例子也将受到赞赏。

解决方案


这是一个很好的工作示例您使用源代码示例。


http://developer.nokia.com/Community/Wiki/How_to_create_a_button_with_image_for_Windows_Phone



I want to show different background images on my buttons when they are in pressed state and in normal state? I'll prefer if the example is in C# because I have created my app's buttons using C#. However, an example in XAML will also be appreciated.

解决方案

Hi,

Here is nice working example for you with source code Sample.

http://developer.nokia.com/Community/Wiki/How_to_create_a_button_with_image_for_Windows_Phone


这篇关于正常和按下按钮状态的不同背景图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆