Welcome to the Lounge
The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
|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...
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?
I also own this book Universal Windows Apps with XAML and C# Unleashed [^] -- probably the best one available on UWP XAML and it does not have these kinds of details either.
However, this type of thing was always covered quite well on the WinForms side and even if you couldn't find it, you could look through every property.
modified 13-Dec-17 17:12pm.
General News Suggestion Question Bug Answer Joke Praise Rant Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.