Ejemplo n.º 1
0
 public PathTargetDialogModel(SceneElement root, SceneElement path, PathTargetDialog.PathTargetValidator canTargetElement, string infoText, ITypeId constraintType)
 {
     this.canTargetElement = canTargetElement;
     this.path             = path;
     this.constraintType   = constraintType;
     this.selectionContext = (SelectionContext <ElementNode>) new SingleSelectionContext <ElementNode>();
     this.selectionContext.PropertyChanged += new PropertyChangedEventHandler(this.selectionContext_PropertyChanged);
     this.root     = this.BuildElementNodeTree(root, (ElementNode)null);
     this.infoText = infoText;
 }
Ejemplo n.º 2
0
        private PathTargetDialog(SceneElement root, SceneElement path, string title, string infoText, PathTargetDialog.PathTargetValidator canTargetElement, ITypeId constraintType)
        {
            FrameworkElement element = FileTable.GetElement("Resources\\MotionPathTargetDialog.xaml");

            this.DialogContent  = (UIElement)element;
            this.SizeToContent  = SizeToContent.WidthAndHeight;
            this.Title          = title;
            this.model          = new PathTargetDialog.PathTargetDialogModel(root, path, canTargetElement, infoText, constraintType);
            element.DataContext = (object)this.model;
        }