Table of Contents

Method FindChildWithDataContextId

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

FindChildWithDataContextId(ObjectUniqueId?)

Searches for a child control whose data context has the specified unique identifier.

public virtual AbstractControl? FindChildWithDataContextId(ObjectUniqueId? id)

Parameters

id ObjectUniqueId?

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 id is 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.