public /*override*/ void ShowDetail(object val) { PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(val); var col = new WPG.Themes.TypeEditors.CollectionEditorControl(); col.MyProperty = new WPG.Data.Property(val, properties["Paths"]); //col.MyProperty. IsReadOnly = false; //col.NumerableType = typeof(PathViewModel); col.NumerableType = val.GetType(); col.NumerableValue = ((BackupItemViewModel)val).Paths; var pg = new WPG.TypeEditors.CollectionEditorWindow(col); pg.ShowDialog(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.myUserCtl = ((WPG.Themes.TypeEditors.CollectionEditorControl)(target)); return; case 2: this.txtTypeName = ((System.Windows.Controls.TextBox)(target)); return; case 3: #line 13 "..\..\..\..\Themes\TypeEditors\CollectionEditorControl.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; } this._contentLoaded = true; }