This is a migrated thread and some comments may be shown as answers.

Column width & MVVM

0 Answers 49 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 1
Erik asked on 26 Aug 2012, 10:47 AM
I want to manage the width of GridViewDataColumn in my viewmodel. I can bind GridViewDataColumn.Width to a viewmodel property to set the width in the view. I also want to send the GridViewDataColumn.ActualWidth to the viewmodel, but ActualWidth is read-only so doesn't support binding. For FrameworkElements there is a solution described here: http://stackoverflow.com/questions/1083224/pushing-read-only-gui-properties-back-into-viewmodel but GridViewDataColumn is not a FrameworkElement.

Is there a way to get the ActualWidth to the viewmodel when a user resizes a column? Is there an event that is triggered when a user resizes a column?

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Erik
Top achievements
Rank 1
Share this question
or