Replace view/viewmodel of already existing TileView item

2 posts, 0 answers
  1. Kalle
    Kalle avatar
    26 posts
    Member since:
    Feb 2013

    Posted 29 Jan 2014 Link to this post


    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.


  2. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1167 posts

    Posted 03 Feb 2014 Link to this post

    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.

    Pavel R. Pavlov
    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 >>
  3. DevCraft banner
Back to Top