This is a migrated thread and some comments may be shown as answers.

compression effect on added Items

3 Answers 92 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
André
Top achievements
Rank 1
André asked on 16 Jul 2010, 11:12 AM
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:
<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?


3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 21 Jul 2010, 04:01 PM
Hi André,

The code you sent works just fine in my project (please find it attached). Could you please open a support ticket and send us a sample project that reproduces the problem?

Sincerely yours,
Miroslav Nedyalkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
André
Top achievements
Rank 1
answered on 26 Jul 2010, 09:20 AM
I couldn't load the added project, as it seems a silverlight 4 project, or with silverlight 4 telerik controls. I'm still using silverlight 3 and the Q1 2010 Telerik controls.

Any chance to get it run with that configuration?

By the way, I exchanged the grid through a stack panel and got the problem with the compressed font and pictures solved, but still have the problem with the caption not shown for the first picture.
0
Miroslav Nedyalkov
Telerik team
answered on 29 Jul 2010, 08:18 AM
Hi André,

 Could you please open a support ticket and send us a sample project that reproduces the problem?
If you want to try the code I sent you with Silverlight 3 you just need to create an empty project and move the xaml and cs files to the new project and add references the our assemblies for Silverlight 3.

All the best,
Miroslav Nedyalkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
CoverFlow
Asked by
André
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
André
Top achievements
Rank 1
Share this question
or