public StatusbarControl(Settings options, DTE2 dte) { _options = options; _dte = dte; Foreground = Brushes.White; Margin = new Thickness(5, 4, 10, 0); FontWeight = FontWeights.SemiBold; Visibility = Visibility.Collapsed; }
protected override void Initialize() { _dte = GetService(typeof(DTE)) as DTE2; Settings = (Settings)GetDialogPage(typeof(Settings)); Logger.Initialize(this, Vsix.Name); InstallPackage.Initialize(this); _control = new StatusbarControl(Settings, _dte); var injector = new StatusBarInjector(Application.Current.MainWindow); injector.InjectControl(_control); }