Back to Devexpress

CurrentWindowService Class

wpf-devexpress-dot-mvvm-dot-ui-e993238c.md

latest3.4 KB
Original Source

CurrentWindowService Class

Provides methods to work with a window.

Namespace : DevExpress.Mvvm.UI

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
[TargetType(typeof(UserControl))]
[TargetType(typeof(Window))]
public class CurrentWindowService :
    WindowAwareServiceBase,
    ICurrentWindowService
vb
<TargetType(GetType(UserControl))>
<TargetType(GetType(Window))>
Public Class CurrentWindowService
    Inherits WindowAwareServiceBase
    Implements ICurrentWindowService

Remarks

See Services to learn more.

The following code snippets (auto-collected from DevExpress Examples) contain references to the CurrentWindowService class.

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-scheduler-specify-custom-edit-and-recurrence-dialogs/CS/CustomMvvmFormWithRecurrenceExample/HospitalAppointmentWindow.xaml#L25

xml
<dxmvvm:Interaction.Behaviors>
    <dxmvvm:CurrentWindowService ClosingCommand="{Binding WindowClosingCommand}" />
</dxmvvm:Interaction.Behaviors>

wpf-scheduler-create-reminders-in-code-and-implement-custom-reminder-window/CS/CustomReminderExample/CustomReminderWindow.xaml#L40

xml
<dxmvvm:Interaction.Behaviors>
    <dxmvvm:CurrentWindowService ClosingCommand="{Binding WindowClosingCommand}" />
</dxmvvm:Interaction.Behaviors>

Inheritance

Show 12 items

Object DispatcherObject DependencyObject Freezable Animatable DevExpress.Mvvm.UI.Interactivity.AttachableObjectBase DevExpress.Mvvm.UI.Interactivity.Behavior DevExpress.Mvvm.UI.Interactivity.Behavior<FrameworkElement> DevExpress.Mvvm.UI.ServiceBaseGeneric<FrameworkElement> ServiceBase DevExpress.Mvvm.UI.WindowAwareServiceBase CurrentWindowService

See Also

CurrentWindowService Members

DevExpress.Mvvm.UI Namespace