Skip to main content
A newer version of this page is available. .

DiagramControl.AttachToWindow() Method

Binds the window’s Title property to the name of the current document and subscribes the diagram to the window’s Closing event. When the end-user attempts to close the window with the diagram that contains unsaved changes, a dialog window is invoked prompting the user to save changes.

Namespace: DevExpress.Xpf.Diagram

Assembly: DevExpress.Xpf.Diagram.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Diagram, DevExpress.Wpf.Diagram

Declaration

public void AttachToWindow()
See Also