public override void Initialize(object sender, SectionInitializeEventArgs e) { base.Initialize(sender, e); var openSettingsCommand = new RelayCommand(ExecuteOpenSettings); this.teamExplorerSectionCommand = new TeamExplorerSectionCommand(openSettingsCommand, "Open options", WpfUtil.SharedResources["Home_SettingsBrush"] as DrawingBrush); }
public override void Initialize(object sender, SectionInitializeEventArgs e) { base.Initialize(sender, e); // Only show the option button if pacakge is loaded, else it won't do anything if (IsPackageLoaded()) { var openSettingsCommand = new RelayCommand(ExecuteOpenSettings); this.teamExplorerSectionCommand = new TeamExplorerSectionCommand(openSettingsCommand, "Open options", WpfUtil.SharedResources["Home_SettingsBrush"] as DrawingBrush); } }