main
1using System.Windows;
2using AvalonDock;
3using gorilla.utility;
4using solidware.financials.windows.ui.views;
5
6namespace solidware.financials.windows.ui
7{
8 public class TabRegionConfiguration : Configuration<DocumentPane>
9 {
10 readonly TabPresenter presenter;
11 readonly FrameworkElement view;
12
13 public TabRegionConfiguration(TabPresenter presenter, FrameworkElement view)
14 {
15 this.presenter = presenter;
16 this.view = view;
17 }
18
19 public void configure(DocumentPane item)
20 {
21 var document = new DocumentContent
22 {
23 Title = presenter.Header,
24 Content = view,
25 IsCloseable = false
26 };
27 item.Items.Add(document);
28 document.Show(((Shell) Application.Current.MainWindow).DockManager);
29 //document.Activate();
30 }
31 }
32}