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
60
EditorTemplate for TemplateColumn not working
posted

I have a XamGrid with two columns, Name and Type. Depending on Type, I want to have a different kind of column for Name, thus I'm using a TemplateColumn. In the data template I have a ContentControl with a default ContentTemplate and a DataTrigger that sets the ContentTemplateto a different column style if Type is a specific value. I am setting alll four templates (ItemTemplateEditorTemplateAddNewRowItemTemplateAddNewRowEditorTemplate) of the TemplateColumn to this data template.

ItemTemplateAddNewRowItemTemplate and AddNewRowEditorTemplate work as intended, however EditorTemplate does not, it just shows the name of the bound data type.

Please see here on SO for example pictures and my code.

Parents Reply Children