コード例 #1
0
 public SceneNodeCollectionDialogEditor()
 {
     this.Resources.MergedDictionaries.Add(FileTable.GetResourceDictionary("Resources/PropertyInspector/CollectionEditorResources.xaml"));
     this.model = new SceneNodeCollectionDialogEditorModel();
     this.collectionDialogEditor       = new CollectionDialogEditor((CollectionDialogEditorModel)this.model);
     this.collectionDialogEditor.Style = (Style)this.Resources[(object)"BlendCollectionEditorStyle"];
     this.collectionDialogEditor.HorizontalAlignment = HorizontalAlignment.Stretch;
     this.collectionDialogEditor.VerticalAlignment   = VerticalAlignment.Stretch;
     this.collectionDialogEditor.SetValue(SceneNodePropertyInspectorPane.InPropertyInspectorProperty, (object)true);
     this.collectionDialogEditor.SetBinding(CollectionDialogEditor.PropertyValueProperty, (BindingBase) new Binding());
     this.Children.Add((UIElement)this.collectionDialogEditor);
     this.Unloaded += new RoutedEventHandler(this.OnUnloaded);
 }
コード例 #2
0
 private void OnUnloaded(object sender, RoutedEventArgs e)
 {
     this.model.Unhook();
     this.model = (SceneNodeCollectionDialogEditorModel)null;
 }