--- SL2 BUG --- ItemsControl doesn't use Equals for comparison (ItemCollection.IndexOf)

Namespace:  C1.Silverlight
Assembly:  C1.Silverlight (in C1.Silverlight.dll)

Syntax

C#
public static int C1IndexOf(
	this ItemsControl itemsControl,
	Object value
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function C1IndexOf ( _
	itemsControl As ItemsControl, _
	value As Object _
) As Integer

Parameters

itemsControl
Type: System.Windows.Controls..::..ItemsControl
The items control.
value
Type: System..::..Object
The value.

Return Value

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ItemsControl. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also