KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is it possible to declare DataGrid columns in a style or as a resource? I would like to do something like this: <....Resources> <DataGridColumns x:Key="dgcDataGridColumns"> <DataGridTextColumn /> <DataGridTextColumn /> </DataGridColumns </....Resources> <DataGrid Columns="{StaticResource dgcDataGridColumns}" /> The reason is that i have to share the column definition for 4 different DataGrids . Any way to achieve this? Best would be without code behind!
Tags (comma-separated)
Save Edits
Cancel