I'm new to WPF and to the Carousel as well, but taking what little examples there are for this control just isn't working for me. Even taking the exact code from your documentation and applying it makes my Carousel disappear.
When trying to view the Style in Expression Blend 4, I get an error "Property values set when no trigger is active".
The code I have is very simple:
<telerik:RadCarousel x:Name="carousel"> |
<Image Source="Images/Puck/1.jpg" Width="200" Height="200" Stretch="Fill" /> |
<Image Source="Images/Puck/4.jpg" Width="200" Height="200" Stretch="Fill" /> |
<Image Source="Images/Puck/5.jpg" Width="200" Height="200" Stretch="Fill" /> |
<Image Source="Images/Puck/6.jpg" Width="200" Height="200" Stretch="Fill" /> |
<Image Source="Images/Puck/7.jpg" Width="200" Height="200" Stretch="Fill" /> |
<Image Source="Images/Puck/9.jpg" Width="200" Height="200" Stretch="Fill" /> |
<Image Source="Images/Puck/10.jpg" Width="200" Height="200" Stretch="Fill" /> |
<Image Source="Images/Puck/11.jpg" Width="200" Height="200" Stretch="Fill" /> |
</telerik:RadCarousel> |
<Grid.Resources> |
<Style TargetType="{x:Type telerik:CarouselItem}"> |
<Setter Property="Template"> |
<Setter.Value> |
<ControlTemplate TargetType="{x:Type telerik:CarouselItem}"> |
<Border x:Name="border"> |
<VisualStateManager.VisualStateGroups> |
<VisualStateGroup x:Name="ValidationStates"> |
<VisualState x:Name="Valid"/> |
<VisualState x:Name="InvalidFocused"/> |
<VisualState x:Name="InvalidUnfocused"/> |
</VisualStateGroup> |
</VisualStateManager.VisualStateGroups> |
<Border x:Name="CarouselItemMainBorder" |
ClipToBounds="False" RenderTransformOrigin="0.5, 1" |
Opacity="{Binding ReflectionSettings.Opacity, RelativeSource={RelativeSource TemplatedParent}}" |
Visibility="{Binding ReflectionSettings.Visibility, RelativeSource={RelativeSource TemplatedParent}}" |
BorderBrush="{x:Null}" BorderThickness="1,1,1,1" CornerRadius="0" SnapsToDevicePixels="True" Margin="0,0,-10,-35" MouseEnter="MouseEnterTest"> |
<Border.Background> |
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> |
<GradientStop Color="#FFC1DCFF" Offset="0"/> |
<GradientStop Color="#FF7EB8F8" Offset="1"/> |
</LinearGradientBrush> |
</Border.Background> |
</Border> |
</Border> |
</ControlTemplate> |
</Setter.Value> |
</Setter> |
</Style> |
</Grid.Resources> |