add close button a tileview header when using Prism and RadFluidContentControl

3 posts, 0 answers
  1. Sam
    Sam avatar
    10 posts
    Member since:
    Dec 2013

    Posted 20 Dec 2013 Link to this post


    I would like to remove a tile view dynamically in a wpf project using Prism to inject the views as data and look is different per view. It is working when tileviews are created in view model with simple header and content by updating header style and associate a command to the close button,  but this is not working with Prism framework. How can I get the existing tileviewitems in an observable collection and remove one when we click on close or cross button from the differents views (large, small, normal) ?

    Thanks for your feedback.
  2. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1167 posts

    Posted 25 Dec 2013 Link to this post

    Hello Sam,

    I cannot be sure about your application and the already implemented approach. This is why I cannot make an proper suggestion at this point. However, you need to have in mind that if you have structured your application so that your modules are actually RadTileViewItems and you inject them into your shell, you are not allowed to remove (unload) nodules at runtime. So removing RadTileViewItems is not possible in your scenario. You can find explanations for this behavior of the PRISM here. Also, you can find usefull information on working around this limitation of the PRISM.

    I hope that this information is helpful.

    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
  4. Sam
    Sam avatar
    10 posts
    Member since:
    Dec 2013

    Posted 26 Dec 2013 Link to this post


    Thanks for your feedback.
    Your answer is really helpful for me as I spent some time trying to figure out if the scenario is possible with Prism.
    Since then, I started from scratch, using MVVM & converter for views display and states.

    Thanks again
    Best regards
Back to Top