public void RegisterTaskPanes(Register register) { myAddinTaskPane = register(() => { var button = new System.Windows.Controls.Button { Content = "Insert Quote" }; button.Click += InsertQuote; var host = new WpfPanelHost { Child = new UserControl { Content = new StackPanel { Children = { button } } } }; return(host); }, "Quotes!"); myAddinTaskPane.Visible = true; myAddinTaskPane.VisibleChanged += TaskPaneVisibleChanged; TaskPaneVisibleChanged(this, EventArgs.Empty); }
public void RegisterSelf(Register register) { contentTaskPane = register(() => new WpfPanelHost { Child = this }, "GitHub for Outlook", false); }
public void RegisterTaskPanes(Register register) { wikipediaResultsTaskPane = register( () => new WpfPanelHost { Child = new WikipediaResultsView //This is a WPF User control { DataContext = wikipediaResultsViewModel //Viewmodel for the user control } }, "Wikipedia Results", PanelShown); wikipediaResultsTaskPane.VisibleChanged += TaskPaneVisibleChanged; }
public void RegisterTaskPanes(Register register) { myAddinTaskPane = register( () => new WpfPanelHost { Child = new WikipediaResultsView //This is a WPF User control { DataContext = wikipediaResultsViewModel //Viewmodel for the user control } }, "Wikipedia Results"); myAddinTaskPane.Visible = true; myAddinTaskPane.VisibleChanged += TaskPaneVisibleChanged; TaskPaneVisibleChanged(this, EventArgs.Empty); }
public void RegisterTaskPanes(Register register) { myAddinTaskPane = register(() => { var button = new System.Windows.Controls.Button { Content = "Insert Quote" }; button.Click += InsertQuote; var host = new WpfPanelHost { Child = new UserControl { Content = new StackPanel { Children = { button } } } }; return host; }, "Quotes!"); myAddinTaskPane.Visible = true; myAddinTaskPane.VisibleChanged += TaskPaneVisibleChanged; TaskPaneVisibleChanged(this, EventArgs.Empty); }
public void RegisterTaskPanes(Register register) { settingsTaskPane = register(() => new WpfPanelHost { Child = new SettingsControl { DataContext = settingsViewModel } }, "GitHub Settings", initallyVisible:false); settingsViewModel.Init(settingsTaskPane); createIssueTaskPane = register(() => new WpfPanelHost { Child = new CreateIssueControl { DataContext = createIssuesViewModel } }, "Create Issue", initallyVisible: false); createIssuesViewModel.Init(createIssueTaskPane); }
public void Init(ICustomTaskPaneWrapper settingsTaskPane) { taskPane = settingsTaskPane; }
public void Init(ICustomTaskPaneWrapper createIssueTaskPane) { taskPane = createIssueTaskPane; }
public void RegisterTaskPanes(Register register) { githubTaskPane = register(() => new WpfPanelHost { Child = new GithubTaskPanel { DataContext = this } }, "Github"); githubTaskPane.Visible = IsGithubTask; PanelShown = IsGithubTask; githubTaskPane.VisibleChanged += GithubTaskPaneVisibleChanged; GithubTaskPaneVisibleChanged(this, EventArgs.Empty); }