コード例 #1
0
 private void CreateMainCanvas(VisualisationModel mainModel)
 {
     MainCanvas                  = mainModel.MainCanvas;
     MainCanvas.SizeChanged     += OnSizeChanged;
     _topLine.Stroke             = new SolidColorBrush(Colors.DarkBlue);
     _bottomLine.Stroke          = new SolidColorBrush(Colors.DarkBlue);
     _topLine.StrokeThickness    = 1;
     _bottomLine.StrokeThickness = 1;
     MainCanvas.Children.Add(_topLine);
     MainCanvas.Children.Add(_bottomLine);
 }
コード例 #2
0
 public VisualisationViewModel(VisualisationModel mainModel)
 {
     CreateMainCanvas(mainModel);
 }