This question is locked. New answers and comments are not allowed.
I am attempting to use a TileView control to show some items that are returned/loaded via async calls. I call to load two items separately and when my callback is hit, I add the new item to my list which is bound to my RadTileView control. Here are some code snippets:
XAML
<telerik:RadTileView ItemsSource="{Binding GraphList}" />
ViewModel
In the constuctor:
GraphList = new List<IChart>();
MyObject.GetDataAsync(ID1, MyCallback1);
MyObject.GetDataAsync(ID2, MyCallback2);
in my callback, I grab the item and add it to 'GraphList'. Then I call NotifyPropertyChanged() to indicate that GraphList has changed.
public List<IChart> GraphList { get; set; }
Here is the issue...if I do it as specified above, nothing shows up in the TileView control. However, if I instantiate GraphList in either of my callback methods rather than the constructor, I'll see the item that was returned to that callback method. If I instantiate GraphList in the constructor, I see nothing. Via debug, I have confirmed that GraphList is getting properly loaded from both callbacks (i.e. it contains 2 items when the second callback is completed).
Thoughts?
XAML
<telerik:RadTileView ItemsSource="{Binding GraphList}" />
ViewModel
In the constuctor:
GraphList = new List<IChart>();
MyObject.GetDataAsync(ID1, MyCallback1);
MyObject.GetDataAsync(ID2, MyCallback2);
in my callback, I grab the item and add it to 'GraphList'. Then I call NotifyPropertyChanged() to indicate that GraphList has changed.
public List<IChart> GraphList { get; set; }
Here is the issue...if I do it as specified above, nothing shows up in the TileView control. However, if I instantiate GraphList in either of my callback methods rather than the constructor, I'll see the item that was returned to that callback method. If I instantiate GraphList in the constructor, I see nothing. Via debug, I have confirmed that GraphList is getting properly loaded from both callbacks (i.e. it contains 2 items when the second callback is completed).
Thoughts?