Adorner that displays the blue bar next to grids that can be used to create new rows/column.
Наследование: System.Windows.FrameworkElement
Пример #1
0
 internal GridSplitterAdorner(GridRailAdorner rail, DesignItem gridItem, DesignItem firstRow, DesignItem secondRow)
 {
     Debug.Assert(gridItem != null);
     this.grid      = (Grid)gridItem.Component;
     this.gridItem  = gridItem;
     this.firstRow  = firstRow;
     this.secondRow = secondRow;
     this.rail      = rail;
 }
		protected override void OnInitialized()
		{
			leftBar = new GridRailAdorner(this.ExtendedItem, adornerPanel, Orientation.Vertical);
			topBar = new GridRailAdorner(this.ExtendedItem, adornerPanel, Orientation.Horizontal);
			
			RelativePlacement rp = new RelativePlacement(HorizontalAlignment.Left, VerticalAlignment.Stretch);
			rp.XOffset -= GridRailAdorner.RailDistance;
			AdornerPanel.SetPlacement(leftBar, rp);
			rp = new RelativePlacement(HorizontalAlignment.Stretch, VerticalAlignment.Top);
			rp.YOffset -= GridRailAdorner.RailDistance;
			AdornerPanel.SetPlacement(topBar, rp);
			
			adornerPanel.Children.Add(leftBar);
			adornerPanel.Children.Add(topBar);
			this.Adorners.Add(adornerPanel);
			
			CreateSplitter();
			this.ExtendedItem.PropertyChanged += OnPropertyChanged;
					
			base.OnInitialized();
		}
Пример #3
0
		internal GridColumnSplitterAdorner(GridRailAdorner rail, DesignItem gridItem, DesignItem firstRow, DesignItem secondRow)
			: base(rail, gridItem, firstRow, secondRow)
		{
		}
Пример #4
0
		internal GridSplitterAdorner(GridRailAdorner rail, DesignItem gridItem, DesignItem firstRow, DesignItem secondRow)
		{
			Debug.Assert(gridItem != null);
			this.grid = (Grid)gridItem.Component;
			this.gridItem = gridItem;
			this.firstRow = firstRow;
			this.secondRow = secondRow;
			this.rail = rail;
		}
Пример #5
0
		public GridUnitSelector(GridRailAdorner rail)
		{
			SpecialInitializeComponent();

			this.rail = rail;
		}
Пример #6
0
        public GridUnitSelector(GridRailAdorner rail)
        {
            SpecialInitializeComponent();

            this.rail = rail;
        }
Пример #7
0
 internal GridColumnSplitterAdorner(GridRailAdorner rail, DesignItem gridItem, DesignItem firstRow, DesignItem secondRow)
     : base(rail, gridItem, firstRow, secondRow)
 {
 }