windows8.1 xaml中的嵌套自定义控件 [英] nested custom controls in windows8.1 xaml

查看:94
本文介绍了windows8.1 xaml中的嵌套自定义控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在windows8.1中创建一些自定义控件,并为其添加一些验证。我想将此验证作为单独的部分保留,并将其应用于每个自定义控件。是否有可能做到这一点。可以建议一种方法来实现这一点。



感谢你,

CGN

I need to create some custom controls in windows8.1 and also add some validation to it. I would like keep this validations as separate part and apply that to each the custom control. Is it possible to do this.Can any suggest a way to achieve this.

Thanking you,
CGN

推荐答案

快速搜索为我提供了这个

http://blogs.msdn.com/b/windowsappdev/archive/2012/10/15/building-a-custom-control -using-xaml-and-c.aspx [ ^ ]
Just quick search provided me this
http://blogs.msdn.com/b/windowsappdev/archive/2012/10/15/building-a-custom-control-using-xaml-and-c.aspx[^]
Reusing controls
When you only want to use a control in a single project or for your own personal use, there isn’t much to think about in terms of packaging and distribution. But if you want to build a reusable control to share with other developers, you have some options. One option is to create a Visual Studio Extension SDK that other developers can install on their machines and add to their projects. For more info on how to do this, check out Creating an SDK using C# or Visual Basic.



http:// msdn .microsoft.com / zh-CN / library / jj127119.aspx [ ^


这篇关于windows8.1 xaml中的嵌套自定义控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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