Results 1 to 17 of 17

Thread: WinUI

  1. #1

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,760

    WinUI

    I'm curious, has anyone done any WinUI development other than just little test projects?

    I looked into it for a client, but it doesn't look like it is in a production ready state. For example, just to change the window title requires a work around.

    I also don't care for XAML all that much and I thought that was one of the biggest knocks against WPF, so I'm curious why Microsoft stuck with that decision if anyone has a crystal ball.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: WinUI

    It is shocking how many times they have tried pulling the wooden stake from the heart of Metro.

  3. #3
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,600

    Re: WinUI

    Quote Originally Posted by dday9 View Post
    I also don't care for XAML all that much and I thought that was one of the biggest knocks against WPF, so I'm curious why Microsoft stuck with that decision if anyone has a crystal ball.
    I actually think this was a good decision by Microsoft. In my opinion, describing a UI purely through code such as in WinForms or through an inaccessible mechanic such as in VB6 is archaic and clumsy. The success of HTML proves that defining a UI through a declarative language is a far better approach. This is what XAML seeks to capture. XAML like HTML tells the system what you want your UI to look like rather than telling it how to do so.

    That being said, XAML isn't anywhere near perfect. There are some things about it I don't like, at least in regards to WPF which is the only flavor of XAML I've used thus far. For example, I dislike the styling system in WPF. It is inflexible and overly verbose. HTML's way of styling visual elements through CSS is far superior. I don't know why Microsoft didn't just mimic that when they created WPF. I have a number of other such gripes with WPF's XAML but I understand and support the overall idea of having something like XAML to build UIs.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  4. #4
    Frenzied Member
    Join Date
    Aug 2020
    Posts
    1,447

    Re: WinUI

    I've also been thinking about WinUI, because I've been hesitating whether my new project's UI should be built with web technologies (Html+CSS) or with VB6.

    I can easily simulate a VSCode UI with VB6, but it's extremely difficult for me to build a VSCode-like UI with Html+CSS, and this UI can easily interact with my VB6-COM components .

    But it's frustrating to continue using VB6 to create WinUI, because the UI-related VB6 code can't be reused in web projects at all.

    Here's a thread I posted 50 days ago:

    XML-based UI lib (DirectUI)
    I'm thinking of an UI lib (DirectUI), which draws various UI-elements directly on a canvas by reading XML configuration parameters. I wonder if this way is feasible? Is there a ready-made, XML-based DirectUI lib that can be used by VB6? Thanks!

    In addition, what are the ways (or technical solutions) to quickly develop a UI similar to VsCode?
    Last edited by SearchingDataOnly; May 4th, 2022 at 08:55 PM.

  5. #5
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,600

    Re: WinUI

    At this point I think it's down right criminal we aren't using HTML everywhere to create UIs. For all it's flaws, the one thing you can be certain of is that it will run anywhere and it would look the same everywhere.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  6. #6

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,760

    Re: WinUI

    @niya - at this point I’m much more inclined to use ionic with angular to build a desktop application rather than use WinUI just because HTML with CSS is so much easier to work with (in my opinion) rather than XAML. If I needed something to leverage desktop specific code then I’d rather bite the bullet and use WinForms and sacrifice the visually pleasantries. I’ve looked at WPF numerous times and the learning curve of XAML just isn’t worth it to me.

    @SearchingDataOnly - I’d push back a little bit, making something like Visual Studio Code would more or less be the same level of difficulty either way. Where things would get tricky is implementing a terminal in the application using a web based approach. I’m not even sure it is feasible.

    Edit - @Niya - thinking of this some more, just from a position of marketing myself, I don’t see a justification to learn XAML. Then again, that might just be the enterprise software that I write. If I write more non-business user facing software, I may feel different.
    Last edited by dday9; May 4th, 2022 at 09:20 PM.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  7. #7
    Frenzied Member
    Join Date
    Aug 2020
    Posts
    1,447

    Re: WinUI

    When my kids were in elementary school, they had their own desktop computers with Windows inside. When they find the electronic dictionary in their computer inconvenient to use, I will spend a few days developing a better electronic dictionary for them.

    Later, when they were in junior high school, they had a lot of exam papers to manage, and I would spend a few days developing a paper management system for them.

    Later, when they were in high school, they had their own iPads and MacBooks, and they asked if I could develop a learning system for them that could be installed on iPads and MacBooks, and I was silent.

  8. #8

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,760

    Re: WinUI

    I think WinUI tries to solve that using a Microsoft stack. I just don’t think they do it well.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  9. #9
    PowerPoster ChrisE's Avatar
    Join Date
    Jun 2017
    Location
    Frankfurt
    Posts
    3,048

    Re: WinUI

    for Desktop stuff I just use Powershell to create Forms, WinUI might look nicer
    to hunt a species to extinction is not logical !
    since 2010 the number of Tigers are rising again in 2016 - 3900 were counted. with Baby Callas it's 3901, my wife and I had 2-3 months the privilege of raising a Baby Tiger.

  10. #10
    Frenzied Member
    Join Date
    Aug 2020
    Posts
    1,447

    Re: WinUI

    The reason why I came up with XML-based UI lib (DirectUI) is this:

    Try to develop a simple WebBrowser similar to IE or Chrome in VB6. This WebBrowser can parse HTML, CSS and JS, and draw corresponding pages according to HTML and CSS. At the same time, this simple WebBrowser can easily interact with VB6.

    Maybe my idea is too naive, but it is theoretically feasible.

  11. #11
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    39,043

    Re: WinUI

    Quote Originally Posted by Niya View Post
    At this point I think it's down right criminal we aren't using HTML everywhere to create UIs. For all it's flaws, the one thing you can be certain of is that it will run anywhere and it would look the same everywhere.
    That's not true. Try running it on IE4.

    It took a lot of effort to get the variety of web engines to be consistent in their implementation of HTML, then HTML5, and there will be subsequent iterations. I'd be surprised if all web engines were fully compliant, even now, though perhaps they have all gotten on board.

    I was also under the impression that there were parts of the standard that were left essentially optional, or up to the browser to decide.

    The same thing happened with C++ back in the 90s into the early aughts. The standard was there, compliance was not, but compliance got better and better with each subsequent generation. And then there will be new standards, and the whole cycle will repeat.

    I've never been a fan of HTML. It started out as a simple thing, then got all kinds of other stuff bolted onto it. It's quite functional, but is it ideal? I'd say that it probably is not.
    My usual boring signature: Nothing

  12. #12
    Superbly Moderated NeedSomeAnswers's Avatar
    Join Date
    Jun 2002
    Location
    Manchester uk
    Posts
    2,660

    Re: WinUI

    @niya - at this point I’m much more inclined to use ionic with angular to build a desktop application rather than use WinUI just because HTML with CSS is so much easier to work with (in my opinion) rather than XAML. If I needed something to leverage desktop specific code then I’d rather bite the bullet and use WinForms and sacrifice the visually pleasantries. I’ve looked at WPF numerous times and the learning curve of XAML just isn’t worth it to me.
    Yeah I agree, the only reason to learn XAML is to do Xamarin Mobile development and the only reason to do a mobile app over a web app is if you need access to some phone specific stuff such as sensors or notifications that you cant get access to if your not a native app.

    I am surprised you even looked at WinUI. Very few people are writing apps for the desktop anymore, everything I do now is web based and will remain so until something better comes along.
    Please Mark your Thread "Resolved", if the query is solved & Rate those who have helped you



  13. #13

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,760

    Re: WinUI

    Quote Originally Posted by NeedSomeAnswers View Post
    I am surprised you even looked at WinUI. Very few people are writing apps for the desktop anymore, everything I do now is web based and will remain so until something better comes along.
    For the majority of my contract work, I will typically implement PLCs and Vision Systems into a custom built human machine interface. I have a client who cans food (PLCs for the pressurizers) who is doing a rewrite of a legacy VB6 application and I figured that I would look into it as apart of my due diligence.

    Edit - in case you haven't guessed, he's going with WinForms.
    Last edited by dday9; May 6th, 2022 at 08:39 AM.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  14. #14
    Frenzied Member
    Join Date
    Aug 2020
    Posts
    1,447

    Re: WinUI

    Quote Originally Posted by dday9 View Post
    Edit - in case you haven't guessed, he's going with WinForms.
    Yes, many old VB6 programs will be upgraded to WinForms. After 10 years, they will upgrade from WinForms to Web-Apps again.

    In fact, they could totally keep using VB6 programs (or just make some simple enhancements to VB6 programs), and then wait until 10 years later to upgrade directly to Web-Apps.

  15. #15

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,760

    Re: WinUI

    I think this person's main issue is vendor lock-in. Their last in-house guy demanded too much (and was a pain to work with), so they decided to can him (no pun intended) and switch to an architecture with much broader support.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  16. #16
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: WinUI

    Ahh, so you mean Java. That also includes possibilities such as B4J if you want to write in Basic.

  17. #17

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,760

    Re: WinUI

    No, I mean .NET.

    This client wants to use C#, but my other clients are fine with VB.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width