internal static ViewElement CreateDefaultMainSiteContent() { AutoHideChannel autoHideChannel1 = AutoHideChannel.Create(); autoHideChannel1.Dock = Dock.Left; autoHideChannel1.Orientation = Orientation.Vertical; AutoHideChannel autoHideChannel2 = AutoHideChannel.Create(); autoHideChannel2.Dock = Dock.Right; autoHideChannel2.Orientation = Orientation.Vertical; AutoHideChannel autoHideChannel3 = AutoHideChannel.Create(); autoHideChannel3.Dock = Dock.Top; autoHideChannel3.Orientation = Orientation.Horizontal; AutoHideChannel autoHideChannel4 = AutoHideChannel.Create(); autoHideChannel4.Dock = Dock.Bottom; autoHideChannel4.Orientation = Orientation.Horizontal; DocumentGroupContainer documentGroupContainer = DocumentGroupContainer.Create(); documentGroupContainer.DockedWidth = new SplitterLength(1.0, SplitterUnitType.Fill); documentGroupContainer.DockedHeight = new SplitterLength(1.0, SplitterUnitType.Fill); documentGroupContainer.Children.Add((ViewElement)DocumentGroup.Create()); DockRoot dockRoot = DockRoot.Create(); dockRoot.DockedWidth = new SplitterLength(1.0, SplitterUnitType.Fill); dockRoot.DockedHeight = new SplitterLength(1.0, SplitterUnitType.Fill); dockRoot.Children.Add((ViewElement)documentGroupContainer); AutoHideRoot autoHideRoot = AutoHideRoot.Create(); autoHideRoot.DockedWidth = new SplitterLength(1.0, SplitterUnitType.Fill); autoHideRoot.DockedHeight = new SplitterLength(1.0, SplitterUnitType.Fill); autoHideRoot.Children.Add((ViewElement)autoHideChannel1); autoHideRoot.Children.Add((ViewElement)autoHideChannel2); autoHideRoot.Children.Add((ViewElement)autoHideChannel3); autoHideRoot.Children.Add((ViewElement)autoHideChannel4); autoHideRoot.Children.Add((ViewElement)dockRoot); return((ViewElement)autoHideRoot); }
public NakedView() { base.IsVisible = true; AutoHideRoot.SetIsAutoHideCenter(this, true); }