public MainWindow() { InitializeComponent(); CultureInfo ci = new CultureInfo("en-US"); Thread.CurrentThread.CurrentCulture = ci; Thread.CurrentThread.CurrentUICulture = ci; DataContext = (WindowViewModel)ViewModelsStorage.Add(typeof(WindowViewModel).Name, $"{typeof(WindowViewModel).Namespace}.{typeof(WindowViewModel).Name}"); ((WindowViewModel)(DataContext)).CurrentControl = new MainView(); //mainView = new MainView(this); //MainGrid.Children.Add(mainView); }
public AddExpenseView() { InitializeComponent(); DataContext = (AddExpenseViewModel)ViewModelsStorage.Add(typeof(AddExpenseViewModel).Name, $"{typeof(AddExpenseViewModel).Namespace}.{typeof(AddExpenseViewModel).Name}"); }