--- SL2 BUG --- ItemsControl doesn't use Equals for comparison (ItemCollection.IndexOf)
Syntax
'Declaration
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function C1IndexOf( _
ByVal As System.Windows.Controls.ItemsControl, _
ByVal As System.Object _
) As System.Integer
'Usage
Dim itemsControl As System.Windows.Controls.ItemsControl
Dim value As System.Object
Dim value As System.Integer
value = Extensions.C1IndexOf(itemsControl, value)
[System.Runtime.CompilerServices.Extension()]
public static System.int C1IndexOf(
System.Windows.Controls.ItemsControl ,
System.object
)
Parameters
- itemsControl
- The items control.
- value
- The value.
See Also