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

Changing CoverFlows ObservableCollection at runtime

1 Answer 46 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
Damon Luck
Top achievements
Rank 1
Damon Luck asked on 14 Apr 2010, 03:25 PM
Hi,

I have the following,

 

<telerikNavigation:RadCoverFlow ItemsSource="{Binding Pages}">

 

 

    <telerikNavigation:RadCoverFlow.ItemTemplate>

 

 

        <DataTemplate>

 

 

            <myControls:Page/>

 

 

        </DataTemplate>

 

 

    </telerikNavigation:RadCoverFlow.ItemTemplate>
</telerikNavigation:RadCoverFlow>

 


My ViewModel exposes a property Pages which returns an ObservableCollection of PageViewModels. These are associated with the Page control specified in the DataTemplate. This all works and displays each Page control within CoverFlow.

We have a combo box from which we can select a given set of Pages. Each item in the combo box is associated with a different set of Pages determined from the PageModel. When selecting a different item in the combo box and changing the underlying . I have noticed this task complete successfully, but this is rare. The following is the Pages code in my view model,

 

public ObservableCollection<PageViewModel> Pages

 

{

 

    get

 

    {

 

        return _Pages;

 

    }

 

    set

 

    {

        _Pages =

value;

 

        OnPropertyChanged(

"Pages");

 

    }

}

 

private void LoadPages()

 

{

 

    if (SelectedCategory != null)

 

    {

        Pages = _Model.ViewsByCategory[SelectedCategory];

    }

}


I have tested this with a standard Listbox control and the collection changes without any errors.

Have I implemented this correctly?

Thanks,

Damon

1 Answer, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 15 Apr 2010, 03:42 PM
Hi Damon,

What's the version of RadControls for Silverlight you are using? We used to have a similar bug, that is already fixed. I would recommend trying with the latest internal build and if it does not help, please, open a new support ticket and send us a simple application that could be used to reproduce the problem. We will do our best to provide a fix or a suggestion.

Sincerely yours,
Valeri Hristov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
CoverFlow
Asked by
Damon Luck
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question
or