Telerik:radpropertygrid似乎没有在集合编辑器/选择器中呈现嵌套类 [英] Telerik: radpropertygrid does not seem to render nested classes in collection editor/picker

查看:134
本文介绍了Telerik:radpropertygrid似乎没有在集合编辑器/选择器中呈现嵌套类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是第二级的集合不会呈现内部(嵌套)类的成员。



第二级意味着集合内部添加/删除编辑器(CollectionEditorPicker) 。



我希望在图2中显示类'powerVoltageDefinition'的所有内部成员,就像我们在图1中看到的那样。



诀窍是什么?如何在这个默认的Collection Add / Remove Editor(所谓的'CollectionEditorPicker')中显示这样的内部类?



图1 - 正确渲染的嵌套类成员

https://i.stack.imgur.com/dWgo1.jpg



图2 - 未呈现的嵌套类成员

https://i.stack.imgur.com/vwf3v.jpg



此RadPropertyGrid的XAML片段:

My problem is that Collections on second level do not render members of inner (nested) classes.

Second level means inside Collections Add/Remove editor (CollectionEditorPicker).

I'd expect that in the figure 2. would be shown all inner members of the class 'powerVoltageDefinition', just like we see it in the figure 1.

What is the trick ? How can I display such inner classes in this default Collection Add/Remove Editor (the so called 'CollectionEditorPicker')?

Figure 1 - Correctly rendered nested class members
https://i.stack.imgur.com/dWgo1.jpg

Figure 2 - Not rendered nested class members
https://i.stack.imgur.com/vwf3v.jpg

XAML snippet of this RadPropertyGrid:

<telerik:RadPropertyGrid x:Name="SelectedProperty" 

    AutoGenerateBindingPaths="True"
    AutoGeneratePropertyDefinitions ="True" 
    AutoGeneratingPropertyDefinition="RadPropertyGrid_AutoGeneratingPropertyDefinition"
    CanUserResizeDescriptionPanel="True"
    NestedPropertiesVisibility="Visible"
    DescriptionPanelVisibility="Visible"
        SearchInNestedProperties="True"                                                                                                      
        PropertySetMode="Union"                                                                                                  
        RenderMode="Hierarchical"
        EditMode="Default"
        EditEnded="CellEditEnded"
        ToolTip="ToDo: Tool Tips">

</telerik:RadPropertyGrid>





我尝试过:



我已经调查过了:



1.这并没有描述问题:

wpf - Telerik RadPropertyGrid CollectionEditorPicker的内容 - 堆栈溢出 [ ^ ]



2.此解决方案不包括我的嵌套类powerVoltageDefinition:

访问CollectionEditorPicker内部属性网格 - PropertyGrid - WPF论坛的用户界面 [ ^ ]



我的解决方案是否导致了这些?:



1.

PropertyGridIndentPresenter Class [ ^ ]



2.

PropertyGridIndentPresenter.IndentLevelProperty Field [ ^ ]



What I have tried:

I have already investigated:

1. This does not describe problem:
wpf - Telerik RadPropertyGrid Content of CollectionEditorPicker - Stack Overflow[^]

2. And this solution does not cover my nested class powerVoltageDefinition:
Access to CollectionEditorPicker inner property grid - PropertyGrid - UI for WPF Forum[^]

Does my solution lead to any of these ?:

1.
PropertyGridIndentPresenter Class[^]

2.
PropertyGridIndentPresenter.IndentLevelProperty Field[^]

推荐答案

我的解决方案工作得很好:)

c# - Telerik:RadPropertyGrid似乎没有在Collection Editor / Picker中呈现嵌套类 - Stack Overflow [ ^ ]
There is my solution working just nice :)
c# - Telerik: RadPropertyGrid does not seem to render nested classes in Collection Editor/Picker - Stack Overflow[^]


这篇关于Telerik:radpropertygrid似乎没有在集合编辑器/选择器中呈现嵌套类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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