Beispiel #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;
 }
Beispiel #3
0
 public Shell(NavigationService navigationService)
 {
     Instance = this;
     InitializeComponent();
     MyHamburgerMenu.NavigationService = navigationService;
     VisualStateManager.GoToState(Instance, Instance.NormalVisualState.Name, true);
 }
Beispiel #4
0
        public Shell(NavigationService navigationService)
        {
            Instance = this;
            InitializeComponent();
            MyHamburgerMenu.NavigationService = navigationService;

            SetupAppLayout();
        }
Beispiel #5
0
 public ShellExt(NavigationService navigationService)
 {
     //Instance = this;
     this.ViewModel = ShellViewModelExt.Instance;
     this.InitializeComponent();
     MyHamburgerMenu.NavigationService = navigationService;
     ApplicationView.GetForCurrentView().Title = ShellViewModelExt.Instance.ApplicationTitle;
 }
Beispiel #6
0
 public Shell(NavigationService navigationService)
 {
     Instance = this;
     this.InitializeComponent();
     Window = Template10.Common.WindowWrapper.Current();
     MyHamburgerMenu.NavigationService = navigationService;
     VisualStateManager.GoToState(this, NormalVisualState.Name, false);
 }
Beispiel #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 });
        }
Beispiel #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;
     }
 }
Beispiel #10
0
        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;
        }
Beispiel #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;
        }
Beispiel #12
0
        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);
        }
Beispiel #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();
 }
Beispiel #16
0
 public Shell(NavigationService navigationService)
 {
     Instance = this;
     InitializeComponent();
     SetNavigationService(navigationService);
 }
Beispiel #17
0
 public AppShell(NavigationService navService)
 {
     this.InitializeComponent();
     Menu.NavigationService = navService;
 }
Beispiel #18
0
 public void SetNavigationService(NavigationService navigationService)
 {
     MyHamburgerMenu.NavigationService = navigationService;
 }
Beispiel #19
0
 public static WindowWrapper Current(NavigationService nav) => ActiveWrappers.FirstOrDefault(x => x.NavigationServices.Contains(nav));
Beispiel #20
0
 public NavigationLogic(NavigationService navigationService)
 {
     NavigationService = navigationService;
 }