public override void OnApplicationStart() { base.OnApplicationStart(); WeblogModel = new WeblogAddinModel() { Addin = this, }; Id = "weblog"; Name = "Weblog Publishing Addin"; // Create addin and automatically hook menu events var menuItem = new AddInMenuItem(this) { Caption = "Weblog Publishing", FontawesomeIcon = FontAwesomeIcon.Rss, KeyboardShortcut = WeblogAddinConfiguration.Current.KeyboardShortcut }; try { menuItem.IconImageSource = new ImageSourceConverter() .ConvertFromString("pack://application:,,,/WeblogAddin;component/icon_22.png") as ImageSource; } catch { } MenuItems.Add(menuItem); }
public WebLogForm(WeblogAddinModel model) { Model = model; model.ActivePostMetadata = new WeblogPostMetadata(); model.ActiveWeblogInfo = new WeblogInfo(); model.Window = this; mmApp.SetTheme(mmApp.Configuration.ApplicationTheme); InitializeComponent(); Loaded += WebLogStart_Loaded; Closing += WebLogStart_Closing; }
public WeblogForm(WeblogAddinModel model) { Model = model; model.ActivePostMetadata = new WeblogPostMetadata(); model.ActiveWeblogInfo = new WeblogInfo(); model.Window = this; InitializeComponent(); mmApp.SetThemeWindowOverride(this); Loaded += WebLogStart_Loaded; Closing += WebLogStart_Closing; StatusBar = new StatusBarHelper(StatusText, StatusIcon); }
public WeblogForm(WeblogAddinModel model) { Model = model; model.ActivePostMetadata = new WeblogPostMetadata(); model.ActiveWeblogInfo = new WeblogInfo(); model.Window = this; InitializeComponent(); mmApp.SetThemeWindowOverride(this); if (mmApp.Configuration.ApplicationTheme == Themes.Light) { TabControl.Background = (SolidColorBrush)Resources["LightThemeTitleBackground"]; } Loaded += WebLogStart_Loaded; Closing += WebLogStart_Closing; }
public WebLogForm() { Model = new WeblogAddinModel() { ActivePostMetadata = new WeblogPostMetadata(), Configuration = WeblogAddinConfiguration.Current, Window = this }; mmApp.SetTheme(mmApp.Configuration.ApplicationTheme); InitializeComponent(); DataContext = Model; // Code bindings ComboWeblogType.ItemsSource = Enum.GetValues(typeof(WeblogTypes)).Cast<WeblogTypes>(); Loaded += WebLogStart_Loaded; Closing += WebLogStart_Closing; }