Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public AddExpenseView()
 {
     InitializeComponent();
     DataContext = (AddExpenseViewModel)ViewModelsStorage.Add(typeof(AddExpenseViewModel).Name, $"{typeof(AddExpenseViewModel).Namespace}.{typeof(AddExpenseViewModel).Name}");
 }