microsoft / microsoft-ui-xaml

WinUI: a modern UI framework with a rich set of controls and styles to build dynamic and high-performing Windows applications.
MIT License
6.38k stars 683 forks source link

Proposal: DIALOGEX-to-XAML converter #1832

Open reli-msft opened 4 years ago

reli-msft commented 4 years ago

Proposal: DIALOGEX-to-XAML converter

Summary

WinUI team could provide a converter that converts legacy DIALOGEX resources into XAML so application authors could modernize their applications faster.

Rationale

Scope

Capability Priority
A tool that converts DIALOGEX resource into WinUI XAML pages. Must
A drop-in replacement for CreateDialog that interprets the converted XAML and mimick the old API's behavior. Could

Open Questions

Another option may be create a function that directly interprets DIALOGEX-like resources using WinUI controls.

ranjeshj commented 4 years ago

@Austin-Lamb This is an idea for xaml islands maybe.

prayaas-a commented 4 years ago

An idea: a modern looking XAML control for common dialog box scenarios that supports largely the same APIs as legacy versions, so it's as easy as literally renaming the old calls. Could this be a modified ContentDialog, perhaps as a different control to ensure that existing ContentDialog usage isn't affected?

mdtauk commented 4 years ago

If WinUI 3.0 includes a Window object/scenario - then something like this makes sense.

Austin-Lamb commented 4 years ago

Thanks for filing this!

This is an interesting idea to make it easier to migrate from Win32 to WinUI - for now I'm going to put this on our backlog, we would not be able to afford this feature for WinUI 3.0 but it's an interesting suggestion.