Пример #1
0
        protected override void OnRender(DrawingContext drawingContext)
        {
            drawingContext.DrawRectangle(SharedEditorConfiguration.GetEditorBrush(), null, new Rect(0, 0, ActualWidth, ActualHeight));

            if (linesView == null && foldingView == null)
            {
                SetupViews();
            }
        }
Пример #2
0
        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();
            }
        }