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

    Dear,

    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 :

    xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"

     

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

            <Grid.RowDefinitions>

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

            </Grid.RowDefinitions>

            <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>

                </telerikNavigation:RadCoverFlow>

            </StackPanel>

        </Grid>

     

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

            public DashBoard()

            {

                InitializeComponent();

                //that function set image source for image control

    SetImage();

                imgAcc.Visibility = Visibility.Collapsed;

                imgAuthen.Visibility = Visibility.Collapsed;

            }

    Result:

    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,

    Huy

  2. Miroslav Nedyalkov
    Admin
    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.

    Regards,
    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. DevCraft banner
  4. 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,
    Huy

Back to Top