MVVM - How to create columns at runtime for a xamdatagrid?
问题 I have to create a XamDataGrid that shows a dynamic amount of columns for a time frame x to y. Therefore I dont know how many years a user would select to have these columns created upfront. Now usualy within MVVM you would just populate the data through as many Properties as you would need Columns within your XamDataGrid, and the latter would just autogenerate them. Obviously I couldn't just create Properties within my ViewModel at runtime unless I did something crazy with Reflection. How