RadCoverFlow can't set invisible for the Image

3 posts, 0 answers
  1. Huy Truong The
    Huy Truong The avatar
    32 posts
    Member since:
    Mar 2008

    Posted 21 May 2009 Link to this post


    I met a problem when using  RadCoverFlow control.  That is I can't set invisible for the Image in the RadCoverFlow control.

    Here is my sample :



       <Grid x:Name="LayoutRoot" Background="Ivory">


                <RowDefinition Height="Auto"></RowDefinition>


            <StackPanel Grid.Row="0">

                <telerikNavigation:RadCoverFlow x:Name="coverFlow" CameraY="-80" ItemMaxHeight="160"

                SelectedIndex="0" CenterOffsetY="50" SelectedItemMouseUp="coverFlow_SelectedItemMouseUp">             

                    <Image x:Name="imgOrgan" />

                    <Image x:Name="imgAcc"></Image>

                    <Image x:Name="imgAuthen" ></Image>





    In Code Behind, set invisible the Image control like that :

            public DashBoard()



                //that function set image source for image control


                imgAcc.Visibility = Visibility.Collapsed;

                imgAuthen.Visibility = Visibility.Collapsed;



    All Image control is displayed(imgAcc and imgAuthen is not collapsed althought I set it to collapsed status by code behind).


    Expected result are :

    - The image imgOrgan is displayed

    - The Image imgAcc,imgAuthen is not displayed

    Could you help me solve this problem? thank  you for your help

    Best regards,


  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 21 May 2009 Link to this post

    Hi Huy Truong The,

    Yes, this is the expected behavior as the CoverFlow control doesn't actually show the Image controls, but a CoverFlowPerspectiveItem control. Unfortunately the CoverFlowPerspectiveItem cannot be collapsed as it uses its Visibility property internally. I could suggest you to remove the Image from the Items collection if you are not using ItemsSource. If you do, you could remove it from the source collection. We will track the issue, but I cannot give you any timeframe for that.

    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  3. Huy Truong The
    Huy Truong The avatar
    32 posts
    Member since:
    Mar 2008

    Posted 21 May 2009 Link to this post

    thank you for your answer
    Best regards,

Back to Top