This question is locked. New answers and comments are not allowed.
I'm trying to display some pictures and textblock inside a grid inside the coverflow, but have some bugs/problem with that.
My <XAML> code:
My code:
When the coverflow first time is displaying, the textblocks are missing (please see Image1.png added).
When changing between images all is fine (please see Image2.png and Image4.png added),
but after the animation ended the image and the textblock seems to get compress until nothing can get read (please see Image3.png and Image5.png added).
Any suggestions or help on this?
My <XAML> code:
<telerikNavigation:RadCoverFlow Margin="0,28,0,0" VerticalAlignment="Top" x:Name="RadFlowPict" OffsetX="0" OffsetY="100" ReflectionOpacity="0.4" ReflectionHeight="0.4" ItemScale="0.6" RotationY="55" DistanceBetweenItems="30" DistanceFromSelectedItem="5" CameraViewpoint="Center" ItemChangeDelay="00:00:01" SelectionChanged="RadFlowPict_SelectionChanged"> <telerikNavigation:RadCoverFlow.Background> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FF121212" Offset="1"/> <GradientStop Color="#FFFAF6F6" Offset="0.60"/> </LinearGradientBrush> </telerikNavigation:RadCoverFlow.Background> </telerikNavigation:RadCoverFlow>My code:
Grid InsertGrid = new Grid(); InsertGrid.RowDefinitions.Add(new RowDefinition() { Height = new GridLength(0, GridUnitType.Auto)}); InsertGrid.RowDefinitions.Add(new RowDefinition() { Height = new GridLength(25) }); Image InsertImage = new Image() { Width=350, MaxHeight=265, Stretch=System.Windows.Media.Stretch.Uniform, Visibility=System.Windows.Visibility.Visible, Source=new BitmapImage(myUri) }; InsertImage.SetValue(Grid.RowProperty, 0); InsertGrid.Children.Add(InsertImage); TextBlock InsertText = new TextBlock() { HorizontalAlignment = System.Windows.HorizontalAlignment.Center, Text = temp }; System.Windows.Media.Effects.DropShadowEffect myDropShadowEffect = new System.Windows.Media.Effects.DropShadowEffect() { BlurRadius = 4, ShadowDepth = 2, Opacity = 0.49 }; InsertText.Effect = myDropShadowEffect; InsertText.SetValue(Grid.RowProperty, 1); InsertGrid.Children.Add(InsertText); RadFlowPict.Items.Add(InsertGrid);When the coverflow first time is displaying, the textblocks are missing (please see Image1.png added).
When changing between images all is fine (please see Image2.png and Image4.png added),
but after the animation ended the image and the textblock seems to get compress until nothing can get read (please see Image3.png and Image5.png added).
Any suggestions or help on this?