Пример #1
0
        private async Task StartAppAsync(ApplicationConfiguration appConfig)
        {
            await _viewModelContainer.InitializeAsync();

            var viewContainer = new ViewContainer
            {
                DataContext = _viewModelContainer,
                Icon        = appConfig.Icon,
                Title       = appConfig.ApplicationTitle
            };

            viewContainer.ShowDialog();
        }
        private void ShowApp(WpfAppConfiguration config)
        {
            var viewContainer = new ViewContainer
            {
                DataContext = _viewModelContainer,
                Title       = config.WindowConfiguration.AppTitle,
                Icon        = config.WindowConfiguration.Icon,
                Width       = config.WindowConfiguration.WindowWidth,
                Height      = config.WindowConfiguration.WindowHeight
            };

            viewContainer.ShowDialog();
        }