I am trying to load few ContentPanels @ runtime. SelectTemplate is firing only for the first Panel.
How can I fire SelectTemplate for all added Panels?. I want to load all Panels content when they are added.
Attached file has sample code I am using.
To Reproduce the issue:
1. Copy the MainWindow.xaml code to MainWindow.xaml file and MainWindow.xaml.cs code to MainWindow.xaml.cs file
2. Copy UserControl1.xaml code to UserControl1.xaml.cs file.
3. Put a break point in SelectTemplate method.
4. Run the code
5. SelectTemplate fires only one time for first Panel.
6. If you click on Second Panel, then it is firing SelectTemplate for the second one.
7. I want SelectTemplate to be fired for all added Panels.
Thanks
Is this possible?
Hello options007,
Thank you for your post!
I have been looking into it. Using the code snippets you have provided I have created a small sample application to test the behavior you have mentioned.
After been further researching this behavior and it is the expected behavior for the DataTempletaSelector. Every time you navigate through the panes, the content of the pane might change and the template selector is fires, in order to change the template according to the data, that is in the pane.
Please do not hesitate to let me know if you have any further questions on this matter.
Thank you for the Response.
I want to force load the newly add Panels? (could be one Panel or more). Can this be done?. If yes, could you modify the code and upload it.
I have been looking into your post and it seems that I am missing something from your scenario. Do you want to force load the templates for the newly added ContentPanes?
Thank you for the cooperation. Looking forward to hearing from you.
I am just checking if you have any further questions on this matter. Please do not hesitate to let me know if you do.
I have been looking into your issue. Currently the templates for the newly added ContentPanes would load when the user clicks on the ContentPane and activate it. Every time when the user clicks on a ContentPane tha template would change. This is the designed and expected behavior for the ContentPane.
You can suggest new Product Ideas for future versions (or vote for existing ones) at http://ideas.infragistics.com.
Steps to create your idea:
The benefits of submitting the product idea yourself include:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
Additional benefits of the Product Idea system include:
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
The product ideas site allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Thank you for contacting Infragistics.
Looks like template will be loaded when the panel is active. I want to load all Panels or templates when I add a panel(s). Hope this is clear.