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所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)