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

VisualState not updating in CoverFlow Employee Example

3 Answers 56 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
Software Support
Top achievements
Rank 1
Software Support asked on 08 Dec 2010, 09:32 PM
In using the CoverFlow to show our employees, I have set the SelectedIndex to the middle picture with the following code:


private void employeeRCF_Loaded(object sender, RoutedEventArgs e)
{
    this.employeeRCF.SelectedIndex = Convert.ToInt32(this.employeeRCF.Items.Count / 2);
}


When I run the code, the correct RadCoverFlowItem is showing but the VisualState does not update.  Instead of the RadCoverFlowItem showing as smaller picture with the name located in the center at the top, I see a large picture with the name on the right (same look and feel of the RadCoverFlowItems on the right of the selected RadCoverFlowItem from Telerik's example).  If I click on another employee and then click on the original employee, everything looks fine.

I have attempted to manually change the VisualState of the RadCoverFlowItem with the following code:


private
void employeeRCF_Loaded(object sender, RoutedEventArgs e
)
{
    this.employeeRCF.SelectedIndex = Convert.ToInt32(this.employeeRCF.Items.Count / 2);

    VisualStateManager
.GoToState(this.employeeRCF, "Centered", true);
}


When I run the above code, nothing happens to the RadCoverFlowItem.  What do I need to do to get the SelectedIndex RadCoverFlowItem to show properly when accessing the site?

 

3 Answers, 1 is accepted

Sort by
0
Software Support
Top achievements
Rank 1
answered on 13 Dec 2010, 08:50 PM
Any help would greatly be appreciated.

Thank you
0
Accepted
George
Telerik team
answered on 14 Dec 2010, 11:27 AM
Hello Bradford,

I tried to reproduce the problem, but to no avail. Please, refer to the attached project. Let me know if I missed something. 

Best wishes,
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Software Support
Top achievements
Rank 1
answered on 20 Dec 2010, 12:41 AM
George,

Thank you for your assistance in this matter. 
Tags
CoverFlow
Asked by
Software Support
Top achievements
Rank 1
Answers by
Software Support
Top achievements
Rank 1
George
Telerik team
Share this question
or