private void Window_SizeChanged(object sender, SizeChangedEventArgs e) { Canvas.Children.Clear(); Canvas.Children.Add(BackgroudChart); Canvas.Children.Add(coordLabel); coordLabel.Text = ""; BackgroudChart.SetValue(Canvas.LeftProperty, 0.0); BackgroudChart.SetValue(Canvas.TopProperty, 0.0); BackgroudChart.Width = Canvas.ActualWidth; BackgroudChart.Height = Canvas.ActualHeight; }
private void Window_Loaded(object sender, RoutedEventArgs e) { BackgroudChart.SetValue(Canvas.LeftProperty, 0.0); BackgroudChart.SetValue(Canvas.TopProperty, 0.0); BackgroudChart.Width = Canvas.ActualWidth; BackgroudChart.Height = Canvas.ActualHeight; var data = new Dictionary <int, double>(); data.Add(0, 0); MainWindowModel.SetData(data); GraphTypeComboBox_SelectionChanged(GraphTypeComboBox, null); MaxFrequencyTextBlock.Text = "<=10"; }