Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Desktop: WinForms, WPF, UWA

Desktop: WinForms, WPF, UWA

Scheduled Pinned Locked Moved The Lounge
csharpwpflearningwinformscom
62 Posts 28 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Mycroft Holmes

    I'm curious, with the demise of yet another MS technology, the windows phone, what benefit is there to UWP. You have to remember winforms is the most mature windows development platform, I'd be astonished if there are things in there that have not made it into WPF yet. I pray to the great Ghu that those bastards at MS don't deprecate WPF. Yes I'm still bitter about the demise of Silverlight.

    Never underestimate the power of human stupidity RAH

    U Offline
    U Offline
    User 11319743
    wrote on last edited by
    #51

    Just compare Spider Solitaire Win10 (UWP) and Win7. Specifically, try re-sizing the windows both up and down. Then ask yourself what is UWP good for.

    1 Reply Last reply
    0
    • P Pete OHanlon

      raddevus wrote:

      1. Only UWP apps will be admitted to the Windows Store.

      Ultimately, that's not going to be true. MS has been working to bring the ability to run Win32 apps/WPF apps/Win Forms, etc, to run as appx so they can be downloaded from the app store.

      This space for rent

      M Offline
      M Offline
      Mike Marynowski
      wrote on last edited by
      #52

      Working on it? It's been out for I don't know how many months.

      Blog: [Code Index] By Mike Marynowski | Business: Singulink

      P 1 Reply Last reply
      0
      • M Mike Marynowski

        Working on it? It's been out for I don't know how many months.

        Blog: [Code Index] By Mike Marynowski | Business: Singulink

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #53

        Parts of it yes but there's a lot more surfacing they are working on.

        This space for rent

        1 Reply Last reply
        0
        • R raddevus

          abmv wrote:

          You can create your own controls if you need to..

          That is good...I know I should feel like that is good. But when you are spoiled by WinForms development and you drag and drop the control and it "Just works" it's difficult to be excited by that. :)

          abmvA Offline
          abmvA Offline
          abmv
          wrote on last edited by
          #54

          Well its up to you..besides there are a number of third party WPF controls available in the market if you don't have the time to do the development esp if you are building a LOB application.

          Caveat Emptor. "Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long

          We are in the beginning of a mass extinction. - Greta Thunberg

          1 Reply Last reply
          0
          • R raddevus

            Great post and info.

            John Torjo wrote:

            Now, add to that the Anchor property - which I used heavily to properly align controls. It seldom works on high resolution monitors.

            I suffered this problem with my winforms when the new higher resolution and wide screens came out.

            J Offline
            J Offline
            John Torjo
            wrote on last edited by
            #55

            Thanks :) One other issue I just remembered - sometimes, when lots (I mean, LOTS) of controls on a dialog/usercontrol, the VS2013 designer crashes a lot of times - so, editing the dialog/usercontrol is a huuge pain. I would have expected this to be solved later on (VS2017), but turns out this is not the case. Best, John

            -- Phot-Awe - Find the Photos you Love - FAST!

            R 1 Reply Last reply
            0
            • J John Torjo

              Thanks :) One other issue I just remembered - sometimes, when lots (I mean, LOTS) of controls on a dialog/usercontrol, the VS2013 designer crashes a lot of times - so, editing the dialog/usercontrol is a huuge pain. I would have expected this to be solved later on (VS2017), but turns out this is not the case. Best, John

              -- Phot-Awe - Find the Photos you Love - FAST!

              R Offline
              R Offline
              raddevus
              wrote on last edited by
              #56

              John Torjo wrote:

              VS2013 designer crashes a lot of times

              Yeah, I've run into this problem also in VStudio 2017 and didn't even have a large number of controls.

              1 Reply Last reply
              0
              • C CodeWraith

                raddevus wrote:

                it is really bad for MVC (the pattern, not the microsoft thing)

                Really? Simply use the forms or controls as views and write yourself some nice baseclasses for the controllers (or presenters in my case). To completely get rid of the forms concept, you may also need some concept of a workspace. Easy as pie and I have ported code from ASP .Net web forms (a hack, I must admit) to WinForms, from there to WPF and from there to my own UI in XNA (now MonoGame).

                I have lived with several Zen masters - all of them were cats.

                A Offline
                A Offline
                Andre Pereira
                wrote on last edited by
                #57

                Meanwhile, you'll be keeping the CPU busy and draining power, to render 2D surfaces, while your graphics card keeps idling and your users complain of a slow app, nevermind all the frame-skips. Native development is not like web-development, you don't just throw a few libraries and hack a UI.

                C 1 Reply Last reply
                0
                • L Lost User

                  Feature for feature, WPF has more to offer than Windows Forms; except maybe for the "Open / save", etc. common dialogs. You fail to find an answer to you "obvious" question, and therefor discount the entire platform. Funny thing is, I'm currently looking at a panel which has multiple ListViews with GridViews inside a WrapPanel, and ALL the ListViews are showing the "items that lost focus" as having a "different hilite" than the ones that were not selected. Looking at other implementations, they ALL show the item that "lost focus". And I did "nothing" to activate that functionality. Maybe that's why there are no "articles". Default behaviour out-of-the-box (if you don't override it; like one of the "system colors").

                  "(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal

                  A Offline
                  A Offline
                  Andre Pereira
                  wrote on last edited by
                  #58

                  Yeah, a lot of developers forget the wonderful experience that is writing a and then everything just works with no edge cases, allowing you to expand on the complex stuff. That's how you get shit done.

                  1 Reply Last reply
                  0
                  • A Andre Pereira

                    Meanwhile, you'll be keeping the CPU busy and draining power, to render 2D surfaces, while your graphics card keeps idling and your users complain of a slow app, nevermind all the frame-skips. Native development is not like web-development, you don't just throw a few libraries and hack a UI.

                    C Offline
                    C Offline
                    CodeWraith
                    wrote on last edited by
                    #59

                    André Pereira wrote:

                    Meanwhile, you'll be keeping the CPU busy and draining power, to render 2D surfaces, while your graphics card keeps idling and your users complain of a slow app,

                    You don't say! If I only had known that. Fortunately I do use the graphics hardware to render the UI and that multithreded little monster uses a 3D engine to render into the background. The CPU barely breaks some sweat. I have posted the link before: Take a look here.[^] And if you don't like my models or UI design, then that's ok. It simply means that I'm not much of an artist or designer. :-)

                    André Pereira wrote:

                    Native development is not like web-development, you don't just throw a few libraries and hack a UI.

                    Thank god, otherwise our poor CPU would be tied up running some worthless interpreter (like JavaScript) and there will not be enough left for the 2D surfaces. :-)

                    I have lived with several Zen masters - all of them were cats.

                    A 1 Reply Last reply
                    0
                    • C CodeWraith

                      André Pereira wrote:

                      Meanwhile, you'll be keeping the CPU busy and draining power, to render 2D surfaces, while your graphics card keeps idling and your users complain of a slow app,

                      You don't say! If I only had known that. Fortunately I do use the graphics hardware to render the UI and that multithreded little monster uses a 3D engine to render into the background. The CPU barely breaks some sweat. I have posted the link before: Take a look here.[^] And if you don't like my models or UI design, then that's ok. It simply means that I'm not much of an artist or designer. :-)

                      André Pereira wrote:

                      Native development is not like web-development, you don't just throw a few libraries and hack a UI.

                      Thank god, otherwise our poor CPU would be tied up running some worthless interpreter (like JavaScript) and there will not be enough left for the 2D surfaces. :-)

                      I have lived with several Zen masters - all of them were cats.

                      A Offline
                      A Offline
                      Andre Pereira
                      wrote on last edited by
                      #60

                      Just as long as your users aren't on Windows XP or Window 7 on "classic theme", which disables 2D acceleration :p. Spread the good word. Don't let web-developers take over what used to be the top-tier experience in usability. [RANT]God, just last week I had to hack some UI stuff on Android with a web-view. Spent 10 minutes developing the required stuff and 3 days debugging web-browser related stuff. And in the end, I still had to mask the page loading in the background, so it doesn't look awful (i.e. like a browser).[/RANT]

                      1 Reply Last reply
                      0
                      • J jonmbutler

                        Mycroft Holmes wrote:

                        what benefit is there to UWP

                        The "U" in UWP to me says it all: Universal. One codebase that runs on desktops, mobile (or at least used to :laugh: ), tablets, Xbox, SurfaceHub, HoloLens, and IoT devices. That may not be attractive to all developers or for all use cases, but from my admittedly narrow understanding it opens up some pretty slick possibilities without the effort it takes to get other approaches working on multiple platforms. Full disclosure: I'm not a developer but I am a Microsoft employee. Flame on. ;P

                        A Offline
                        A Offline
                        Andre Pereira
                        wrote on last edited by
                        #61

                        My non-canned response would be: 1 - It's the most recent and the most supported target for software development. (HiDPI screens, touch and pen, GPS and sensors with a simple native API). 2 - You don't immediately lock yourself out of target platforms, you get some choice. (Desktop is good enough, throw in tablet support for free and everything else is a nice extra.) 3 - Integrated store deployment and store updates (I still remember maintaining the self-updater on a legacy software, something that's obsolete now.). 99 - C# + .net + Xaml + MVVM = development bliss.

                        1 Reply Last reply
                        0
                        • R raddevus

                          Recently, I had an interesting discussion with another CPer who took umbrage with my recent article which summarized a shift from WinForms directly to UWA/UWP XAML and ignored WPF XAML. I mentioned that WPF was indeed ignored by vast numbers of devs and that no shop I've worked in ever paid it more than scant attention. I also mentioned that many devs seemed to (perhaps improperly) connect WPF with Silverlight and MS killed Silverlight in the quiet of the night and many devs never felt much motivation to go to WPF. Not Reviving A Debate Or Anything Against WPF-minded CPer Of course, WPF is used all around, I'm sure. This post is not an attempt to revive a debate that ended up being a very good discussion. I think the CPer was definitely correct on many things he said. My point is the following (and I think it is interesting): Trying To Find XAML Control Solutions: Difficult Today, I was looking for a way to make sure my UWA (XAML-based) app's ListView would show the last selected item even when it lost focus -- keep it highlighted. Could Only Find WinForms Answers As I searched I could find nothing but WinForms answers about how to do that. Those answers are like 7 years old. Should Be Very Simple and Is In WinForms The answer should be very simple. WinForms Answer : In WinForms the answer is set the HideSelected property to false. This is something that is an obvious functionality in a ListView. So obvious that WinForms provided a property. Not so in XAML. Hmmm... Disclaimer Yes, I am a newbie to XAML and someone will surely post the answer to how to do this in XAML as soon as I post. Feels Like Microsoft Never Fully Developed XAML Either This kind of thing makes me feel like Microsoft never carried out the XAML development all the way either. Just thought it was very interesting. How about you? EDIT I also own this book Universal Windows Apps with XAML and C# Unleashed [

                          S Offline
                          S Offline
                          swampwiz
                          wrote on last edited by
                          #62

                          Thank you posting this! Micro$oft built its reputation on making it easy for developers to get competent in its products (e.g., Visual Basic/C++, ATL/COM, and then later WinForms C#), but then lost it way as it kept releasing the newest k3wl stuff, only to kill it a year later. This type of churn does not help anyone that is not writing books about this stuff. After a while, folks get burned out on devoting the time to learn the new stuff, only to have it go obsolete before being able to make any coins from it. :mad::mad::mad::mad: Micro$oft, like Apple, had the heft to be able to be "market leader" in a standard, but it blew it big time, making folks like Yours Truly just want to throw in the towel and retire early. :mad:

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups