Hi,
In the following code snippet, ChartTiles is my RadTileView. The ItemsSource is being set to my ObservableCollection of ChartViewModel.
--item is always set to the proper ChartViewModel.
--container is always NULL.
Note -- ContainerFromItem(item) doesn't work either -- even if I cast item as a ChartViewModel.
I need to be able to get the RadTileViewItem pertaining to the ChartViewModel because I need to set the MaximizedItem in code -- and according to some of the other threads that it what I need to do to accomplish this.
Any help would be appreciated.
Thanks,
Tracy
In the following code snippet, ChartTiles is my RadTileView. The ItemsSource is being set to my ObservableCollection of ChartViewModel.
for (int i = 0; i < ChartTiles.Items.Count; i++)
{
object item = ChartTiles.Items[i];
object container = ChartTiles.ItemContainerGenerator.ContainerFromIndex(i);
}
--item is always set to the proper ChartViewModel.
--container is always NULL.
Note -- ContainerFromItem(item) doesn't work either -- even if I cast item as a ChartViewModel.
I need to be able to get the RadTileViewItem pertaining to the ChartViewModel because I need to set the MaximizedItem in code -- and according to some of the other threads that it what I need to do to accomplish this.
Any help would be appreciated.
Thanks,
Tracy