CarouselControlResources
The resource keys of the item templates that come with Carousel, for use as its
ItemsControl.ItemTemplate or as the starting point of your own.
public class CarouselControlResources
Remarks
Both templates show an item that is an image path or URI as the picture, filling a white frame
with a 10-pixel margin. Look them up with DynamicResource (or
FrameworkElement.FindResource) – they are defined in the carousel's theme – or
define a template under the same key in your own resources to replace the built-in one.
Examples
<car:Carousel ItemsSource="{Binding CoverImages}" SelectedIndex="0"
ItemTemplate="{DynamicResource {x:Static carRes:CarouselControlResources.CarouselItemTemplateKey}}" />Members at a glance
| Properties | |
|---|---|
CarouselItemReflectionEnabledTemplateKey | Gets the key of a template that shows an image path or URI as the picture in a white frame, with its own reflection in the lower half of the item. |
CarouselItemTemplateKey | Gets the key of the template that shows an image path or URI as the picture in a white frame. |
Properties
CarouselItemReflectionEnabledTemplateKey static
Gets the key of a template that shows an image path or URI as the picture in a white frame, with its own reflection in the lower half of the item.
- Value
- A key for a
DataTemplate.
Remarks
The carousel draws a reflection itself while Carousel.IsReflectionRenderingEnabled
is on, so use this template only with that property off; otherwise each item shows two reflections.
The picture takes the top half of Carousel.ItemDimension, so double the height you
would otherwise give.
CarouselItemTemplateKey static
Gets the key of the template that shows an image path or URI as the picture in a white frame.
- Value
- A key for a
DataTemplate.