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

add close button a tileview header when using Prism and RadFluidContentControl

2 Answers 33 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, 08:46 AM
Hello;

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 Answers, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 25 Dec 2013, 06:32 AM
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.

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 >>
0
Sam
Top achievements
Rank 1
answered on 26 Dec 2013, 07:59 AM
Hello;

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