Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ViewItem.BreakLinksToControl(Boolean) Method

Unsubscribes from the control’s events and, depending on the parameter, also disposes of the control and removes the link to the control.

Namespace: DevExpress.ExpressApp.Editors

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public virtual void BreakLinksToControl(
    bool unwireEventsOnly
)

#Parameters

Name Type Description
unwireEventsOnly Boolean

true to only unsubscribe from events, false to also dispose of the control and remove the link to the control.

#Remarks

This method supports the internal infrastructure. You do not need to call this method manually in most cases.

You can override this method in ViewItem descendants to dispose of custom recourses.

See Also