public BF4StatsViewModel(IUIHostService hostService, IDiscord discord, IApplicationState state) { _state = state; _discord = discord; WindowBackgroundContent = hostService.GetHostContainer(UIElementConstants.HostWindowBackground) as Grid; }
public MainMenuService(IUIHostService hostService) { _hostService = hostService; _dispatcher = Dispatcher.CurrentDispatcher; var window = Application.Current.MainWindow; window.Loaded += _wndLoadedHandler; }