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

RadCoverFlow can't set invisible for the Image

2 Answers 37 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
Huy Truong The
Top achievements
Rank 1
Huy Truong The asked on 21 May 2009, 08:03 AM

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 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 21 May 2009, 03:11 PM
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.
0
Huy Truong The
Top achievements
Rank 1
answered on 22 May 2009, 02:35 AM
thank you for your answer
Best regards,
Huy

Tags
CoverFlow
Asked by
Huy Truong The
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Huy Truong The
Top achievements
Rank 1
Share this question
or