Export (0) Print
Expand All

AutoCompleteBox.GetSelectionAdapterPart Method


Returns the specified object as an ISelectionAdapter, if possible.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Input (in System.Windows.Controls.Input.dll)

protected virtual ISelectionAdapter GetSelectionAdapterPart()

Return Value

Type: System.Windows.Controls.ISelectionAdapter
A ISelectionAdapter if possible; otherwise, null.

This method returns the selection adapter template part as an ISelectionAdapter. If the selection adapter part implements ISelectionAdapter or derives from Selector, it will automatically be returned as an ISelectionAdapter object; otherwise, the GetSelectionAdapterPart method tries to cast the selector part to an ISelectionAdapter. If the part is not found or the cast fails, GetSelectionAdapterPart returns null.


Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

© 2014 Microsoft