-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Port the .NET 5 winforms TaskDialog API to WPF #2902
Comments
I am wondering what should be ported exactly? Would just using the dialog from windows forms have any disadvantages? |
The idea is the same as #438. I find it unfortunate to have to use the Windows Forms UI framework only for one or two dialog boxes. |
|
Here's how the same proposal is "done right" for WinUI: add a TaskDialog control in the spirit of WPF instead of exposing the WinForms version in a WPF/WinUI API. WinForms is the wrapper framework for Win32, WPF/WinUI should be doing skinnable versions and not just re-expose what WinForms already does. |
Thank you a lot! You're right, it must be defined in the way pointed. Who is the HERO? :) |
I disagree. A system dialog should look and behave consistent with the system. |
I agree that it should provide the system look and feel by default but WPF already reimplements the whole common controls system look and feel while still allowing user replacements, so why not allow user replacements of dialogs as well? Though considering the activity on the WPF repo this point is probably moot anyways, all activity moved to WinUI. |
This comment was marked as outdated.
This comment was marked as outdated.
@RussKie the dependencies might not be very obvious, maybe it would be helpful to point them out? |
I am in need of using @RussKie AFAIK WPF depends on Winforms only through WindowsFormsIntegration (for obvious reasons) and through PresentationUI (for document signing and other DRP dialogs). Most WPF applications therefore do not have Winforms loaded and I sympathize with the reluctance to load a 13 MB assembly just to pinvoke an OS dialog. I would however be interested in what features of
showing e.g. and returning simply the index of the commandLink clicked. |
WPF isn't dependent on Windows Forms at runtime, I've corrected my statement above. That said, both WPF and Windows Forms are part of the Windows Desktop workload, and they are bundled together. You can see that under |
Self contained is a pretty big scenario though. |
Windows Forms is still there:
|
I use title, main instruction, command links with a note, progress bar, timer event, hyper links, main icon, window icon, footer, footer icon, verification. |
Hi
I use Task Dialog in several WPF projects. I first used the WindowsAPICodePack library then Ookii.Dialogs. But I would have liked an official implementation. This implementation is now available in Windows Forms dotnet/winforms@5fbdbde thank to @kpreisser that create the following issue dotnet/winforms#146. Would it be possible to port this implementation to WPF ?
Thank you
The text was updated successfully, but these errors were encountered: