Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can use windows PropertyGrid in you WPF application. you can create a class contain all properties you wanna show in propertygrid for example:</p> <pre><code>[TypeConverter(typeof(AllItemsTypeConverter))] public class AllItems { public string Name { get { // } set { // } } public String description { get { // } set { // } } } </code></pre> <p>there is a type convertor for AllItems Class you can filters your Items for each object you want like this:</p> <pre><code> class AllItemsTypeConverter: ExpandableObjectConverter { public override PropertyDescriptorCollection GetProperties( ITypeDescriptorContext context, object value, Attribute[] attributes) { var originalProperties = base.GetProperties(context, value, attributes); var propertyDescriptorList = new List&lt;PropertyDescriptor&gt;(originalProperties.Count); foreach (PropertyDescriptor propertyDescriptor in originalProperties) { bool showPropertyDescriptor = true; switch (propertyDescriptor.Name) { // this properties belong to Input case "InputPlayInstance": showPropertyDescriptor = designerNode.ShowInput; break; case "InputNodeInputSetup": showPropertyDescriptor = designerNode.ShowInput; break; case "InputGrammerList": showPropertyDescriptor = designerNode.ShowInput; break; . . . . } if (showPropertyDescriptor) propertyDescriptorList.Add(propertyDescriptor); } return new PropertyDescriptorCollection(propertyDescriptorList.ToArray()); } } </code></pre> <p>that class override the "GetProperties" method of "ExpandableObjectConverter" class you can specify that property to belong specific object or no.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload