Example #1
0
        private void doTest(object sender, RoutedEventArgs e)
        {
            DocumentPane pane = (Application.Current as IAppTemplate).RequestDockingPoint<DocumentPane>(this) as DocumentPane;

             DockableContent dc = new DockableContent();
             dc.Title = "API View";

             APITestDialog dlg = new APITestDialog();
             dc.Content = dlg;

             pane.Items.Add(dc);
             dc.Focus();
        }
Example #2
0
        private void doTest(object sender, RoutedEventArgs e)
        {
            DocumentPane pane = (Application.Current as IAppTemplate).RequestDockingPoint<DocumentPane>(this) as DocumentPane;

               DockableContent dc = new DockableContent();
               dc.Title = "Corp Wallet";

               ReportsPage page = new ReportsPage();
               dc.Content = page;

               pane.Items.Add(dc);
               dc.Focus();
        }
 private void BindAndShow(DockableContent view, object viewModel)
 {
     view.DataContext = ForView.Wrap(viewModel);
     view.ShowAsDocument(dockManager);
     view.Focus();
 }
Example #4
0
        private void onQuerySql(object sender, RoutedEventArgs e)
        {
            DocumentPane documentPane = (Application.Current as IAppTemplate).RequestDockingPoint<DocumentPane>(this) as DocumentPane;

             DockableContent dc = new DockableContent();
             dc.Title = "SQL Query";
             dc.Content = new QueryWindow();

             documentPane.Items.Add(dc);
             dc.Focus();
        }