KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have several instances where I would like to have several controls in a single column in a datagrid. For example, I have a dataset that contains images with matching description, image source, timestamp, geotag, etc. I would like to display this information with a thumbnail image in one column and the majority of data in either a textbox or a label. Other datasets I have require textbox / checkbox, or textbox / combobox. When I attempt to add a second control I receive an error reporting that The property "VisualTree" is set more than once. <DataGridTemplateColumn Header="Data" Width="100"> <DataGridTemplateColumn.CellTemplate> <DataTemplate> <Label Name="Description" Content="{Binding Desc}"></Label> <Label Name="Camera" Content="{Binding Camera}"></Label> </DataTemplate> </DataGridTemplateColumn.CellTemplate> </DataGridTemplateColumn>
Tags (comma-separated)
Save Edits
Cancel