Xceed DataGrid for Silverlight Documentation
AttachElement Method


The associated element.
An object representing the user object for which an element must be created.
Continues the element initialization process with the item to which the element will be associated. Once the element has been fully initialized, it will be displayed on screen.
Syntax
'Declaration
 
Protected Overridable Sub AttachElement( _
   ByVal element As FrameworkElement, _
   ByVal userObject As Object _
) 
'Usage
 
Dim instance As DataGridControl
Dim element As FrameworkElement
Dim userObject As Object
 
instance.AttachElement(element, userObject)
protected virtual void AttachElement( 
   FrameworkElement element,
   object userObject
)

Parameters

element
The associated element.
userObject
An object representing the user object for which an element must be created.
Remarks

If a grouping, sorting, or filtering operation is made, all recyclable elements will be cleared and the initialization process from PrepareElement to DetachElement will be restarted.

The AttachElement method can be called consecutively multiple times without calling DetachElement between each call. Every layout pass calls AttachElement for each element. If an element is in the viewport and that remains in the viewport during the next layout pass, another call to AttachElement—with the same parameters as the first call—will be made. This behavior was designed to allow a element to be "refreshed", if required.

The base implementations do not need to be called when overriding the PrepareElement, AttachElement, DetachElement, and ClearElement methods.

Requirements

Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family

See Also

Reference

DataGridControl Class
DataGridControl Members

Paths and Containers

Container Recycling

Send Feedback