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

Replace view/viewmodel of already existing TileView item

1 Answer 42 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Kalle
Top achievements
Rank 1
Kalle asked on 29 Jan 2014, 11:54 AM
Hello!

I have added some TileViewItems to my TileView using RegionManager.AddToRegion() and it's working fine (I think RequestNavigate would do the trick also).

Now I would like to allow user to configure each tile separately. One configuration option would require me to change the configured tile to show another view (and maybe use its own viewmodel also).

Is this possible?

Now that I try RequestNavigate to this TileView region it always adds a new TileItem and that is not what I want in this case. I'd like to be able to only change the view/viewmodel for the tile I'm configuring.

Br,

Kalle

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 03 Feb 2014, 10:21 AM
Hello Kalle,

Thank you for contacting us on that matter. When working with RadTileView control you should keep in mind that it works with the default region manager for ItemsControl. This is why we suggest trying to first remove the view that you need to replace and then insert the new one.

As an addition to this suggestion, you need to know that the RadTileViewItem exposes Position property that can be used to control (from code) the position of the item once it is created and inserted into the RadTileView control. It can be handy if you need to reorder the RadTileViewItems.

Please give this approach a try and let us know if you have any further questions regarding the RadTileView control.

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
Kalle
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or