Example #1
0
 public DevMarginVisual(DevMarginViewModel model, IVsfSettings settings)
     : this()
 {
     this.Model = model;
       this.DataContext = Model;
       this.settings = settings;
 }
Example #2
0
        public DevViewMargin(IWpfTextViewHost wpfTextViewHost, IFileExtensionRegistryService fers)
        {
            model = new DevMarginViewModel();
            this.wpfTextViewHost         = wpfTextViewHost;
            this.extensionRegistry       = fers;
            this.visual                  = new DevMarginVisual(model);
            this.visual.ViewBuffer      += OnViewBuffer;
            VsfSettings.SettingsUpdated += OnSettingsUpdated;
            this.wpfTextViewHost.Closed += OnTextViewHostClosed;

            UpdateVisibility();
            InitializeTextView();
            RefreshBufferGraphList();
            this.model.RefreshView(wpfTextViewHost.TextView);
        }
Example #3
0
        public DevViewMargin(IWpfTextViewHost wpfTextViewHost, 
            IFileExtensionRegistryService fers,
            IVsfSettings settings)
        {
            model = new DevMarginViewModel();
              this.wpfTextViewHost = wpfTextViewHost;
              this.extensionRegistry = fers;
              this.settings = settings;
              this.settings.SettingsChanged += OnSettingsChanged;
              this.wpfTextViewHost.Closed += OnTextViewHostClosed;

              this.visual = new DevMarginVisual(model, settings);
              this.visual.ViewBuffer += OnViewBuffer;

              UpdateVisibility();
              InitializeTextView();
              RefreshBufferGraphList();
              this.model.RefreshView(wpfTextViewHost.TextView);
        }
Example #4
0
 public DevMarginVisual(DevMarginViewModel model, IVsfSettings settings) : this()
 {
     this.Model       = model;
     this.DataContext = Model;
     this.settings    = settings;
 }
Example #5
0
 public DevMarginVisual(DevMarginViewModel model) : this()
 {
     this.Model       = model;
     this.DataContext = Model;
 }