Пример #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);
 }
Пример #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);
 }
Пример #3
0
 public DeckWorkspace()
 {
     _composer           = new WorkspaceComposer <UIElement, SmartPartInfo>(this);
     _stack              = new Stack <UIElement>();
     HorizontalAlignment = HorizontalAlignment.Stretch;
     VerticalAlignment   = VerticalAlignment.Stretch;
 }
Пример #4
0
        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);
            };
        }
Пример #5
0
 public TabWorkspace()
 {
     composer = new WorkspaceComposer <UIElement, SmartPartInfo>(this);
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ZoneWorkspace"/> class
 /// </summary>
 public ZoneWorkspace()
 {
     composer = new WorkspaceComposer <Control, ZoneSmartPartInfo>(this);
 }
Пример #7
0
 /// <summary>
 /// Initializes a new <see cref="XtraTabWorkspace"/>
 /// </summary>
 public XtraTabWorkspace()
 {
     composer = new WorkspaceComposer <Control, XtraTabSmartPartInfo>(this);
 }
Пример #8
0
 public TabWorkspace()
 {
     _tabItems = new Dictionary <UIElement, TabItem>();
     _composer = new WorkspaceComposer <UIElement, TabSmartPartInfo>(this);
 }
Пример #9
0
 public void SetUp()
 {
     workspace = new MockWorkspace();
     composer  = new WorkspaceComposer <MockSP, SmartPartInfo>(workspace);
 }
Пример #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;
 }
Пример #12
0
 public GridWorkspace()
 {
     composer = new WorkspaceComposer <UIElement, GridSmartPartInfo>(this);
 }