Customize your own Silverlight control

Customize your own Silverlight control,第1张

概述1. Create a new class which inherit from ContentControl namespace SimpleButtonDemo{ public class SimpleButton : ContentControl { public event RoutedEventHandler Click; publ

1. Create a new class which inherit from ContentControl

 

2. You must create themes folder in Silverlight application.

3. Create a txt file and rename it to Generic.xaml under the themes folder.

4. In the Generic.xaml,paste the following content in,(NOTICE: namespaces)

5. In other pages,you can use it in these ways,

     a. Using it in a simple way

          

   b. Using it with new content.(replace the original content with yours) 

总结

以上是内存溢出为你收集整理的Customize your own Silverlight control全部内容,希望文章能够帮你解决Customize your own Silverlight control所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1046011.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存