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?