in SampleGallery/Shared/FlipViewIndicator.xaml.cs [39:74]
public FlipViewIndicator()
{
this.InitializeComponent();
_model = new FlipViewModel();
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", 0, 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", 1, 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", 2, 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", 3, interactions3D));
}
this.DataContext = _model;
// Automatically have the FlipView progress to the next item
if (Model.FlipViewItems.Count() > 1)
{
Task t = ProgressFlipView();
}
}