コード例 #1
0
 public static AdornerSetOrder CreateBelow(AdornerSetOrder reference)
 {
     if ((OrderToken)reference == (OrderToken)null)
     {
         throw new ArgumentNullException("reference");
     }
     return(new AdornerSetOrder(OrderTokenPrecedence.Before, (OrderToken)reference, OrderTokenConflictResolution.Lose));
 }
コード例 #2
0
ファイル: AdornerSet.cs プロジェクト: radtek/Shopdrawing
 internal AdornerSet(ToolBehaviorContext toolContext, AdornerElementSet adornedElementSet, AdornerSetOrder order)
 {
     if (toolContext == null)
     {
         throw new ArgumentNullException("toolContext");
     }
     if (adornedElementSet == null)
     {
         throw new ArgumentNullException("adornedElementSet");
     }
     this.order             = order;
     this.toolContext       = toolContext;
     this.adornedElementSet = adornedElementSet;
 }
コード例 #3
0
 internal AdornerSet3D(ToolBehaviorContext toolContext, Base3DElement adornedElement, AdornerSetOrder order)
 {
     if (toolContext == null)
     {
         throw new ArgumentNullException("toolContext");
     }
     if (adornedElement == null)
     {
         throw new ArgumentNullException("adornedElement");
     }
     this.toolContext       = toolContext;
     this.adornedElementSet = toolContext.View.Artboard.AdornerLayer.CreateOrGetAdornerElementSetForElement((SceneElement)adornedElement);
     this.order             = order;
     this.adornerSetVisual  = new ModelVisual3D();
     this.adornerSetVisual.SetValue(FrameworkElement.NameProperty, (object)"adornerSet3DVisual");
     this.adornerSetVisual.Transform = (Transform3D) new MatrixTransform3D();
 }
コード例 #4
0
 internal AnimatableAdornerSet(ToolBehaviorContext toolContext, AdornerElementSet adornedElementSet, AdornerSetOrder order)
     : base(toolContext, adornedElementSet, order)
 {
     this.activeAnimations = new List <AdornerAnimation>();
 }
コード例 #5
0
 internal AnimatableAdornerSet(ToolBehaviorContext toolContext, SceneElement adornedElement, AdornerSetOrder order)
     : this(toolContext, toolContext.View.Artboard.AdornerLayer.CreateOrGetAdornerElementSetForElement(adornedElement), order)
 {
 }