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); }
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); }; }
public TabWorkspace() { composer = new WorkspaceComposer <UIElement, SmartPartInfo>(this); }
/// <summary> /// Initializes a new instance of the <see cref="ZoneWorkspace"/> class /// </summary> public ZoneWorkspace() { composer = new WorkspaceComposer <Control, ZoneSmartPartInfo>(this); }
/// <summary> /// Initializes a new <see cref="XtraTabWorkspace"/> /// </summary> public XtraTabWorkspace() { composer = new WorkspaceComposer <Control, XtraTabSmartPartInfo>(this); }
public TabWorkspace() { _tabItems = new Dictionary <UIElement, TabItem>(); _composer = new WorkspaceComposer <UIElement, TabSmartPartInfo>(this); }
public void SetUp() { workspace = new MockWorkspace(); composer = new WorkspaceComposer <MockSP, SmartPartInfo>(workspace); }
/// <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); }