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); }
public VisualisationViewModel(VisualisationModel mainModel) { CreateMainCanvas(mainModel); }