-
Notifications
You must be signed in to change notification settings - Fork 692
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
Discussion: WinUI 3.0 XAML Designer #5917
Comments
IMO, Hot Reload and Live Visual Tree are fine - especially considering the effort/hours needed to support a separate designer, while also trying to make any meaningful progress on the ~2100 open issues. The team also mentioned this is the direction that want to go instead of making a designer, but I can't remember exactly where this was stated. |
In the past they said a designer is not planned for 1.0 and not planned for the near future. At the current broken state of WinUI I would also rather focus them on fixing bugs. I mean you cannot even set a window title without using workarounds 🤦♂️ |
@kmgallahan I'd be inclined to agree with you however, so far I've found neither to be supported by the "WinUI 3 in UWP" or "WinUI 3 in Desktop" project types provided by the Windows App SDK Extension. I'd imagine you've been succeeding with with WinUI 2 in UWP Apps? Am I missing something? Thanks |
@GeorgeKerwood I won't try to identify all the versions and periods of time where Live Visual Tree & Hot Reload have and haven't worked, but as of right now using the latest version of VS 2019 with WindowsAppSDK 1.0.0-preview1 they are both functioning in a WinUI 3 Desktop / Win32 app. That includes hot reload for both XAML and CS (while debugging managed code only). My point was more to say that since those are the things the team is investing time into, I'm fine with using them going forward. |
@kmgallahan Thank you for the input. Updating to the very latest VS 2019 brought both Hot Reload and LVT to life. I agree that together they serve the graphic design purpose for the interim.
Personally, I'd still like to see a designer in the long term since I find it a more time efficient way of generating xaml, however I can see both sides. |
@ryandemopoulos FYI |
@kmgallahan Hot reload still has issues in WinUI 3, like this one: #5944 @GeorgeKerwood I agree that in order to enable a large number of developers (especially people who just try WinUI 3 or people who are not proffesional developers) to use WinUI 3 the designer is needed. |
I think not having a Designer in Visual Studio 2022 and Blend for Visual Studio is a big mistake. It will withhold WPF and Windows Forms developers to switch to WinUI3. Having Xaml Hot Reload and Xaml Live Preview is not an alternative. I do 95% of my XAML development (WPF and UWP) in the XAML Code Editor. But I can't live without the 5% I do in the Designer. The productivity loss I will have is enormous. Let me give you a few examples of what I use the designer for and what I can't do in the XAML Code editor. Please implement the Designer for WinUI3 soon. It is even not on the planboard, not even in the backlog. I have submitted a new idea for it. Hopefully it will be picked-up soon so others can upvote it. Add/Delete/Move Columns and Rows to/from a GridIn the Designer you can easily Add/Delete/Move Columns and Rows to/from a Grid. If you do so it will update the Column/Row attached properties of all elements inside the Grid. You don't want to do this manually. It is a real productivity boost. It would really be nice if the XAML Designer for UWP would display the Create StoryboardsYou can easily create Storyboards in Blend for Visual Studio using a "recorder". Something you can't do in Visual Studio (which I find stupid). The Objects and Timeline (aka Document Outline Window) has a special '+' button for it. The recorder let's you create KeyFrames and easily select easing functions for it. You don't want to create a storyboard in the XAML Code Editor by hand. A Storyboard is often very large piece of XAML which is very difficult to write by hand, especially the begin and end times of all keyframes. Visual StatesI can easily create Visual States using Blend for Visual Studio. For each Visual State I can add Triggers, Setters and Storyboards. I can even record the Storyboard and use transitions. You don't want to create Visual States in the XAML Code Editor by hand. Especially the ones which have Storyboards. Most of the Visual States in control Templates are still using Storyboards, not the 'new' Setters. Add BehaviorsYou can add Behaviors in Blend for Visual Studio using the Assets Window. Something you can't do in Visual Studio (which I find also stupid). You get a visual feedback when a Behavior can or can't be dropped on an element. You can als The Property Window of Visual Studio just doesn't show all properties of an Behavior. For example I can't select the You don't want to add Behaviors in the XAML Code Editor by hand. XAML Designer Suggested ActionsThey work great. They are new. Why abandon them? Edit Template and Additional TemplatesOnly in the designer you can easily create templates. I don't know how else I would create one. I never do this in the XAML Code Editor. Many small featuresSetting the Order, Alignment and Layout (most often Reset All). You don't want to set the z-order manually. Show Designer in different resolutions, scaling and orientation XAML Design Time Data |
@fabiant3 and @codendone FYI |
I'm with @sonnemaf on this one. I use Blend for adding Behaviors, cloning and customizing themes and templates for controls. I would also want to manage visual states if WinUI has those. So much of what I know now re: WPF has come via the designer and blend. I would make changes and look at what happened to the XAML. I am planning the approach for migrating a WPF-based application to WinUI and had expected that there would be designer and/or Blend support for that XAML as well. It's a shock that it's not there. XAML hot reload does not work for my app btw as it contains some C++/CLI code for interop with a large body of native code. The hot reload does not work with my project because of the lack of support for /clr code. ie. Edit and Continue is not supported for my project. |
Our team is porting an existing UWP app to WinUI3 targeting Windows 11. We definitely appreciate having Blend support as soon a possible. The rounded corner elements in Windows 11 do require us to make quite some adjustments to the element Styles, specifically the the Blend -> Element -> Edit Template -> Edit a Copy capabilities. |
Microsoft should look to its Android Studio and XCode contemporaries, with Android, iOS, and macOS designers for good UI designers/previewers - rather than to what is currently provided to UWP/WPF/WinForms. There is a rich surface here that could be made more designer friendly, Via Blend - which can be handed off to the code teams in Visual Studio. |
A designer with better features would be perfect. But also take more time. Maybe give us first the UWP designer and then add features to it. |
I'd add that hot reload and live visual tree are not a replacement as they require the app to be compiled, launchable. If I'm working on an app, I have to ensure all code compiles and the app launches to be able to use the XAML live preview. I don't want to have to wait for other paths to be completed first. The "you have to wait for the backend code to be completed before you can build the view" is not a good experience. |
IMO, while the Hot Reload and Live Preview make for flashy demos, they are nice-to-haves. The Designer is a MUST HAVE. |
Yep. A designer is crucial for creating control templates or story boards, as well as setting properties. It is a MUST unless a better alternative for these shows up. Besides, having no xaml designer makes Blend for Visual Studio a useless application. |
I am really unable to believe that this is a bug. XAML Designer is an essential part of app development. Still couldn't believe it. Is it a bug or intended behavior? If it is a bug, how can we developers trust the other functionalities of WinUI 3? Please show us a clear path, UWP or WinUI, or something else? |
Who said not spending the time to create a tool was a bug? They've clearly stated on multiple occasions that they are investing in Hot Reload over a dedicated designer at this time.
|
Okay. I agree, sorry for my misunderstanding. Though, we do love to have a designer for the same reasons others have mentioned. |
Can't agree with this more. Hot Reload is great when I'm fine tuning the design. But from a blank page? Designer is how things get built. Unbelievable that this UI was released without one. |
I've developed in WinForms, WPF and UWP and I'm finding it hard to jump into WinUI 3. This is supposed to be the next generation UI framework and at every step, there seems to be something missing...no designer, lack of demos, sparse docs and even the launch was non-eventful. I want WinUI to succeed but right now it's still very much a "preview". Hot Reload is nice when it works but I'm curious why the designer in VS and Blend could not be updated to support WinUI when it's done so since WPF. It feels like the design-time experience has been dumbed down. |
I write 100% of XAML by hand, but I very much need to see the result rendered somewhere as I type, before running the app! (yes, live preview is great, thank you). Please, give us even a rudimentary initial version of Designer that just renders my XAML. |
I wanted to create a new app and jump onto WinUI; but no designer is just plain crazy. And this isn't a bug but just a basic requirement. |
Do we know, is WinUI 4 confirmed, or has it even been mentioned by anyone at MS? I would be happy if so; I'm not feeling at all secure developing wth WinUI 3 currently (having been burned by UWP). |
I don't understand why you do this to yourself and don't use something that meets your requirements? For me, this is one of the reasons why I won't be using WinUI3 and will rely on UWP instead. |
jp-weber, there's a few reasons, but one big one is I'd have to rewrite 4 years of my team's code to convert to something else. UWP won't do the trick for my huge codebase to migrate to. And as well various components I've used for years work/don't work in a multiplatform environment (IOS/Android/WASM). It's a mess. But I agree with you in this point - if it was a green field for me today, there's no way I'd go WinUI/VS. |
I've not seen anything mentioned but we are getting towards next version time. I cant believe how big a let down this has been. In the past there were regular community calls every month or since 2020 yet there hasn't been one for 6 months I believe, everything I see says WinUI isn't in active development and MS have given up on it due to the massive errors in judgement. |
Microsoft change Developer Community ticket for MAUI Visual Designer request, so please vote up this ticket. https://developercommunity.visualstudio.com/t/XAML-Designer-for-Net-MAUI/10224319 |
@maddymontaquila Did you see this issue and community comments? |
What i really need is a solution like designer host in winform, so i can do some awesome thing with low/no code. |
Jeez... This nearly guarantees that WinUI 3 applications will consistently have the most poorly designed UIs of any serious modern native UI framework. Usability is already considered overhead in many projects; teams that could have spent their time making their UIs decent will now spend all of that time making them basically functional. |
Hot Reload does not work. That is crazy!!! |
why people recommend this framework when it looks for nerd who are ok press 1000 times reload button to make sure everything fit? most unenjoyably thing. |
Looks nice, need to check that 😀 |
There is a table here https://learn.microsoft.com/en-au/windows/apps/get-started shows which is supported: |
+1 for this issue. This is a blocker for me bothering to even install tooling to try learn this framework. I wanted to try modern Windows UI development, but this issue convinced me to unironically use WinForms instead. My use case is the classic "we need internal tooling for developer-only use". A tale as old as time. At first, I had planned on writing a simple PowerShell script to get things done, but the requirements have rapidly outgrown PowerShell. I considered writing a CLI tool, but my company-supported language choices are Python or C#. Python is too slow, and building a clean, responsive, lightweight CLI binary using C# is giant mess of AoT trimming errors whenever I try to include external libraries. Maybe in 3 years most C# libraries will cleanly support AoT compilation. It's blazing fast when it actually works. That would be amazing. But that future is not today. So I'm just going to build a UI instead. I don't want to bother with web hosting, so I need a desktop UI framework with a basic designer to deliver simple apps really fast. I wanted to try out some more modern Windows UI tools, but the requirements don't support spending time fiddling with XML configuration files, or learning a brand new set of tooling. I just need to build some internal company dev tools. I need an easy way to throw together stuff quickly. I don't need any complicated UI elements, no advanced interactions or clean UX. Cross platform compatibility isn't needed. I gave that up when I decided to build a UI instead of a CLI. All we need is a big blob of simple buttons, input boxes and labels. Which is exactly the promise of WinForms. Build something half decent, really fast. "One of the most productive ways to create desktop apps" is what the documentation says. Deprecated though it may be, this issue has confirmed that I'm going to be building brand new tooling in WinForms. I can't afford to wait years for Microsoft to provide the same level of tooling they provided a decade ago, so I'll just build new stuff with the old tooling. A new WinForms app in 2024. What a novelty. WinForms has been upgraded to support dotnet core, it's now open source, and it's got a perfectly functional drag-and-drop designer to support rapid prototyping, and those are my only hard requirements. Ironic that I'm just going to use WinForms for building my internal dev tooling. WinForms felt old when I got my first development job almost a decade ago and it was already being deprecated in favor of UWP, and now it's almost as old as our new junior developer. WinForms is old enough to drink. But man, when users are crying out for a designer, and the response is "we have too many other serious bugs to put a designer on our roadmap", that's the worst possible thing I could hear. It's a message that WinUI isn't stable enough to bother considering for even a toy demo. It's a vote of no-confidence for the technology as a whole. I'm not here to tell you your roadmap is wrong. You're the maintainers of the roadmap. It's probably a good roadmap. But I'm not getting anywhere near a technology that's got years of development before it's mostly-stable. UWP will die soon, because it's relatively simple to port to the newer frameworks, so there's little reason to continue making sure it's compatible with newer tools, languages, and frameworks. I expect UWP apps will soon be told "update to WinUI or else". But it's effectively impossible to update a large legacy WinForms app to a modern UI framework. It's equivalent to rewriting the entire thing because there's no upgrade path. That means you (Microsoft) will be stuck supporting WinForms until the heat death of the universe, because billions of dollars of corporate contracts obligate you to keep supporting it. Maybe your hope is that it'll be fully supported by the open source community in the future. At least there's a chance, as long as you also open source the Visual Studio designer as a separate extension. WinForms will outlive us all. Funny how that's a great thing for me. That makes WinForms a safe, and reliable option for my quirky company internal tools. I'll never need to worryingly read end-of-support notifications or wonder when a new critical feature will be delivered. I'll be safe in knowing I'll never have to dig through GitHub issues to figure out where my beloved legacy WinForms designer went. I'll never open a "modern" win10 settings app that's missing half the settings I need. Funny how that also means I'm adding to the pile of companies that will force WinForms support to outlive my entire career. I think I'm starting to understand how COBOL became so popular. The Lindy Effect applies. Long live WinForms, I guess. The officially supported modern UI framework for new Windows desktop applications. For everything else, there's Chrome-in-a-box (Electron). |
Responsiveness to the professional needs of Windows developers has been too low. It has been nearly 3 years and this is still an issue. I've moved onto non-Microsoft specific platforms. I encourage Microsoft to become responsive, as XAML / C# has very strong points despite serious flaws in the development cycle. |
Microsoft is now officially working on a designer: #9807 (comment) |
Good God! Has hell also frozen over? |
New Broom, clean sweep, and all that. Finally WinUI can get some polish and attention from TPTB...
|
Microsoft and clean documentation? Hope you guys be realistic :3
…On Thu, Aug 22, 2024, 7:55 PM Martin Anderson ***@***.***> wrote:
New Broom, clean sweep, and all that.
Finally WinUI can get some polish and attention from TPTB...
As next steps, we plan to update the developer tooling experience for
WinUI with a designer and update the documentation. We will be more active
and transparent in communication with the community and resolve bugs at the
earliest.
—
Reply to this email directly, view it on GitHub
<#5917 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYGT5YXE7A2TL2GRTCDKSALZSYQ2FAVCNFSM5EKBPJA2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMZQGUZTENZQGM4Q>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Try Apple's documentation and feel the difference :) |
The fact this feature was missing is a disgrace and Microsoft should find whoever confirmed that WinUI will be created without a designer and immediately terminate their employment because they are dangerous. |
Many on this thread will be pleased to know that Hot Design from Uno Platform provides this oft-requested Visual Designer functionality for WinUI (as well as other targets) Announcement: unoplatform/uno#18833 |
But this is going to be a paid add on. This XAML designer should be available out of the box. |
According to their website, it is…
Free and Open Source
Regardless of the intended use or the size of the organization, Uno Platform is free and open source under the very permissive Apache 2.0 Licence.
https://platform.uno/pricing/
From: steskalja ***@***.***>
Sent: Thursday, November 21, 2024 10:57 AM
To: microsoft/microsoft-ui-xaml ***@***.***>
Cc: Jacob Russo ***@***.***>; Manual ***@***.***>
Subject: Re: [microsoft/microsoft-ui-xaml] Discussion: WinUI 3.0 XAML Designer (#5917)
Many on this thread will be pleased to know that Hot Design from Uno Platform provides this oft-requested Visual Designer functionality for WinUI (as well as other targets)
Announcement: unoplatform/uno#18833<unoplatform/uno#18833> .NET Conf 2024 Session on Hot Design: https://www.youtube.com/watch?v=sJPyieyt1Rc&list=PLdo4fOcmZ0oXeSG8BgCVru3zQtw_K4ANY&index=93
But this is going to be a paid add on. This XAML designer should be available out of the box.
—
Reply to this email directly, view it on GitHub<#5917 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AA7N4IFM3X63SDVA62CTACD2BX7DJAVCNFSM5EKBPJA2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TENBZGE3DCNZQG44Q>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.******@***.***>>
|
I have no idea what UNO is and I really don't want to know. As others said, it should just be there. |
Wasn't xaml has deffrence between every framework?
It's like you want WPF xaml for win3 when both are deffrent but I don't
know about uno but in my bad experience allwas cross platform framework is
buggy as hill
…On Thu, Nov 21, 2024, 6:00 PM Jay ***@***.***> wrote:
I have no idea what UNO is and I really don't want to know. As others
said, it should just be there.
—
Reply to this email directly, view it on GitHub
<#5917 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYGT5YUBUCTABUFA62LE5JD2BYGTVAVCNFSM5EKBPJA2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TENBZGE3TQMRXGE3A>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Uno on Windows is a regular WinUI with some extensions. It uses WinUI xaml dialect for all other platforms. For example MAUI uses Xamarin xaml, but it is mapped to WinUI on Windows platform |
Please forgive the faux pas if readdressing closed issues is not the "done thing", however with the release of Windows App SDK 1.0.0 I was surprised to still not see any timeline or discussion on this point. With reference to #3656 and #3644, Visual Studio XAML Designer does not support WinUI 3.0.
Respectfully, this is a crippling barrier to entry which for most intents and purposes renders the framework unadoptable.
I would be grateful to hear if there were plans to support graphical xaml design within VS, Blend or equivalent and if so on what timeline? Interim alternatives or "work arounds" would also be very helpful.
Kind Regards
The text was updated successfully, but these errors were encountered: