
I need to be able to have the Summary area of the PropertyGrid display the value of a Bitmap Property (as an image), when that property is selected. When the selected property is not a bitmap, it should revert back to the "default" SummaryTemplate.
I'm having a hard time figuring out how to accomplish this. I can see from the default ActiproXamlStyles.zip, that there is a style for PropertyGrid that sets the SummaryTemplate on load. I can also see that if I assign SummaryTemplate in my XAML, it will override this. That is all great. However, I presume I'll need to implement a SummaryTemplateSelector.
But, how can I have my SummaryTemplateSelector return the "default" template from the "default" ActiproXamlStyles? I'd rather not have to duplicate the XAML, I'd like to be able to look it up dynamically.
I'm having a hard time figuring out how to accomplish this. I can see from the default ActiproXamlStyles.zip, that there is a style for PropertyGrid that sets the SummaryTemplate on load. I can also see that if I assign SummaryTemplate in my XAML, it will override this. That is all great. However, I presume I'll need to implement a SummaryTemplateSelector.
But, how can I have my SummaryTemplateSelector return the "default" template from the "default" ActiproXamlStyles? I'd rather not have to duplicate the XAML, I'd like to be able to look it up dynamically.