ArcFM Solution Developer Guide
OnChanged<T> Method


Helper method to subscribe to the Collection Changed event
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Sub OnChanged(Of T)( _
   ByVal collection As System.Collections.ObjectModel.ObservableCollection(Of T), _
   ByVal added As System.Action(Of T), _
   ByVal removed As System.Action(Of T), _
   ByVal reset As System.Action _
) 
'Usage
 
Dim collection As System.Collections.ObjectModel.ObservableCollection(Of T)
Dim added As System.Action(Of T)
Dim removed As System.Action(Of T)
Dim reset As System.Action
 
ElementCanvasExtensions.OnChanged(Of T)(collection, added, removed, reset)
[System.Runtime.CompilerServices.Extension()]
public static void OnChanged<T>( 
   System.Collections.ObjectModel.ObservableCollection<T> collection,
   System.Action<T> added,
   System.Action<T> removed,
   System.Action reset
)

Parameters

collection
added
removed
reset

Type Parameters

T
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

ElementCanvasExtensions Class
ElementCanvasExtensions Members

 

 


Send Comment