Whenever i open a child window with the new version of the Coverflow ... Nov 2009 release. I get the error that it cant find the target DisabledBox. Looking at the Item Template, I see the the State of the template sets the targetName to DisabledBox for Disabled and Yet the template defines the box as PART_DisabledBox. Can we get a fix for this please?
Below ... Highlighted in Bold
Thanks,
Joe
<Style x:Key="RadCoverFlowItemStyle1" TargetType="telerikNavigation:RadCoverFlowItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="telerikNavigation:RadCoverFlowItem">
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Focused"/>
<VisualState x:Name="Disabled">
<Storyboard>
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DisabledBox" Storyboard.TargetProperty="Visibility">
<DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="MouseOver"/>
<VisualState x:Name="Normal"/>
</VisualStateGroup>
<VisualStateGroup x:Name="SelectionStates">
<VisualState x:Name="Selected"/>
<VisualState x:Name="Unselected">
<Storyboard>
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ContentElement" Storyboard.TargetProperty="IsHitTestVisible">
<DiscreteObjectKeyFrame KeyTime="0" Value="False"/>
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
</VisualStateGroup>
<VisualStateGroup x:Name="ContentStates">
<VisualState x:Name="Loaded"/>
<VisualState x:Name="Loading">
<Storyboard>
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="LoadingVisual" Storyboard.TargetProperty="Visibility">
<DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
</ObjectAnimationUsingKeyFrames>
<DoubleAnimation Duration="0:0:2" RepeatBehavior="Forever" Storyboard.TargetName="LoadingVisualAngleTransform" Storyboard.TargetProperty="Angle" From="0" To="359"/>
<DoubleAnimation Duration="0" Storyboard.TargetName="ContentElement" Storyboard.TargetProperty="Opacity" To="0"/>
</Storyboard>
</VisualState>
<VisualState x:Name="InvalidContent">
<Storyboard Duration="0">
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ErrorElement" Storyboard.TargetProperty="Visibility">
<DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Grid Background="Transparent">
<ContentPresenter x:Name="ContentElement" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
<Grid x:Name="LoadingVisual" HorizontalAlignment="Center" MaxHeight="50" MaxWidth="50" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed">
<Grid.RenderTransform>
<RotateTransform x:Name="LoadingVisualAngleTransform" Angle="0" CenterX="0.5" CenterY="0.5"/>
</Grid.RenderTransform>
<Path Stretch="UniformToFill" Stroke="Gray" StrokeEndLineCap="Triangle" StrokeStartLineCap="Flat" StrokeThickness="6" HorizontalAlignment="Center" VerticalAlignment="Center" Data="M1,0 A1,1,90,1,1,0,-1"/>
</Grid>
<Image x:Name="ErrorElement" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed" Source="/Telerik.Windows.Controls.Navigation;component/images/CoverFlowError.png" Stretch="None"/>
<Rectangle x:Name="PART_DisabledBox" Fill="{StaticResource DisabledBrush}" Visibility="Collapsed"/>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="CacheMode">
<Setter.Value>
<BitmapCache/>
</Setter.Value>
</Setter>
</Style>
Below ... Highlighted in Bold
Thanks,
Joe
<Style x:Key="RadCoverFlowItemStyle1" TargetType="telerikNavigation:RadCoverFlowItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="telerikNavigation:RadCoverFlowItem">
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Focused"/>
<VisualState x:Name="Disabled">
<Storyboard>
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DisabledBox" Storyboard.TargetProperty="Visibility">
<DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="MouseOver"/>
<VisualState x:Name="Normal"/>
</VisualStateGroup>
<VisualStateGroup x:Name="SelectionStates">
<VisualState x:Name="Selected"/>
<VisualState x:Name="Unselected">
<Storyboard>
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ContentElement" Storyboard.TargetProperty="IsHitTestVisible">
<DiscreteObjectKeyFrame KeyTime="0" Value="False"/>
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
</VisualStateGroup>
<VisualStateGroup x:Name="ContentStates">
<VisualState x:Name="Loaded"/>
<VisualState x:Name="Loading">
<Storyboard>
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="LoadingVisual" Storyboard.TargetProperty="Visibility">
<DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
</ObjectAnimationUsingKeyFrames>
<DoubleAnimation Duration="0:0:2" RepeatBehavior="Forever" Storyboard.TargetName="LoadingVisualAngleTransform" Storyboard.TargetProperty="Angle" From="0" To="359"/>
<DoubleAnimation Duration="0" Storyboard.TargetName="ContentElement" Storyboard.TargetProperty="Opacity" To="0"/>
</Storyboard>
</VisualState>
<VisualState x:Name="InvalidContent">
<Storyboard Duration="0">
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ErrorElement" Storyboard.TargetProperty="Visibility">
<DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Grid Background="Transparent">
<ContentPresenter x:Name="ContentElement" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
<Grid x:Name="LoadingVisual" HorizontalAlignment="Center" MaxHeight="50" MaxWidth="50" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed">
<Grid.RenderTransform>
<RotateTransform x:Name="LoadingVisualAngleTransform" Angle="0" CenterX="0.5" CenterY="0.5"/>
</Grid.RenderTransform>
<Path Stretch="UniformToFill" Stroke="Gray" StrokeEndLineCap="Triangle" StrokeStartLineCap="Flat" StrokeThickness="6" HorizontalAlignment="Center" VerticalAlignment="Center" Data="M1,0 A1,1,90,1,1,0,-1"/>
</Grid>
<Image x:Name="ErrorElement" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed" Source="/Telerik.Windows.Controls.Navigation;component/images/CoverFlowError.png" Stretch="None"/>
<Rectangle x:Name="PART_DisabledBox" Fill="{StaticResource DisabledBrush}" Visibility="Collapsed"/>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="CacheMode">
<Setter.Value>
<BitmapCache/>
</Setter.Value>
</Setter>
</Style>