private void MainWindow_Loaded(object sender, RoutedEventArgs e) { this.Loaded -= MainWindow_Loaded; BAViewModel.IniContainer(this.BrushCoverage, this.FindResource(inkCanvasStyleKey)); }