Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: ExpandableObject

$
0
0
Hi,

1) Can you post a sample of this ? How do you define your array ? Is it something like :
_propertyGrid.SelectedObject = new MyObject()
      {
         MyArray = new string[3] { "Carl", "Julia", "Megan"}
      };

 public class MyObject
  {
    [ExpandableObject()]
    public string[] MyArray
    {
      get;
      set;
    }
  }
2) For List or Dictionnary, we use the CollectionControl, available with the arrow on the PropertyItem line. Opening it will let you add/remove/modify the List content. If you use ExpandableObject() attribute on a List Property, you will see List's public properties : Capacity and Count.

Viewing all articles
Browse latest Browse all 2157

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>