wpfui icon indicating copy to clipboard operation
wpfui copied to clipboard

Easy way to change CloseButtonCommand of Snackbar?

Open Zopenzop opened this issue 3 years ago • 4 comments

Is there an easy way to modify the CloseButtonCommand of the WPFUI Snackbar? Might be a rookie question, I haven't been involved with classes for too long.

Zopenzop avatar Mar 17 '22 06:03 Zopenzop

I made a local copy of the Snackbar class and modified the method to my choice, any way I could've done it better?

Zopenzop avatar Mar 17 '22 06:03 Zopenzop

Hey, what effect do you want to achieve? Close only if something is finished or trigger some event after closing?

pomianowski avatar Mar 17 '22 08:03 pomianowski

Yes, I am using it to show progress of an ongoing task, so I want it to ask for confirmation and end the task on clicking the close button. It would be great to be able to directly customize the event.

Zopenzop avatar Mar 18 '22 04:03 Zopenzop

I just saw that the CloseButtonCommand property was added, however I can only get it and not set it.

Zopenzop avatar Jun 05 '22 11:06 Zopenzop