Exemple #1
0
 public FrameWorkspace()
 {
     composer = new WorkspaceComposer <UIElement, SmartPartInfo>(this);
     internalWorkspaceDataCollection = new ObservableCollection <NavigationEntry>();
     workspaceDataCollection         = new ReadOnlyObservableCollection <NavigationEntry>(internalWorkspaceDataCollection);
     base.Navigated += new System.Windows.Navigation.NavigatedEventHandler(NavigatedEventHandler);
 }
Exemple #2
0
 public ZoneWorkspace()
 {
     _zoneNamesByContentControl = new Dictionary <ContentControl, string>();
     _contentControlsByZoneName = new Dictionary <string, ContentControl>();
     _zoneNamesBySmartPart      = new Dictionary <object, string>();
     _composer = new WorkspaceComposer <FrameworkElement, ZoneSmartPartInfo>(this);
 }
 public DeckWorkspace()
 {
     _composer           = new WorkspaceComposer <UIElement, SmartPartInfo>(this);
     _stack              = new Stack <UIElement>();
     HorizontalAlignment = HorizontalAlignment.Stretch;
     VerticalAlignment   = VerticalAlignment.Stretch;
 }
        public DockWorkspace()
        {
            _composer = new WorkspaceComposer <UIElement, SmartPartInfo>(this);

            Workspace workspace = new Workspace();

            workspace.Background = null;

            TabbedMdiHost host = new TabbedMdiHost();

            workspace.Content = host;

            TabbedMdiContainer container = new TabbedMdiContainer();

            host.Content = container;

            this.Content = workspace;

            this.WindowClosing += (s, e) =>
            {
                if (!_isLoading)
                {
                    WorkspaceCancelEventArgs args = new WorkspaceCancelEventArgs(e.Window.Content);
                    RaiseSmartPartClosing(args);
                    e.Cancel = args.Cancel;
                }
            };

            this.WindowClosed += (s, e) =>
            {
                if (!_isLoading)
                {
                    _isClosing = true;
                    Close(e.Window.Content);
                    _isClosing = false;
                }
            };

            this.WindowActivated += (s, e) =>
            {
                Activate(e.Window.Content);
            };
        }
Exemple #5
0
 public TabWorkspace()
 {
     composer = new WorkspaceComposer <UIElement, SmartPartInfo>(this);
 }
Exemple #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ZoneWorkspace"/> class
 /// </summary>
 public ZoneWorkspace()
 {
     composer = new WorkspaceComposer <Control, ZoneSmartPartInfo>(this);
 }
Exemple #7
0
 /// <summary>
 /// Initializes a new <see cref="XtraTabWorkspace"/>
 /// </summary>
 public XtraTabWorkspace()
 {
     composer = new WorkspaceComposer <Control, XtraTabSmartPartInfo>(this);
 }
Exemple #8
0
 public TabWorkspace()
 {
     _tabItems = new Dictionary <UIElement, TabItem>();
     _composer = new WorkspaceComposer <UIElement, TabSmartPartInfo>(this);
 }
Exemple #9
0
 public void SetUp()
 {
     workspace = new MockWorkspace();
     composer  = new WorkspaceComposer <MockSP, SmartPartInfo>(workspace);
 }
Exemple #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeckWorkspace"/> class.
 /// </summary>
 public DeckWorkspace()
 {
     composer = new WorkspaceComposer <Control, SmartPartInfo>(this);
 }
 /// <summary>
 /// Initializes a new <see cref="XtraTabWorkspace"/>
 /// </summary>
 public XtraTabWorkspace()
 {
     composer = new WorkspaceComposer <Control, XtraTabSmartPartInfo>(this);
     //this.CloseButtonClick += XtraTabWorkspace_CloseButtonClick;
 }
 public GridWorkspace()
 {
     composer = new WorkspaceComposer <UIElement, GridSmartPartInfo>(this);
 }