-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Progressdialog improvements #2097
Conversation
I totally disagree on the first commit
i use multi threading in my program which means that i can accidentally
open 2 dialogs at the same time
So i need to check the IsOpen property
What i would suggest:
1- add a closed event to the controller but leave the isopen property and
pass a parameter called result that will be an enum (check suggest 3)
2- add a property to make the dialogue access the ui controls so you can
change style, template,etc...
3-add a room for two auxiliary buttons like in normal dialogues with the
ability to hide/show them in the controller
|
@bigworld12 Thanks for your feedback.
Ok, I should have inspected the API more precisely. Indeed, an About changing style, additional buttons, etc: I'd leave ProgressDialog as is. If someone wants to customize the dialog, he still can derive his own implementation from |
👍 |
@punker76 When I add a |
I recreated the |
As far as I can see there is some, er, room for improvements in
ProgressDialogController
:ProgressDialogController.IsOpen
is only set in the c'tor and when the dialog is closed. In fact, I see no reason to have that property, so I eliminated it.ProgressDialogController
makes direct calls to several controls ofProgressDialog
, e.g.WrappedDialog.PART_ProgressBar.IsIndeterminate = true
. Instead I'd like to add appropriate methods toProgressDialog
, because the controls are implementation details of the dialog and not the concern of the controller.