Method FindChildWithDataContextId
FindChildWithDataContextId(ObjectUniqueId?)
Searches for a child control whose data context has the specified unique identifier.
public virtual AbstractControl? FindChildWithDataContextId(ObjectUniqueId? id)
Parameters
idObjectUniqueId?The unique identifier to match against the data context of child controls. Can be null.
Returns
- AbstractControl
The first child control whose data context matches the specified unique identifier, or null if no match is found or if
idis null.
Remarks
This method iterates through the child controls and checks if their data context
implements IBaseObjectWithId and
has a UniqueId matching the
specified id.