Пример #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);
 }