Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More control over DockItem closing #9

Open
Brayconn opened this issue Sep 13, 2022 · 1 comment
Open

More control over DockItem closing #9

Brayconn opened this issue Sep 13, 2022 · 1 comment

Comments

@Brayconn
Copy link

Brayconn commented Sep 13, 2022

I'm attempting to implement two features in my program:

  1. An "Are you sure you want to close?" dialog when the user tries to close a tab with unsaved changes
  2. A project settings menu that's toggleable by a checkbox

For the former, I need to be able to prevent a DockItem from closing when the user doesn't say "yes" to a dialog box.
For the latter, I need to be able to close the DockItem from code for when the user loads a different/creates a new project.

The closest I got to the first functionality was by registering a Button.ClickEvent handler and checking if((e.Source as Button).Name == "CloseButton"), but that method still can't prevent the DockItem from closing.
I didn't make any progress on closing the DockItem from code.

@npolyak
Copy link
Owner

npolyak commented Nov 20, 2022

sorry, I'll try to work on it in the near future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants