Click here to Skip to main content
15,896,269 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

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.

 
GeneralRe: What? Pin
Dan Neely14-Dec-17 5:09
Dan Neely14-Dec-17 5:09 
GeneralRe: What? Pin
Mike Hankey14-Dec-17 5:14
mveMike Hankey14-Dec-17 5:14 
GeneralRe: What? Pin
Dan Neely14-Dec-17 5:20
Dan Neely14-Dec-17 5:20 
GeneralRe: What? Pin
Mike Hankey14-Dec-17 5:22
mveMike Hankey14-Dec-17 5:22 
GeneralRe: What? Pin
Joe Woodbury14-Dec-17 8:05
professionalJoe Woodbury14-Dec-17 8:05 
GeneralRe: What? Pin
jschell14-Dec-17 9:15
jschell14-Dec-17 9:15 
GeneralRe: What? Pin
Matthew Dennis15-Dec-17 10:40
sysadminMatthew Dennis15-Dec-17 10:40 
GeneralDesktop: WinForms, WPF, UWA Pin
raddevus13-Dec-17 11:01
mvaraddevus13-Dec-17 11:01 
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 [^] -- 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.

GeneralRe: Desktop: WinForms, WPF, UWA Pin
Mycroft Holmes13-Dec-17 12:06
professionalMycroft Holmes13-Dec-17 12:06 
GeneralRe: Desktop: WinForms, WPF, UWA Pin
raddevus13-Dec-17 12:29
mvaraddevus13-Dec-17 12:29 
GeneralRe: Desktop: WinForms, WPF, UWA Pin
Mycroft Holmes13-Dec-17 13:08
professionalMycroft Holmes13-Dec-17 13:08 
GeneralRe: Desktop: WinForms, WPF, UWA Pin
raddevus13-Dec-17 16:33
mvaraddevus13-Dec-17 16:33 
GeneralRe: Desktop: WinForms, WPF, UWA Pin
Pete O'Hanlon13-Dec-17 13:08
mvePete O'Hanlon13-Dec-17 13:08 
GeneralRe: Desktop: WinForms, WPF, UWA Pin
raddevus13-Dec-17 16:36
mvaraddevus13-Dec-17 16:36 
GeneralRe: Desktop: WinForms, WPF, UWA Pin
Pete O'Hanlon13-Dec-17 20:51
mvePete O'Hanlon13-Dec-17 20:51 
GeneralRe: Desktop: WinForms, WPF, UWA Pin
raddevus14-Dec-17 3:04
mvaraddevus14-Dec-17 3:04 
GeneralRe: Desktop: WinForms, WPF, UWA Pin
Pete O'Hanlon14-Dec-17 4:09
mvePete O'Hanlon14-Dec-17 4:09 
GeneralRe: Desktop: WinForms, WPF, UWA Pin
raddevus14-Dec-17 4:19
mvaraddevus14-Dec-17 4:19 
GeneralRe: Desktop: WinForms, WPF, UWA Pin
killbot500013-Dec-17 23:05
killbot500013-Dec-17 23:05 
GeneralRe: Desktop: WinForms, WPF, UWA Pin
raddevus14-Dec-17 3:11
mvaraddevus14-Dec-17 3:11 
GeneralRe: Desktop: WinForms, WPF, UWA Pin
Mike Marynowski14-Dec-17 10:21
professionalMike Marynowski14-Dec-17 10:21 
GeneralRe: Desktop: WinForms, WPF, UWA Pin
Pete O'Hanlon14-Dec-17 10:42
mvePete O'Hanlon14-Dec-17 10:42 
GeneralRe: Desktop: WinForms, WPF, UWA Pin
CodeWraith14-Dec-17 1:56
CodeWraith14-Dec-17 1:56 
GeneralRe: Desktop: WinForms, WPF, UWA Pin
André Pereira29-Jan-18 1:41
André Pereira29-Jan-18 1:41 
GeneralRe: Desktop: WinForms, WPF, UWA Pin
CodeWraith29-Jan-18 1:57
CodeWraith29-Jan-18 1:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.