如何将usercontrol的属性集成到表单的属性中? [英] How can I integrate usercontrol's properties into form's properties?

查看:54
本文介绍了如何将usercontrol的属性集成到表单的属性中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个自定义表单和一个UserControl,其作用类似于自定义表单的标题栏。我想要实现的是将UserControl的属性集成到自定义窗体的属性中。像嵌套属性或像这样的东西...
$






在这种情况下,我们将Button的属性集成到TextBox的属性中。不知道我该怎么做?



提前谢谢!!!



平庸是我最大的敌人!

I have create a custom form and a UserControl which acts like custom form's title bar. What I want to achieve, is to integrate UserControl's properties into custom form's properties. Something like nested properties or something like this...



In this case we have Button's properties integrated into TextBox's properties. Any idea how can I do that?

Thank you in advance!!!


Mediocrity is my greatest enemy!!!

推荐答案

我没有例子但正确的方向是使用
MergableProperty
attribute 
I don't have an example but the right direction is to use MergableProperty attribute 


这篇关于如何将usercontrol的属性集成到表单的属性中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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