public StatusBarViewModel(IShellCoordinator shellCoordinator) : base(shellCoordinator) { Action<object> setCurrentStatus = (object status) => CurrentStatus = status.ToString(); Action<object> setCurrentLocation = (object location) => CurrentLocation = location.ToString(); this.RegisterGlobalAction(SetCurrentStatusAction, setCurrentStatus); this.RegisterGlobalAction(SetCurrentLocationAction, setCurrentLocation); }
public ShellViewModel(IShellCoordinator shellCoordinator) { _flyouts = new FlyoutViewModel(shellCoordinator); _upperStrip = new UpperStripViewModel(shellCoordinator); _navbarStrip = new NavbarContainer(shellCoordinator); _statusBar = new StatusBarViewModel(shellCoordinator); this._shellCoordinator = shellCoordinator; _navbarPresenter = new NavbarModulePresenter(); Setup(); }
public App() : base() { this._shellCoordinator = ShellCoordinator.Instance; AppDomain.CurrentDomain.UnhandledException += (s, ev) => PassToExceptionHandler((Exception)ev.ExceptionObject, "AppDomain.CurrentDomain.UnhandledException"); DispatcherUnhandledException += (s, ev) => PassToExceptionHandler(ev.Exception, "Application.Current.DispatcherUnhandledException"); TaskScheduler.UnobservedTaskException += (s, ev) => PassToExceptionHandler(ev.Exception, "TaskScheduler.UnobservedTaskException"); }
public SearchTileViewModel(IShellCoordinator shellViewCoordinator) : this() { this._shellViewCoordinator = shellViewCoordinator; }
public ExposableViewModelBase(IShellCoordinator shellCoordinator) { this._shellCoordinator = shellCoordinator; }
public FlyoutViewModel(IShellCoordinator coordinator) { _coordinator = coordinator; }
public SearchTileViewModel(IShellCoordinator shellViewCoordinator) { this._shellViewCoordinator = shellViewCoordinator; this._tiles = new ObservableCollection<SearchTileElement>(); }
public NavbarContainer(IShellCoordinator coordinator) : base(coordinator) { _tabs = new ObservableCollection<NavbarTab>(); _commands = new ObservableCollection<NavbarCommand>(); Action<object> addTab = (object tab) => AddTab((NavbarTab)tab); Action<object> addCommand = (object command) => AddCommand((NavbarCommand)command); Action<object> expandCollapseTabs = (object expanded) => IsExpanded = (bool)expanded; this.RegisterGlobalAction(AddTabAction, addTab); this.RegisterGlobalAction(AddCommandAction, addCommand); this.RegisterGlobalAction(ExpandCollapseAction, expandCollapseTabs); }
public UpperStripViewModel(IShellCoordinator shellCoordinator) : base(shellCoordinator) { Action<object> setCurrentTitle = (object title) => CurrentTitle = title.ToString(); this.RegisterGlobalAction(SetCurrentTitleAction, setCurrentTitle); }