Hi!
In the LargeContent view, I have a two-way databinding to objects within an ObservableCollection. Using a debugger, I know that the changes were sucessfully made to the objects. However, when I switch the screen to the NormalContent view, my changes to the objects' datafields are not displaying.
I think one way to solve the issue is to force TileView to reload its tiles within tileView_TileStateChanged. Is there something I can use to do this?
Thanks a lot!
In the LargeContent view, I have a two-way databinding to objects within an ObservableCollection. Using a debugger, I know that the changes were sucessfully made to the objects. However, when I switch the screen to the NormalContent view, my changes to the objects' datafields are not displaying.
I think one way to solve the issue is to force TileView to reload its tiles within tileView_TileStateChanged. Is there something I can use to do this?
private void tileView_TileStateChanged(object sender, Telerik.Windows.RadRoutedEventArgs e) |
{ |
RadTileViewItem item = e.Source as RadTileViewItem; |
if (item != null) |
{ |
RadFluidContentControl fluidControl = item.ChildrenOfType<RadFluidContentControl>().First(); |
if (fluidControl != null) |
{ |
switch (item.TileState) |
{ |
case TileViewItemState.Maximized: |
fluidControl.State = FluidContentControlState.Large; |
break; |
case TileViewItemState.Minimized: |
fluidControl.State = FluidContentControlState.Small; |
break; |
case TileViewItemState.Restored: |
//these are things that I have tried, but don't seem to have an effect:--- |
ObservableCollection<Employee> updatedEmployeeList = myModel.Employees; |
this.tileView1.ItemsSource = updatedEmployeeList; |
((RadTileViewItem)e.Source).UpdateLayout(); |
//--- |
fluidControl.State = FluidContentControlState.Normal; |
break; |
} |
} |
} |
} |
Thanks a lot!