Exemplo n.º 1
0
        public ShellPageViewModel(Context context)
            : base(context)
        {
            NavList.Insert(3, UserItem);
            UserItem.Special = context.IsLogin;
            NavFootList.Insert(0, ThemeModeItem);

            Context.PropertyChanged         += Context_PropertyChanged;
            FirstBackVisibility              = Visibility.Collapsed;
            Setting.Current.PropertyChanged += (s, e) =>
            {
                if (e.PropertyName == "DarkMode")
                {
                    DisplayTheme();
                }
            };
        }