Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1110
TabGroupPane and DataTemplateSelector
posted

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

 

 

Parents Reply Children
No Data