如何保持始终扩展从类派生的属性? [英] How to keep always expanded a property derived from a class?

查看:88
本文介绍了如何保持始终扩展从类派生的属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的自定义控件中,我添加了一个自定义属性,该属性又来自另一个具有多个属性的自定义类。在属性表中,它显示良好但不扩展其内容。我想继续扩大alawys。这怎么可能?在此先感谢。



In my custom control, I have added a custom property which again derived from another custom class with a number of porperties. In the Property sheet, it shows well but without expanding its contents. I would like to keep it alawys expanded. How is it possible? Thanks in advance.

DesignerSerializationVisibility(DesignerSerializationVisibility.Content), _
TypeConverter(GetType(HighlighterConverter))> _
Public Property Highlighter() As Highlighter
            Get
                Return Highlighter_v
            End Get
            Set(ByVal value As Highlighter)
                Highlighter_v = value
            End Set
        End Property
Private Highlighter_v As New Highlighter

推荐答案

亲爱的SA,

谢谢你们我们的回答是,实际上你提到的第二个选项(自动扩展现有的树节点)是我的主要需求。也许你是对的。我无法使用Property Grid管理它。
Dear SA,
Thank you for your response and yes, acutally the second option you have mentioned (expanding the existing tree node automatically) is my prime need. Perhaps you are right. I cannot manage it with Property Grid.


这篇关于如何保持始终扩展从类派生的属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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