Back to Devexpress

ICurrentWindowService.Close() Method

corelibraries-devexpress-dot-mvvm-dot-icurrentwindowservice-a324b76d.md

latest2.1 KB
Original Source

ICurrentWindowService.Close() Method

Closes the window associated with the ICurrentWindowService.

Namespace : DevExpress.Mvvm

Assembly : DevExpress.Mvvm.v25.2.dll

NuGet Packages : DevExpress.Mvvm, DevExpress.Win.Navigation

Declaration

csharp
void Close()
vb
Sub Close

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Close() 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.

wpf-mvvm-framework-windowservice/CS/DXSample/ViewModels/ChildViewModel.cs#L20

csharp
public void CloseWindow() {
    CurrentWindowService.Close();
}

wpf-mvvm-framework-windowservice/VB/DXSample/ViewModels/ChildViewModel.vb#L40

vb
Public Sub CloseWindow()
    CurrentWindowService.Close()
End Sub

See Also

ICurrentWindowService Interface

ICurrentWindowService Members

DevExpress.Mvvm Namespace