by John Zolezzi
This example shows how to create an interactive item for only the selected item in the Carousel3D. Carousel3D class has a property called ItemModelGenerator which allows you to specify a custom model generator for each item from the ItemsSource. Inside our custom model generator we create an InteractiveVisual3D object (found in 3DTools) to allow for the 2D control interactivity on a 3D model.
We now have 2D control interactivity for all the items but we only want it for the selected item in the carousel. To make it easy for designers to control when to show and hide the interactive content, we use attached properties.
Download the sample for the complete right up and sample code.
Requires Blendables Essentials Mix.