WPF: GridViewColumn resize event

Marat Faskhiev picture Marat Faskhiev · Feb 5, 2010 · Viewed 11.9k times · Source

I'm using ListView with GridView. Is there GridViewColumn resize event?

Answer

chenz picture chenz · Feb 16, 2010

I will handle the PropertyChanged event instead. The PropertyChanged event is not seen in the Visual Studio intellisense, but you can trick it :)

 GridViewColumn column = ...
 ((System.ComponentModel.INotifyPropertyChanged)column).PropertyChanged += (sender, e) =>
 {
     if (e.PropertyName == "ActualWidth")
     {
         //do something here...
     }
 };