示例#1
0
 internal SceneSplitView(SceneView sceneView, ViewOptionsModel viewOptionsModel, SceneScrollViewer scrollViewer, ITextEditor codeEditor)
 {
     this.sceneView        = sceneView;
     this.viewOptionsModel = viewOptionsModel;
     this.scrollViewer     = scrollViewer;
     this.codeEditor       = codeEditor;
     this.topRow           = new RowDefinition();
     this.topRow.MinHeight = 150.0;
     this.RowDefinitions.Add(this.topRow);
     this.autoRow        = new RowDefinition();
     this.autoRow.Height = GridLength.Auto;
     this.RowDefinitions.Add(this.autoRow);
     this.bottomRow           = new RowDefinition();
     this.bottomRow.MinHeight = 150.0;
     this.RowDefinitions.Add(this.bottomRow);
     this.SizeChanged += new SizeChangedEventHandler(this.SceneSplitView_SizeChanged);
     this.leftColumn   = new ColumnDefinition();
     this.ColumnDefinitions.Add(this.leftColumn);
     this.autoColumn       = new ColumnDefinition();
     this.autoColumn.Width = GridLength.Auto;
     this.ColumnDefinitions.Add(this.autoColumn);
     this.rightColumn = new ColumnDefinition();
     this.ColumnDefinitions.Add(this.rightColumn);
     this.Children.Add((UIElement)this.scrollViewer);
     this.splitViewSplitter = new GridSplitter();
     this.splitViewSplitter.HorizontalAlignment = HorizontalAlignment.Stretch;
     this.splitViewSplitter.VerticalAlignment   = VerticalAlignment.Stretch;
     this.splitViewSplitter.DragCompleted      += new DragCompletedEventHandler(this.OnSplitViewSplitterDragCompleted);
     this.Children.Add((UIElement)this.splitViewSplitter);
     if (this.codeEditor == null)
     {
         return;
     }
     this.Children.Add((UIElement)this.codeEditor.Element);
 }
示例#2
0
 public void Dispose()
 {
     this.sceneView        = (SceneView)null;
     this.codeEditor       = (ITextEditor)null;
     this.viewOptionsModel = (ViewOptionsModel)null;
     this.scrollViewer     = (SceneScrollViewer)null;
     this.Children.Clear();
 }
示例#3
0
 public void Commit()
 {
   if (this.viewOptionsModel == null)
     return;
   this.configurationObject.Clear();
   this.viewOptionsModel.Save(this.configurationObject);
   this.viewOptionsModel = (ViewOptionsModel) null;
   this.viewOptionsControl = (ViewOptionsControl) null;
   this.Apply();
 }
 public ToggleDesignOnTopCommand(SceneView sceneView, ViewOptionsModel viewOptionsModel)
 {
     this.sceneView        = sceneView;
     this.viewOptionsModel = viewOptionsModel;
 }
示例#5
0
 public void Cancel()
 {
   this.viewOptionsModel = (ViewOptionsModel) null;
   this.viewOptionsControl = (ViewOptionsControl) null;
 }
示例#6
0
 public ViewOptionsControl(ViewOptionsModel viewOptionsModel)
 {
     this.DataContext = (object)viewOptionsModel;
     this.InitializeComponent();
 }
示例#7
0
 public SwitchSplitViewOrientationCommand(SceneView sceneView, ViewOptionsModel viewOptionsModel, bool isVerticalSplit)
 {
     this.sceneView        = sceneView;
     this.viewOptionsModel = viewOptionsModel;
     this.isVerticalSplit  = isVerticalSplit;
 }