Skip to main content

RepositoryItemPopupContainerEdit.Assign(RepositoryItem) Method

Copies settings and event handlers from the repository item specified as a parameter.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public override void Assign(
    RepositoryItem item
)

Parameters

Name Type Description
item RepositoryItem

A RepositoryItem descendant representing the repository item whose settings are to be copied to the current item.

Remarks

The Assign method allows you to create two or more RepositoryItemPopupContainerEdit objects with identical settings and event handlers.

Note

The Assign method creates a reference copy of the RepositoryItemPopupContainerEdit.PopupControl property. This means that the two Repository Items will refer to the same PopupControl after the copy. When disposing of one of the Repository Items, the associated PopupControl is also disposed of, regardless of whether another Repository Item is alive. To prevent the PopupControl from being disposed of, create a copy of a Repository Item object via the RepositoryItem.Clone method.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Assign(RepositoryItem) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also