What's New with WinForms in .NET 9? | OD537

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ค. 2024
  • WinForms has been making a lot of improvements for our developers. This session will go over some of these improvements in both the runtime and the Visual Studio WinForms designer. You'll see that WinForms is alive and well in .NET!
    To learn more, please check out these resources:
    * aka.ms/Build24Collections-Dev...
    * github.com/dotnet/winforms
    * aka.ms/winforms/designer/unaw...
    𝗦𝗽𝗲𝗮𝗸𝗲𝗿𝘀:
    * Klaus Loeffelmann
    * Merrie McGaw
    𝗦𝗲𝘀𝘀𝗶𝗼𝗻 𝗜𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
    This video is one of many sessions delivered for the Microsoft Build 2024 event. View the full session schedule and learn more about Microsoft Build at build.microsoft.com
    OD537 | English (US) | Developer Tools
    #MSBuild
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 50

  • @jazzweather
    @jazzweather 2 หลายเดือนก่อน +11

    Winforms is the most productive and performant Windows desktop framework available. Hope Microsoft continues to invest in it for the many years to come!!

  • @sulmarpl
    @sulmarpl 2 หลายเดือนก่อน +29

    WinForms are immortal. They will survive WPF :)

    • @bytejourneycodes
      @bytejourneycodes 2 หลายเดือนก่อน +1

      I'm planning to switch to WPF now for more than a decade. I use WinForms to prototype my applications that I plan to create and it's perfect for it, simple, fast, lightweight. I also copy it on my windows tablet which I can then test it as a mobile device or web page. I use it like this for a couple of weeks then only commit to android or web.

  • @nimce4u
    @nimce4u 2 หลายเดือนก่อน +9

    WinForms forever :) I'm glad it's getting more and more love in .NET 9, as it should!

  • @jd31068
    @jd31068 2 หลายเดือนก่อน +2

    These are FANTASIC, thank you for your efforts in keeping Winforms relevant.

  • @azaanandiworld
    @azaanandiworld 2 หลายเดือนก่อน +9

    VB is back baby!!!

  • @bytejourneycodes
    @bytejourneycodes 2 หลายเดือนก่อน +3

    Good video, I liked the MVVM compatibility and dark mode, I tried to incorporate dark mode in my prior winForms apps but was usually a drag, now it's super easy

  • @shmuelprizant2821
    @shmuelprizant2821 2 หลายเดือนก่อน +5

    Hi, where can I get the shown example project's source code?

  • @irql2
    @irql2 2 หลายเดือนก่อน +3

    When can we try out dark mode? I just installed vs2022 preview and .net 9 and dont see it yet.

  • @S3Kglitches
    @S3Kglitches 8 วันที่ผ่านมา

    Asychronous code can easily be run using async void event handler. You can just call your backend asynchronously and then update the UI in the same method as you would call synchronously. The "async" example is just timer running on a new thread. That's something different than I expected when talking about async on WinForms. That's more like parallel UI threads. Async is about I/O.

  • @yonggheelim1934
    @yonggheelim1934 2 หลายเดือนก่อน +1

    Thanks for showing whats coming up in dotnet 9 wrt Winforms. Winforms is really easy to learn. As an enterprise line of business developer, I am not so concern with animation and graphic display which I think WPF may be more suitable. Would love to see a series of demos on Dependency Injection in Winforms ie pulling logging, creating new forms etc even something that can replace Managed Extensibility Framework

  • @OmbasaMukhwami
    @OmbasaMukhwami 2 หลายเดือนก่อน +2

    Great work

  • @malisancube01
    @malisancube01 หลายเดือนก่อน +1

    Very nice. DataSource needed

  • @irql2
    @irql2 2 หลายเดือนก่อน +1

    I really hope Winforms gets some sort of Wasm deployment option. That would be sick.

  • @lambdaprog
    @lambdaprog 14 วันที่ผ่านมา

    I literally implemented allnof that dark/light theming by hand after having suffered a long long time from Telerik's sub par performance. My app (SDR#) is now faster than ever with a 80% reduction in memory.

  • @santiagoc93
    @santiagoc93 2 หลายเดือนก่อน

    She did a great job explaining all the concepts and new things for winforms. He did a great job as well

  • @Memento2747
    @Memento2747 2 หลายเดือนก่อน +2

    Why don't you work on Reports for Winforms? specifically reportviewer controls which is not currently in Visual studio 2022

    • @merriemcgaw4820
      @merriemcgaw4820 2 หลายเดือนก่อน

      ReportViewer is a SQL Reporting Services owned control. We would need to work with them to move it to .NET. Definitely keep providing this feedback (to us and SQL)!

  • @colhountech
    @colhountech 2 หลายเดือนก่อน +1

    Great Job - Would love to see ability to wrap Win32 calls in an easier way!

    • @sealsharp
      @sealsharp หลายเดือนก่อน +2

      Oh that's a historical issue. DllImports can not be auto-generated because the native API s do not have the required information to conclude the right way to setup marshaling.
      There's a nuget package named vanara... varana? Something like that. It's a collection of stuff from windows dlls wrapped in nice c# functions.
      And if you don't need the full package, you can still lookup individual functions.

  • @bcunni2
    @bcunni2 หลายเดือนก่อน

    Dark mode looks amazing. I think investigating color inversion lenses over a window is worth investigating as an option as well, in the style of 'NegativeScreen Smart Inversion'. This would solve the trouble with older controls that are difficult to theme, I've been searching for how to do this though and it's not easy.

  • @bcunni2
    @bcunni2 หลายเดือนก่อน +3

    The 96/100% designtime mode is not the right way to fix this. This is just a problem of multiplication and division, and deciding if you are going to represent the numbers like they where 100% scaling or at the current DPI scale to the end user. Forcing your users to design on a blurry interface surface is not the best answer, especially since this is literally just a multiplication problem. Solve the problem correctly.

  • @magz198
    @magz198 2 หลายเดือนก่อน

    3rd form in dark mode example truly brings diversity in naming conventions for codebase.

  • @carldaniel6510
    @carldaniel6510 2 หลายเดือนก่อน

    Using data binding to a view model for 100% of the connection with the UI is a cool idea, but... my experience has been that when data binding gets complex, for example a master-detail-subdetail view that the model falls apart and things just don't work right. I hope this work has been accompanied by a deep look into all of the existing data binding features to fix bugs!

  • @moayadmyro2091
    @moayadmyro2091 หลายเดือนก่อน

    .winform Dpi depends on system font and when a new form open with heavy controls unfortunately the app hangen and flickering I stuck with this for a while until I find my own solution another issue if I use low resolution while I am designing the app and the app later run on very high resolution 😢😢 it will not work that from 2017 exp

  • @YallDotBiz
    @YallDotBiz 2 หลายเดือนก่อน +2

    Chapters, chapters, chapters,

  • @jazzweather
    @jazzweather 2 หลายเดือนก่อน +3

    Seriously need a much more cooler and sophisticated demo app. Like a Blazing Pizza desktop app, similar to Blazor. Please!

  • @roodborstkalf9664
    @roodborstkalf9664 2 หลายเดือนก่อน

    Excellent presentation, much better then I have grown used to in the last few years. The worst of the woke years seems behind us.

  • @Aderic
    @Aderic หลายเดือนก่อน

    What the- I thought Winforms was obsoleted!?

  • @devdb6194
    @devdb6194 5 วันที่ผ่านมา

    Please just consider to add reportviewer control within WinForms in .NET 9 .its so important for LOB

  • @djrmarketing598
    @djrmarketing598 21 วันที่ผ่านมา

    Crazy I thought WF was dead 14 years ago when I switched to WPF and here it is still.

    • @S3Kglitches
      @S3Kglitches 8 วันที่ผ่านมา

      and WPF got outsourced to India :))

  • @CoderzF1
    @CoderzF1 2 หลายเดือนก่อน

    i thought yall were discontinuing Visual Basic. Thats what I started coding with back in 2001. When I heard it was going to be done away with, i started learning c#.

  • @XoloJay
    @XoloJay 2 หลายเดือนก่อน +1

    Did I hear right? It’s coming to Mac and Linux?

    • @jaytandon
      @jaytandon 2 หลายเดือนก่อน

      Winforms is a wrapper around Windows apis

    • @merriemcgaw4820
      @merriemcgaw4820 2 หลายเดือนก่อน +1

      @jaytandon is correct, WinForms is a wrapper around Windows APIs. There are no plans to change that.

  • @ivgnes
    @ivgnes 28 วันที่ผ่านมา

    A Crusader knight is buried with his sword.
    A MS programmer is buried with his WinForms.

  • @astantine85
    @astantine85 2 หลายเดือนก่อน +3

    A lot of blabbering about third-party control makers. Why shouldn't WinForms support features from the Windows Runtime?

  • @sealsharp
    @sealsharp หลายเดือนก่อน

    In my experience the runtime works fine, but the newer visual editor is still really janky.

  • @volante3005
    @volante3005 2 หลายเดือนก่อน +1

    Winforms all your life.

  • @randallstephens1680
    @randallstephens1680 หลายเดือนก่อน +2

    When will you port Winforms for .NET 8/9 to Linux? No, not Mono and .NET 4.x.

  • @bytejourneycodes
    @bytejourneycodes 2 หลายเดือนก่อน

    I watched this video on Microsoft website itself and horrible experience, stuttering the whole time, then watching it here smooth and no issues. You guys should consider embedding the TH-cam video on your site instead.