Back to Devexpress

DiagramControl.AttachToWindow() Method

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramcontrol-ca8300b0.md

latest1.2 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
public void AttachToWindow()
vb
Public Sub AttachToWindow

See Also

DetachFromWindow()

Title

DiagramControl Class

DiagramControl Members

DevExpress.Xpf.Diagram Namespace