RadCarousel Issue - Items disappear after mouse out

2 posts, 0 answers
  1. Carlos
    Carlos avatar
    3 posts
    Member since:
    Aug 2012

    Posted 13 May 2014 Link to this post

    I have a radCarousel control with custom items. When I show first time, it shows all items, but when the user move mouse pointer over it, all items disappear from carousel and Output windows show this:

    System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=ReflectionSettings.HiddenPercentage; DataItem=null; target element is 'GradientStop' (HashCode=36177439); target property is 'Offset' (type 'Double')
    System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:(no path); DataItem=null; target element is 'VisualBrush' (HashCode=13645305); target property is 'Visual' (type 'Visual')

    This is my XAML Code:
    <Style TargetType="{x:Type telerik:CarouselItem}">
    <Setter Property="Height" Value="600"/>
    <Setter Property="Width" Value="400"/>
    <Setter Property="Template">
    <ControlTemplate TargetType="{x:Type telerik:CarouselItem}">
    <Rectangle HorizontalAlignment="Center" VerticalAlignment="Top" Width="300" Height="400" RadiusX="6" RadiusY="6" StrokeThickness="1" Stroke="#FF47587C" Fill="Black"/>
    <Rectangle x:Name="recName"  Margin="60,10,60,540"  Stroke="Black" 
                                           RadiusX="6" RadiusY="6" StrokeThickness="1">
    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Name="X">
    <GradientStop Color="#FF020F1F" Offset="0.138"/>
    <GradientStop Color="#FF032247" Offset="1"/>
    <ContentPresenter IsHitTestVisible="True"/>
    <Style TargetType="{x:Type telerik:CarouselDataRecordPresenter}">
    <Setter Property="Template">
    <ControlTemplate TargetType="{x:Type telerik:CarouselDataRecordPresenter}">
    <StackPanel HorizontalAlignment="Center" TextElement.FontSize="20" TextElement.FontWeight="Bold" TextElement.Foreground="#FFBEC4DE">
    <Label Content="{Binding Path=Fullname}" Margin="0,13,0,19" HorizontalAlignment="Center" TextElement.Foreground="#FFBEC4DE"/>
    <Image x:Name="imgInternal"  Width="274" Height="270" Stretch="Fill" Source="{Binding Path=PictureFullPath}" />
    <Label HorizontalAlignment="Center" Margin="0,10,0,0"  Content="{Binding Path=Position}" TextElement.FontSize="16" TextElement.FontWeight="Normal" TextElement.Foreground="#FFBEC4DE"/>

    This is radCarousel control: 
    <telerik:RadCarousel  x:Name="rcUsers" Background="Black" Height="500" Margin="100,50,100,-120" HorizontalAlignment="Center" VerticalAlignment="Top" VerticalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Hidden" SelectionChanged="rcUsers_SelectionChanged" MouseDoubleClick="rcUsers_MouseDoubleClick" />

    Thanks in advance,

    Carlos De Jesus

  2. Boris
    Boris avatar
    276 posts

    Posted 15 May 2014 Link to this post

    Hello Carlos,

    I was unable to reproduce the error you describe. However, I attached a sample project that uses your code snippets and demonstrates how it works. Could you please modify the attached project in order to reproduce the issue ?

    We are looking forward to your reply.

    Boris Penev
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top