I know, I know – this is a WPF grid forum, but you guys are the best bet for asking this – I can’t seem to find any event (except MouseUp/MouseDown) that is fired when a listview column is dragged/resized. I need it to persist the listview column layout when it is changed. Anybody solved a similar problem?
Imported from legacy forums. Posted by Sergey (had 2697 views)
I would assume that the property values you are interested in are DependencyProperties so the method to solve this is to hook into the DP change notification for the properties you are interested in and react accordingly. I have not used it with ListView but I have used it with the Xceed Grid.
DependencyPropertyDescriptor ColumnWidthPropertyDescriptor = DependencyPropertyDescriptor.FromProperty(Column.WidthProperty, typeof(Column)); ColumnWidthPropertyDescriptor.AddValueChanged(column, new EventHandler(ColumnWidthChangedHandler));
Imported from legacy forums. Posted by Derek (had 588 views)