Exemple #1
0
        public Shell(NavigationService navigationService)
        {
            Instance = this;
            InitializeComponent();
            MyHamburgerMenu.NavigationService = navigationService;
            VisualStateManager.GoToState(Instance, Instance.NormalVisualState.Name, true);

            Color White = Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF);
            Color AnchorGreen = Color.FromArgb(0xFF, 0x00, 0x60, 0x64);
            Color AnchorLightGreen = Color.FromArgb(0xFF, 0x00, 0x83, 0x8f);
            Color AnchorDarkGreen = Color.FromArgb(0xFF, 0x00, 0x3D, 0x40);

            ApplicationView AppView = ApplicationView.GetForCurrentView();

            AppView.TitleBar.ButtonInactiveBackgroundColor = AnchorGreen;
            AppView.TitleBar.ButtonInactiveForegroundColor = AppView.TitleBar.InactiveForegroundColor;
            AppView.TitleBar.ButtonBackgroundColor = AnchorGreen;
            AppView.TitleBar.ButtonForegroundColor = White;

            AppView.TitleBar.BackgroundColor = AnchorGreen;
            AppView.TitleBar.ForegroundColor = White;

            AppView.TitleBar.InactiveBackgroundColor = AnchorGreen;

            AppView.TitleBar.ButtonHoverBackgroundColor = AnchorLightGreen;
            AppView.TitleBar.ButtonHoverForegroundColor = White;

            AppView.TitleBar.ButtonPressedBackgroundColor = AnchorDarkGreen;
            AppView.TitleBar.ButtonPressedForegroundColor = White;
        }
 public Shell(NavigationService navigationService)
 {
     Instance = this;
     this.InitializeComponent();
     Window = Template10.Common.WindowWrapper.Current();
     MyHamburgerMenu.NavigationService = navigationService;
 }
Exemple #3
0
 public Shell(NavigationService navigationService)
 {
     Instance = this;
     InitializeComponent();
     MyHamburgerMenu.NavigationService = navigationService;
     VisualStateManager.GoToState(Instance, Instance.NormalVisualState.Name, true);
 }
Exemple #4
0
        public Shell(NavigationService navigationService)
        {
            Instance = this;
            InitializeComponent();
            MyHamburgerMenu.NavigationService = navigationService;

            SetupAppLayout();
        }
 public ShellExt(NavigationService navigationService)
 {
     //Instance = this;
     this.ViewModel = ShellViewModelExt.Instance;
     this.InitializeComponent();
     MyHamburgerMenu.NavigationService = navigationService;
     ApplicationView.GetForCurrentView().Title = ShellViewModelExt.Instance.ApplicationTitle;
 }
Exemple #6
0
 public Shell(NavigationService navigationService)
 {
     Instance = this;
     this.InitializeComponent();
     Window = Template10.Common.WindowWrapper.Current();
     MyHamburgerMenu.NavigationService = navigationService;
     VisualStateManager.GoToState(this, NormalVisualState.Name, false);
 }
Exemple #7
0
        public Shell(NavigationService navigationService)
        {
            Instance = this;
            InitializeComponent();
            MyHamburgerMenu.NavigationService = navigationService;
            VisualStateManager.GoToState(Instance, Instance.Narrow.Name, true);

            BindingOperations.SetBinding(this, RightSideIsOpenProperty, new Binding() { Source = RightSplitView, Path = new PropertyPath("IsPaneOpen"), Mode = BindingMode.TwoWay });
        }
Exemple #8
0
		public Shell(NavigationService navigationService)
		{
			Instance = this;
			InitializeComponent();
			MyHamburgerMenu.NavigationService = navigationService;
			VisualStateManager.GoToState(Instance, Instance.NormalVisualState.Name, true);
			PopulateDefaultColors();
			ElementTheme startupTheme = (SettingsService.Instance.AppTheme == ApplicationTheme.Light)? ElementTheme.Light : ElementTheme.Default;
			SetThemeColors(startupTheme);
		}
 public MainPageViewModel()
 {
     if (Windows.ApplicationModel.DesignMode.DesignModeEnabled)
     {
         LoadDesigntimeData();
     }
     else
     {
         _colorRepository = new Repositories.ColorRepository();
         _favoritesRepository = new Repositories.FavoritesRepository();
         _navigationService = (App.Current as App).NavigationService;
     }
 }
        public Shell(NavigationService navigationService)
        {
            Instance = this;
            this.InitializeComponent();

            // setup for static calls
            Window = WindowWrapper.Current();
            MyHamburgerMenu.NavigationService = navigationService;

            // any nav change, reset to normal
            navigationService.FrameFacade.Navigated += (s, e) =>
                BusyModal.IsModal = SearchModal.IsModal = LoginModal.IsModal = false;
        }
Exemple #11
0
        public Shell(NavigationService navigationService)
        {
            this.InitializeComponent();

            NavigationService = navigationService;
            this.ShellSplitView.Content = navigationService.FrameFacade.Frame;
            navigationService.FrameFacade.Navigated += (s, e) => UpdateButtons(e);
            this.Loaded += (s, e) => UpdateButtons();

            ShellSplitView.RegisterPropertyChangedCallback(SplitView.IsPaneOpenProperty, (s, e) =>
            {
                PaneWidth = !ShellSplitView.IsPaneOpen ? ShellSplitView.CompactPaneLength : ShellSplitView.OpenPaneLength;
            });
            PaneWidth = !ShellSplitView.IsPaneOpen ? ShellSplitView.CompactPaneLength : ShellSplitView.OpenPaneLength;
        }
        internal FrameFacade(NavigationService navigationService, Frame frame)
        {
            NavigationService = navigationService;
            Frame = frame;
            frame.Navigated += (s, e) => FacadeNavigatedEventHandler(s, e);
            frame.Navigating += (s, e) => FacadeNavigatingCancelEventHandler(s, e);

            // setup animations
            var t = new NavigationThemeTransition
            {
                DefaultNavigationTransitionInfo = new EntranceNavigationTransitionInfo()
            };
            Frame.ContentTransitions = new TransitionCollection { };
            Frame.ContentTransitions.Add(t);
        }
Exemple #13
0
 public Shell(NavigationService navigationService)
 {
     Instance = this;
     this.InitializeComponent();
     MyHamburgerMenu.NavigationService = navigationService;
 }
 public static WindowWrapper Current(NavigationService nav) { return ActiveWrappers.First(x => x.NavigationServices.Contains(nav)); }
 public Shell(NavigationService navigationService)
 {
     Instance = this;
     InitializeComponent();
     Window = Template10.Common.WindowWrapper.Current();
 }
 public Shell(NavigationService navigationService)
 {
     Instance = this;
     InitializeComponent();
     SetNavigationService(navigationService);
 }
Exemple #17
0
 public AppShell(NavigationService navService)
 {
     this.InitializeComponent();
     Menu.NavigationService = navService;
 }
 public void SetNavigationService(NavigationService navigationService)
 {
     MyHamburgerMenu.NavigationService = navigationService;
 }
Exemple #19
0
 public static WindowWrapper Current(NavigationService nav) => ActiveWrappers.FirstOrDefault(x => x.NavigationServices.Contains(nav));
Exemple #20
0
 public NavigationLogic(NavigationService navigationService)
 {
     NavigationService = navigationService;
 }