Beispiel #1
0
 /// <summary>
 /// As an extension, information of the core and the control needs to be present in all extensions, therefore
 /// it is a protected base class member
 /// </summary>
 /// <param name="editor"> TextEditorControl object </param>
 /// <param name="core"> TextCore Singleton object </param>
 public void SetEditorCore(TextEditorControl editor, ITextEditorCore core)
 {
     textEditorControl = editor;
     textCore          = core;
     textEditorCanvas  = textEditorControl.FindName("textCanvas") as TextEditorCanvas;
     scrollViewer      = textEditorControl.FindName("scrollViewer") as ScrollViewer;
 }
Beispiel #2
0
 public AuxiliaryLayer(TextEditorCanvas textEditorCanvas)
     : base(textEditorCanvas)
 {
     caretRect        = new System.Windows.Rect();
     caretRect.Width  = 1.3;
     caretRect.Height = Configurations.FontDisplayHeight;
     caretVisibility  = System.Windows.Visibility.Visible;
 }
 public LineHeadingLayer(TextEditorCanvas textEditorCanvas)
     : base(textEditorCanvas)
 {
     breakpointImage   = new BitmapImage(new Uri(Images.BreakpointImage, UriKind.Absolute));
     runIndiactorImage = new BitmapImage(new Uri(Images.RunIndicator, UriKind.Absolute));
     errorImage        = new BitmapImage(new Uri(Images.ErrorImage, UriKind.Absolute));
     warningImage      = new BitmapImage(new Uri(Images.WarningImage, UriKind.Absolute));
     errorEditImage    = new BitmapImage(new Uri(Images.ErrorEditImage, UriKind.Absolute));
 }
        public EditorVisualHost(TextEditorCanvas textEditorCanvas)
        {
            Configurations.InitializeFontSizes();

            children      = new VisualCollection(this);
            highlight     = new HighlightLayer(textEditorCanvas);
            auxiliary     = new AuxiliaryLayer(textEditorCanvas);
            lineHeading   = new LineHeadingLayer(textEditorCanvas);
            sourceDisplay = new SourceDisplayLayer(textEditorCanvas);
        }
 public VisualLayer(TextEditorCanvas textEditorCanvas)
 {
     this.textEditorCanvas = textEditorCanvas;
 }
 public SourceDisplayLayer(TextEditorCanvas textEditorCanvas)
     : base(textEditorCanvas)
 {
 }
Beispiel #7
0
 public HighlightLayer(TextEditorCanvas textEditorCanvas)
     : base(textEditorCanvas)
 {
 }