コード例 #1
0
ファイル: SceneSplitView.cs プロジェクト: radtek/Shopdrawing
 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
ファイル: SceneSplitView.cs プロジェクト: radtek/Shopdrawing
 public void Dispose()
 {
     this.sceneView        = (SceneView)null;
     this.codeEditor       = (ITextEditor)null;
     this.viewOptionsModel = (ViewOptionsModel)null;
     this.scrollViewer     = (SceneScrollViewer)null;
     this.Children.Clear();
 }