magazinegre.blogg.se

Tecplot show border
Tecplot show border













tecplot show border

If ((state & BORDER_BOTTOM) = BORDER_BOTTOM & (r + 1 >= rowCount || (borderState & BORDER_TOP) = 0))ĭc.DrawLine(pen, new Point(left, top + height), new Point(left + width, top + height)) RowDefinitionCollection rows = this.RowDefinitions ĬolumnDefinitionCollection columns = this.ColumnDefinitions īyte borderState = new byte įor (int i = 0 i = columnCount || (borderState & BORDER_LEFT) = 0))ĭc.DrawLine(pen, new Point(left + width, top), new Point(left + width, top + height)) Private void DrawCollapsedBorder(DrawingContext dc) UIElementCollection children = this.InternalChildren ĭc.DrawRectangle(null, pen, new Rect(left, top, width, height))

tecplot show border

Pen pen = new Pen(this.BorderBrush, this.BorderThickness) Private void DrawSeperatedBorder(DrawingContext dc) If (this.BorderThickness > 0D & this.BorderBrush != null) Protected override void OnRender(DrawingContext dc) This.GetChildBounds(child, out double left, out double top, out double width, out double height) Size size = base.ArrangeOverride(arrangeSize) įoreach (UIElement child in this.InternalChildren) Protected override Size ArrangeOverride(Size arrangeSize) Set => this.SetValue(CellSpacingProperty, value) Get => (double)this.GetValue(CellSpacingProperty) Set => this.SetValue(BorderThicknessProperty, value) Get => (double)this.GetValue(BorderThicknessProperty) Set => this.SetValue(BorderBrushProperty, value) Get => this.GetValue(BorderBrushProperty) as Brush Public static readonly DependencyProperty CellSpacingProperty = DependencyProperty.Register(nameof(CellSpacing), typeof(double), typeof(Sheet), new FrameworkPropertyMetadata(0D, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender, OnCellSpacingChanged, CoerceCellSpacing)) Public static readonly DependencyProperty BorderThicknessProperty = DependencyProperty.Register(nameof(BorderThickness), typeof(double), typeof(Sheet), new FrameworkPropertyMetadata(1D, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender, OnBorderThicknessChanged, CoerceBorderThickness)) Public static readonly DependencyProperty BorderBrushProperty = DependencyProperty.Register(nameof(BorderBrush), typeof(Brush), typeof(Sheet), new FrameworkPropertyMetadata(Brushes.Transparent, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender, OnBorderBrushChanged)) This is my solution, wish useful for you: public class Sheet : Grid















Tecplot show border