Example #1
0
        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);
        }
Example #2
0
        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();
        }
Example #3
0
        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");
        }
Example #4
0
 public SearchTileViewModel(IShellCoordinator shellViewCoordinator)
     : this()
 {
     this._shellViewCoordinator = shellViewCoordinator;
 }
Example #5
0
 public ExposableViewModelBase(IShellCoordinator shellCoordinator)
 {
     this._shellCoordinator = shellCoordinator;
 }
Example #6
0
 public FlyoutViewModel(IShellCoordinator coordinator)
 {
     _coordinator = coordinator;
 }
Example #7
0
 public SearchTileViewModel(IShellCoordinator shellViewCoordinator)
 {
     this._shellViewCoordinator = shellViewCoordinator;
     this._tiles = new ObservableCollection<SearchTileElement>();
 }
Example #8
0
        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);
        }
Example #9
0
 public UpperStripViewModel(IShellCoordinator shellCoordinator)
     : base(shellCoordinator)
 {
     Action<object> setCurrentTitle = (object title) => CurrentTitle = title.ToString();
     this.RegisterGlobalAction(SetCurrentTitleAction, setCurrentTitle);
 }