protected override void OnRender(DrawingContext drawingContext) { drawingContext.DrawRectangle(SharedEditorConfiguration.GetEditorBrush(), null, new Rect(0, 0, ActualWidth, ActualHeight)); if (linesView == null && foldingView == null) { SetupViews(); } }
protected override void OnRender(DrawingContext drawingContext) { drawingContext.DrawRectangle(SharedEditorConfiguration.GetEditorBrush(), null, new Rect(0, 0, ActualWidth, ActualHeight)); if (textView == null && selectionView == null && caretView == null) { SetupViews(); InitEvents(); UpdateConfig(); } }
public void Redraw(int num) { var fontColor = SharedEditorConfiguration.GetLinesColumnFontColor(); var typeface = SharedEditorConfiguration.GetTypeface(); var fontHeight = TextConfiguration.GetCharSize().Height; using (var drawingContext = RenderOpen()) { drawingContext.DrawText( new FormattedText(num.ToString(), CultureInfo.CurrentCulture, FlowDirection.LeftToRight, typeface, fontHeight, fontColor), new Point(0, fontHeight * (num - 1))); } }
public FoldingView() { bgBrush = SharedEditorConfiguration.GetFoldingColumnBrush(); foldingPositions = new Dictionary <FoldingPositionInfo, FoldingPositionInfo>(); Margin = new Thickness(SharedEditorConfiguration.GetLinesColumnWidth(), 0, 0, 0); }
protected override double GetWidth() => SharedEditorConfiguration.GetFoldingColumnWidth();
public LinesView() { bgBrush = SharedEditorConfiguration.GetLinesColumnBrush(); linesCount = 1; initialRendering = true; }