Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
Keep tile content from refreshing when maximizing?
posted

Hello,

 

I've been trying to find a solution to this problem for a while but I can't seem to be able to find one.

My application contains a XamTilesControl, and each tile contains a ViewModel (I'm using MVVM, and the ItemsSource is bound to a collection of ViewModels which are in turn each bound to a Xaml usercontrol).

Some of those ViewModels contain graphs, others contain lists in the form of XamDatagrids.

 

The problem is that everytime I try to maximize one of the tiles, its content is re-created.

Some of these tiles take a while to load (pretty big lists or graphs), and maximizing causes the tab to reload everything again.

I managed to change the way my Viewmodel loads to avoid most of that, but it also causes the tile to lose all the changes that the user made in the controls contained by the tile (grouping or sorting in the XamDatagrid, or zooming in a graph, etc..).

 

Is there a way to avoid this?

 

Thanks,

Sébastien