Version

ColumnResized Event

Event raised when a user driven resizing is completed.
Syntax
'Declaration
 
Public Event ColumnResized As EventHandler(Of ColumnResizedEventArgs)
public event EventHandler<ColumnResizedEventArgs> ColumnResized
Event Data

The event handler receives an argument of type ColumnResizedEventArgs containing data related to this event. The following ColumnResizedEventArgs properties provide information specific to this event.

PropertyDescription
Columns A Collection of columns that was resized during the action.
Example
This sample demonstrates how to handle the ColumnResized event which is fired after the column is resized.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

AddHandler Me.MyGrid.ColumnResized, AddressOf MyGrid_ColumnResized

Private Sub MyGrid_ColumnResized(ByVal sender As System.Object, ByVal e As ColumnResizedEventArgs)
   System.Diagnostics.Debug.WriteLine("Column Successfully resized")
End Sub
this.MyGrid.ColumnResized += new EventHandler<ColumnResizedEventArgs>(MyGrid_ColumnResized);

void MyGrid_ColumnResized(object sender, ColumnResizedEventArgs e)
{
   System.Diagnostics.Debug.WriteLine("Column Resized successfully");
}
<ig:XamGrid x:Name="MyGrid" 
   
ColumnResized="MyGrid_ColumnResized">
</ig:XamGrid>
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also