在Windows Phone C#的Silverlight上创建自定义按钮 [英] Creating Customised button on silverlight for windows phone c#

查看:60
本文介绍了在Windows Phone C#的Silverlight上创建自定义按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我想创建一个自定义按钮,该按钮看起来像聊天对话框的形状,而不是普通的矩形.我可以知道怎么做吗?

如果有人可以向我展示一些有关如何使用当前VS或表达式混合(最有可能是这种情况)来完成此操作的教程,那就太好了,

最重要的是如何在epxression blend中保存按钮并将其导入为Windows Phone的Visual Studio Silverlight的库类.
提前致谢!

此致TransformBinary


大家好,我错过了这一点,它是一个代码生成的按钮
意思是我正在尝试MyButton btn = new MyButton();
代替

Button btn = new Button();

Hello everyone i would like to create a customised button which looks like a chat dialog shape instead of the normal rectangle . May i know how would i be able to do so?

Would be nice if someone could show me some tutorials on how it can be done using either the current VS or expression blend which most likey is the case,

Most importantly how to save the button in epxression blend and import it as a library class for visual studio silverlight for windows phone
THanks in advance!

Regards, TransformBinary


Hi guys, sry that i missed this point out, its a code generated button
Meaning i''m trying to MyButton btn = new MyButton();
instead of

Button btn = new Button();

推荐答案


上述文章的一个问题是,按钮不会因鼠标悬停,按下等原因而改变.您可能希望包括visualstatemanager XAML来在发生这种情况时略微更改图标.查看 http://www.primordialcode.com/blog/post/silverlight-custom-带有模板的按钮 [ ^ ]
The one problem with the above article is that the button will not change for mouse over, pushed, etc. You will probably want to include visualstatemanager XAML to change the icon slightly when this happens. Look at http://www.primordialcode.com/blog/post/silverlight-custom-buttons-with-templates[^]


这篇关于在Windows Phone C#的Silverlight上创建自定义按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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