コード例 #1
0
        public InsertionPointHighlighter(ToolBehaviorContext toolContext)
        {
            InsertionPointHighlighter pointHighlighter = this;

            this.previewHighlighter = new PreviewElementHighlighter(toolContext.View.AdornerLayer, (PreviewElementHighlighter.CreateAdornerSet)(adornedElement => pointHighlighter.CreateAdornerSet(toolContext)), (PreviewElementHighlighter.VerifyIsEnabled)(() => toolContext.ToolManager.ShowActiveContainer));
            this.viewModel          = toolContext.View.ViewModel;
        }
コード例 #2
0
 public DataBindingToolBehavior(ToolBehaviorContext toolContext)
     : base(toolContext)
 {
     this.previewHighlighter = new InsertionPointHighlighter(toolContext);
     this.masterBackground   = this.GetResourceBrush(SystemColors.HighlightColorKey);
     this.detailsBackground  = this.GetResourceBrush(SystemColors.ControlDarkDarkColorKey);
 }
コード例 #3
0
 internal DragDropInsertBehavior(ToolBehaviorContext toolContext)
     : base(toolContext)
 {
     this.previewHighlighter = new InsertionPointHighlighter(toolContext);
 }
コード例 #4
0
 internal ElementCreateBehavior(ToolBehaviorContext toolContext)
     : base(toolContext)
 {
     this.previewHighlighter = new InsertionPointHighlighter(toolContext);
 }