Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[WPF] Application.Instance.Terminating not called when MainForm is not set #2794

@Serg-Norseman

Description

@Serg-Norseman

Please advise what is the best way to proceed.

There is an application on Eto.Forms 2.9.0. On Windows, a WPF backend is used.

It is built on the principle of the SDI interface - multiple equal forms for working with data. MainForm is not set.

When I close the last or only one form - Application.Instance.Terminating is not called. The same thing happens to Application.Instance.Quit().

What is the best way to do it: track the closing of each window and do what on the last one - manually call the code from Terminating, or do something else?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions