Hi,
I have the following,
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,
I have tested this with a standard Listbox control and the collection changes without any errors.
Have I implemented this correctly?
Thanks,
Damon
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