Version

OnPropertyChanged Method (UltraTree)

Called when a property has changed
Syntax
'Declaration
 
Protected Overrides Sub OnPropertyChanged( _
   ByVal e As Infragistics.Win.PropertyChangedEventArgs _
) 
protected override void OnPropertyChanged( 
   Infragistics.Win.PropertyChangedEventArgs e
)

Parameters

e
An System.EventArgs that contains the event data.
Example

The following sample code illustrates some of the information available in the PropertyChanged event.



Private Sub ultraTree1_PropertyChanged(ByVal sender As Object, ByVal e As Infragistics.Win.PropertyChangedEventArgs) Handles ultraTree1.PropertyChanged

    Dim pci As Infragistics.Shared.PropChangeInfo

    ' see if the text property has changed
    pci = e.ChangeInfo.FindPropId(Infragistics.Win.UltraWinTree.PropertyIds.Text)

    If Not pci Is Nothing Then
        ' if the source is a node display its key and new name
        If TypeOf (pci.Source) Is Infragistics.Win.UltraWinTree.UltraTreeNode Then

            Dim node As Infragistics.Win.UltraWinTree.UltraTreeNode

            node = pci.Source

            Debug.WriteLine("Node " + node.Key + "'s text has changed to: " + node.Text)

        End If
    End If

End Sub
using System.Diagnostics;

private void ultraTree1_PropertyChanged(object sender, Infragistics.Win.PropertyChangedEventArgs e)
{

	Infragistics.Shared.PropChangeInfo pci;

	// see if the text property has changed
	pci = e.ChangeInfo.FindPropId( Infragistics.Win.UltraWinTree.PropertyIds.Text );

	if ( pci != null )
	{
		Infragistics.Win.UltraWinTree.UltraTreeNode node;

		// if the source is a node display its key and new name
		node = pci.Source as Infragistics.Win.UltraWinTree.UltraTreeNode;

		if ( node != null )
		{
			Debug.WriteLine( "Node " + node.Key + "'s text has changed to: " + node.Text );
		}
	}
		
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, 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