问题描述
我的问题是第二级的集合不会呈现内部(嵌套)类的成员。
第二级意味着集合内部添加/删除编辑器(CollectionEditorPicker) 。
我希望在图2中显示类'powerVoltageDefinition'的所有内部成员,就像我们在图1中看到的那样。
诀窍是什么?如何在这个默认的Collection Add / Remove Editor(所谓的'CollectionEditorPicker')中显示这样的内部类?
图1 - 正确渲染的嵌套类成员
图2 - 未呈现的嵌套类成员
此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.这并没有描述问题:
[]
2.此解决方案不包括我的嵌套类powerVoltageDefinition:
[ []
2.
[]
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[^]
推荐答案
这篇关于Telerik:radpropertygrid似乎没有在集合编辑器/选择器中呈现嵌套类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!