예제 #1
0
파일: Frame.cs 프로젝트: mohaider/Uno
        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);
        }