MSMarimuthu Sivalingam Syncfusion Team March 14, 2017 11:37 AM UTC
Thank you for contacting Syncfusion Support.
We have checked the reported query in your updated sample. We can use SetIcon attached property of DockingManager in Document and Tabbed dock windows only. So, we have prepared the sample to meet your requirement. In this sample, we have edited the HeaderTemplate of DockingManager to set Icon for Dock window. Please find the sample from the following link.
In looking at the code you posted I see that it does not do exactly the same thing as my code. Specifically the icon is set statically in the xaml. My requirement is to set the icon dynamically via code when the window is created. If the icon is set in the xaml as you provided then every window would have the same icon. I want to have different icons for different windows. I removed the image source from the data template but that doesn't work because the seticon() call does not work.
How can I achieve my requirement of having a different icon based on the window I'm creating? Is it possible to apply different header templates to each window dynamically when it is created?
WWWesley WittMarch 14, 2017 03:08 PM UTC
I was able to add code that dynamically creates the header template with each window creation (see attached file). Works great.
I suggest adding something like this to your samples.