Desktop: WinForms, WPF, UWA
-
Scale by zooming is the only usable method on 200-300 DPI laptop displays; and if you don't want your half blind but too proud managers to set their 1080p/1440p monitors to 1280x1024 and then complain that all your graphics and text look all stretched out of shape and weird you need to support DPI scaling on normal desktop displays. These options look much sharper if you're able to draw at high DPI directly instead of at 100% and having it stretched by the OS.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt
Dan Neely wrote:
having it stretched by the OS.
It is not stretched by the OS; the developer has to specify which areas can grow and shrink. Depending on whom you are catering to, you'll be switching both DPI and resolution to verify the results.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
-
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
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.
-
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
Working on it? It's been out for I don't know how many months.
Blog: [Code Index] By Mike Marynowski | Business: Singulink
-
Working on it? It's been out for I don't know how many months.
Blog: [Code Index] By Mike Marynowski | Business: Singulink
Parts of it yes but there's a lot more surfacing they are working on.
This space for rent
-
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. :)
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
-
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.
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!
-
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!
-
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.
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.
-
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
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.
-
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.
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.
-
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.
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]
-
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
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.
-
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 [
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: