示例#1
0
        // TODO: this is all kinds of wrong
        protected Task <CATransform3D> GetLayerTransformAsync(TStub view)
        {
            var window = new WindowStub();

            window.Content = view;
            view.Parent    = window;

            view.Frame = new Rect(0, 0, 100, 100);

            return(GetValueAsync(view, handler => GetLayerTransform(handler)));
        }
        public async Task BackButtonNotVisibleWithBasicView()
        {
            var window = new WindowStub()
            {
                Content = new ButtonStub()
            };

            await RunWindowTest(window, manager =>
            {
                var navView = GetRootNavigationView(manager);
                Assert.Equal(NavigationViewBackButtonVisible.Collapsed, navView.IsBackButtonVisible);
                return(Task.CompletedTask);
            });
        }