WPF or UWP?

franklinhsu-6084 1 Reputation point
2022-11-01T08:35:06.667+00:00

I am a newbie developer.
I have a requirement to develop a Windows application:

  1. Able to read data from RFID reader(Hardware)
  2. Use third party C# libraries
  3. Rich gauge UI(third party component)
  4. Read data from exist Web API

Should I use WPF/ WinUI/UWP or Windows Form?

I'm just trying not to waste time on learning dead tech or make thing to much complicated

Please give me some direction

Thanks

Universal Windows Platform (UWP)
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,671 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
725 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Roy Li - MSFT 31,826 Reputation points Microsoft Vendor
    2022-11-17T08:51:18.087+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Should I use WPF/ WinUI/UWP or Windows Form?

    WPF, UWP and Winforms, all of them can implement the feature that you want. But there is one thing that you need to note, UWP apps are running on sandbox which means it is isolated form the system. There are some limitations when UWP apps try to access system resources like file system, local network and other special capability. At the meantime, WPF and Winforms doesn't have these limitations. Another thing needs to note is that currently, WinUI is replacing UWP. But WinUI is still a young technology, and it will be improved continuously.

    If you want to get more modern experience, WinUI will be a choice for you. If you want to use a more mature technology, WPF and Winforms will be a good potion.

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    4 people found this answer helpful.
    0 comments No comments

  2. Castorix31 81,721 Reputation points
    2022-11-01T08:44:57.357+00:00

    MS encourages WinUI 3 (Microsoft Officially Deprecates UWP), but I don't think it is ready atm (I'm testing it from first releases, the idea is good, but still too many bugs)
    I would use Winforms, a safe bet...

    2 people found this answer helpful.

  3. Sam of Simple Samples 5,516 Reputation points
    2022-11-01T22:08:14.887+00:00

    If a WPF application will execute everywhere this application is needed to execute then I am not aware of any reason not to use it. The main reason for using UWP or something like it is if it is needed in environments where WPF applications are not supported. WPF is widely used and Microsoft will not stop supporting it, certainly not without ample warning.

    The current version of WPF is open-source; the source code is available in GitHub, see GitHub - dotnet/wpf. Therefore it will always be availble even if Microsoft stops supporting, which is not likely. They continue to improve it.

    2 people found this answer helpful.
    0 comments No comments