WindowClosedEventHandler WindowClosedEventHandler WindowClosedEventHandler WindowClosedEventHandler Delegate


Represents the method that will handle the Closed event.

public : delegate void WindowClosedEventHandler(Platform::Object sender, CoreWindowEventArgs e)
struct WindowClosedEventHandler : winrt::Windows::Foundation::IUnknown
   WindowClosedEventHandler(std::nullptr_t = nullptr) noexcept;
   template <typename L> WindowClosedEventHandler(L lambda);
   template <typename F> WindowClosedEventHandler(F* function);
   template <typename O, typename M> WindowClosedEventHandler(O* object, M method);
   void operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Windows::UI::Core::CoreWindowEventArgs const& e) const;
public delegate void WindowClosedEventHandler(Object sender, CoreWindowEventArgs e)
Public Delegate Sub WindowClosedEventHandler(sender As Object, e As CoreWindowEventArgs)


Object Object

The object where the handler is attached.

CoreWindowEventArgs CoreWindowEventArgs

Event data for the event.


Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


The Closed event occurs when a Window closes. However, UWP app typically use a single Window instance, and do not open and close additional Window instances.