Пример #1
0
        public Frame()
        {
            var backStack    = new ObservableCollection <PageStackEntry>();
            var forwardStack = new ObservableCollection <PageStackEntry>();

            backStack.CollectionChanged    += (s, e) => CanGoBack = BackStack.Any();
            forwardStack.CollectionChanged += (s, e) => CanGoForward = ForwardStack.Any();

            BackStack    = backStack;
            ForwardStack = forwardStack;
        }
Пример #2
0
Файл: Frame.cs Проект: x86/uno
        public Frame()
        {
            var backStack    = new ObservableCollection <PageStackEntry>();
            var forwardStack = new ObservableCollection <PageStackEntry>();

            backStack.CollectionChanged += (s, e) =>
            {
                CanGoBack      = BackStack.Any();
                BackStackDepth = BackStack.Count;
            };

            forwardStack.CollectionChanged += (s, e) => CanGoForward = ForwardStack.Any();

            BackStack    = backStack;
            ForwardStack = forwardStack;

            DefaultStyleKey = typeof(Frame);
        }