Xceed.Silverlight.DataGrid.v2.0 Assembly > Xceed.Silverlight.DataGrid Namespace > DataGridControl Class : AttachElement Method |
'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 )
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.
Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family