public FlipViewIndicator()
        {
            this.InitializeComponent();

            _model = new FlipViewModel();
#if SDKVERSION_14393
            SampleDefinition shyHeader = SampleDefinitions.Definitions.Where(x => x.Type == typeof(ShyHeader)).FirstOrDefault();
            if (shyHeader != null)
            {
                _model.FlipViewItems.Add(new FeaturedFlipViewSample("Create a shrinking header tied to scroll position", "", "/Assets/BannerImages/ShyHeader.PNG", shyHeader));
            }
            SampleDefinition interactions3D = SampleDefinitions.Definitions.Where(x => x.Type == typeof(Interactions3D)).FirstOrDefault();
            if (interactions3D != null)
            {
                _model.FlipViewItems.Add(new FeaturedFlipViewSample("Interaction Tracker 3D", "", "/Assets/BannerImages/IneractionTrackerBanner.png", interactions3D));
            }
            SampleDefinition pullToAnimate = SampleDefinitions.Definitions.Where(x => x.Type == typeof(PullToAnimate)).FirstOrDefault();
            if (pullToAnimate != null)
            {
                _model.FlipViewItems.Add(new FeaturedFlipViewSample("Create custom resting points with animation", "", "/Assets/BannerImages/PullToAnimateBanner.PNG", pullToAnimate));
            }
            this.DataContext = _model;
#endif

            // Automatically have the FlipView progress to the next item
            if (Model.FlipViewItems.Count() > 1)
            {
                Task t = ProgressFlipView();
            }
        }
Пример #2
0
        public FlipViewIndicator()
        {
            this.InitializeComponent();

            _model = new FlipViewModel();
#if SDKVERSION_14393
            SampleDefinition item1 = SampleDefinitions.Definitions.Where(x => x.Type == typeof(Interactions3D)).FirstOrDefault();
            SampleDefinition item2 = SampleDefinitions.Definitions.Where(x => x.Type == typeof(PullToAnimate)).FirstOrDefault();
            _model.FlipViewItems.Add(new FeaturedFlipViewSample("Interaction Tracker 3D", "", "/Assets/BannerImages/IneractionTrackerBanner.png", item1));
            _model.FlipViewItems.Add(new FeaturedFlipViewSample("Create custom resting points with animation", "", "/Assets/BannerImages/PullToAnimateBanner.PNG", item2));
            this.DataContext = _model;
#endif

            // Automatically have the FlipView progress to the next item
            if (Model.FlipViewItems.Count() > 1)
            {
                Task t = ProgressFlipView();
            }
        }
        public FlipViewIndicator()
        {
            this.InitializeComponent();

            _model = new FlipViewModel();

#if SDKVERSION_15063
            SampleDefinition brushInterop = SampleDefinitions.Definitions.Where(x => x.Type == typeof(BrushInterop)).FirstOrDefault();
            if (brushInterop != null)
            {
                _model.FlipViewItems.Add(new FeaturedFlipViewSample("Apply custom brushes to XAML content", "", "/Assets/BannerImages/BrushInterop.png", brushInterop));
            }
            this.DataContext = _model;
            SampleDefinition shyHeader = SampleDefinitions.Definitions.Where(x => x.Type == typeof(ShyHeader)).FirstOrDefault();
            if (shyHeader != null)
            {
                _model.FlipViewItems.Add(new FeaturedFlipViewSample("Create a shrinking header tied to scroll position", "", "/Assets/BannerImages/ShyHeader.PNG", shyHeader));
            }
            SampleDefinition pullToAnimate = SampleDefinitions.Definitions.Where(x => x.Type == typeof(PullToAnimate)).FirstOrDefault();
            if (pullToAnimate != null)
            {
                _model.FlipViewItems.Add(new FeaturedFlipViewSample("Create depth of field with manipulation-based blur", "", "/Assets/BannerImages/PullToAnimateBanner.PNG", pullToAnimate));
            }
            this.DataContext = _model;
            SampleDefinition interactions3D = SampleDefinitions.Definitions.Where(x => x.Type == typeof(Interactions3D)).FirstOrDefault();
            if (interactions3D != null)
            {
                _model.FlipViewItems.Add(new FeaturedFlipViewSample("Create an interactive 3D experience", "", "/Assets/BannerImages/IneractionTrackerBanner.png", interactions3D));
            }
            this.DataContext = _model;
#endif

            // Automatically have the FlipView progress to the next item
            if (Model.FlipViewItems.Count() > 1)
            {
                Task t = ProgressFlipView();
            }
        }