public MainWindow()
        {
            InitializeComponent();
            var models = new Model[2];
            models[0] = new Model() { IsChecked = true, Name = "Jim", Value = 13 };
            models[1] = new Model() { IsChecked = false, Name = "Joe", Value = 41 };

            Bag = new ItemsBag(models);
            Models = models;
            this.DataContext = this;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ItemsBagTypeDescriptor" /> class.
 /// </summary>
 /// <param name="parent">The parent.</param>
 /// <param name="instance">The instance.</param>
 public ItemsBagTypeDescriptor(ICustomTypeDescriptor parent, object instance)
     : base(parent)
 {
     this.bag = (ItemsBag)instance;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ItemsBagTypeDescriptor" /> class.
 /// </summary>
 /// <param name="parent">The parent.</param>
 /// <param name="instance">The instance.</param>
 public ItemsBagTypeDescriptor(ICustomTypeDescriptor parent, object instance)
     : base(parent)
 {
     this.bag = (ItemsBag)instance;
 }