Back to Devexpress

ICurrentWindowService.Hide() Method

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

latest3.0 KB
Original Source

ICurrentWindowService.Hide() Method

Hides 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 Hide()
vb
Sub Hide

The following code snippets (auto-collected from DevExpress Examples) contain references to the Hide() 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#L24

csharp
public void TemporarilyHideWindow() {
    CurrentWindowService.Hide();
    var timer = new DispatcherTimer() { Interval = TimeSpan.FromSeconds(3) };

winforms-memo-editor-advanced-mode/CS/MemoEditSample/ViewModels/SettingsViewModel.cs#L59

csharp
var currentWindow = this.GetRequiredService<ICurrentWindowService>();
currentWindow.Hide();
try {

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

vb
Public Sub TemporarilyHideWindow()
    CurrentWindowService.Hide()
    Dim timer = New DispatcherTimer() With {.Interval = TimeSpan.FromSeconds(3)}

winforms-memo-editor-advanced-mode/VB/MemoEditSample/ViewModels/SettingsViewModel.vb#L69

vb
Dim currentWindow = Me.GetRequiredService(Of ICurrentWindowService)()
currentWindow.Hide()
Try

See Also

ICurrentWindowService Interface

ICurrentWindowService Members

DevExpress.Mvvm Namespace