public DevMarginVisual(DevMarginViewModel model, IVsfSettings settings) : this() { this.Model = model; this.DataContext = Model; this.settings = settings; }
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); }
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); }
public DevMarginVisual(DevMarginViewModel model) : this() { this.Model = model; this.DataContext = Model; }