This is a migrated thread and some comments may be shown as answers.

save tileview item position in Prism framework

1 Answer 22 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 20 Dec 2013, 11:59 AM
Hello;

I am working with telerik WPF tileview and Prism framework to generate a dashboard with different views content in large, small & normal view.
I would like to save the position of the tile view if the user reorder the different views so that this order is used in the next connexion. How to do that ? I search many posts and the given solutions are quite simples since they deal with tileview without prism framework.
Please let me know if it is possible to do this in my context  ?

Thanks

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 25 Dec 2013, 10:00 AM
Hi Sam,

You can expose a property in the ViewModel that is injected into your Shell. Furthermore, you can bind the Position property of the RadTileViewItem control to that property using a Style (in the Shell). By following this approach the RadTileViewItem will be aware of its position and you will be able to preserve it using your ViewModel defined in the Module.

For your convenience I created a sample solution demonstrating the described approach. Please take a look at it and let us know if you need any further assistance.

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
TileView
Asked by
Sam
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or