コード例 #1
0
ファイル: Shell.xaml.cs プロジェクト: Jimmy422/anchor
        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;
        }
コード例 #2
0
 public Shell(NavigationService navigationService)
 {
     Instance = this;
     this.InitializeComponent();
     Window = Template10.Common.WindowWrapper.Current();
     MyHamburgerMenu.NavigationService = navigationService;
 }
コード例 #3
0
ファイル: Shell.xaml.cs プロジェクト: HSuke/Survey-Hero
 public Shell(NavigationService navigationService)
 {
     Instance = this;
     InitializeComponent();
     MyHamburgerMenu.NavigationService = navigationService;
     VisualStateManager.GoToState(Instance, Instance.NormalVisualState.Name, true);
 }
コード例 #4
0
ファイル: Shell.xaml.cs プロジェクト: ShiroYacha/Planact
        public Shell(NavigationService navigationService)
        {
            Instance = this;
            InitializeComponent();
            MyHamburgerMenu.NavigationService = navigationService;

            SetupAppLayout();
        }
コード例 #5
0
 public ShellExt(NavigationService navigationService)
 {
     //Instance = this;
     this.ViewModel = ShellViewModelExt.Instance;
     this.InitializeComponent();
     MyHamburgerMenu.NavigationService = navigationService;
     ApplicationView.GetForCurrentView().Title = ShellViewModelExt.Instance.ApplicationTitle;
 }
コード例 #6
0
ファイル: Shell.xaml.cs プロジェクト: RomeoPavoni/Template10
 public Shell(NavigationService navigationService)
 {
     Instance = this;
     this.InitializeComponent();
     Window = Template10.Common.WindowWrapper.Current();
     MyHamburgerMenu.NavigationService = navigationService;
     VisualStateManager.GoToState(this, NormalVisualState.Name, false);
 }
コード例 #7
0
ファイル: Shell.xaml.cs プロジェクト: jaydcarlson/belial
        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 });
        }
コード例 #8
0
ファイル: Shell.xaml.cs プロジェクト: leestott/Template10
		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);
		}
コード例 #9
0
 public MainPageViewModel()
 {
     if (Windows.ApplicationModel.DesignMode.DesignModeEnabled)
     {
         LoadDesigntimeData();
     }
     else
     {
         _colorRepository = new Repositories.ColorRepository();
         _favoritesRepository = new Repositories.FavoritesRepository();
         _navigationService = (App.Current as App).NavigationService;
     }
 }
コード例 #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;
        }
コード例 #11
0
ファイル: Shell.xaml.cs プロジェクト: Himansh1306/Template10
        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;
        }
コード例 #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);
        }
コード例 #13
0
ファイル: Shell.xaml.cs プロジェクト: GibSral/Template10
 public Shell(NavigationService navigationService)
 {
     Instance = this;
     this.InitializeComponent();
     MyHamburgerMenu.NavigationService = navigationService;
 }
コード例 #14
0
 public static WindowWrapper Current(NavigationService nav) { return ActiveWrappers.First(x => x.NavigationServices.Contains(nav)); }
コード例 #15
0
 public Shell(NavigationService navigationService)
 {
     Instance = this;
     InitializeComponent();
     Window = Template10.Common.WindowWrapper.Current();
 }
コード例 #16
0
 public Shell(NavigationService navigationService)
 {
     Instance = this;
     InitializeComponent();
     SetNavigationService(navigationService);
 }
コード例 #17
0
ファイル: AppShell.xaml.cs プロジェクト: Connorcpu/GW2-Win10
 public AppShell(NavigationService navService)
 {
     this.InitializeComponent();
     Menu.NavigationService = navService;
 }
コード例 #18
0
 public void SetNavigationService(NavigationService navigationService)
 {
     MyHamburgerMenu.NavigationService = navigationService;
 }
コード例 #19
0
ファイル: WindowWrapper.cs プロジェクト: petebeech/Template10
 public static WindowWrapper Current(NavigationService nav) => ActiveWrappers.FirstOrDefault(x => x.NavigationServices.Contains(nav));
コード例 #20
0
ファイル: NavigationLogic.cs プロジェクト: GFlisch/Template10
 public NavigationLogic(NavigationService navigationService)
 {
     NavigationService = navigationService;
 }