Click here to Skip to main content
15,949,686 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Windows API code pack with VS Express 2010? Pin
Pete O'Hanlon6-Feb-12 19:10
mvePete O'Hanlon6-Feb-12 19:10 
GeneralRe: Windows API code pack with VS Express 2010? Pin
sbkk7-Feb-12 9:32
sbkk7-Feb-12 9:32 
GeneralRe: Windows API code pack with VS Express 2010? Pin
Pete O'Hanlon7-Feb-12 9:37
mvePete O'Hanlon7-Feb-12 9:37 
GeneralRe: Windows API code pack with VS Express 2010? Pin
sbkk7-Feb-12 12:07
sbkk7-Feb-12 12:07 
GeneralRe: Windows API code pack with VS Express 2010? Pin
Pete O'Hanlon7-Feb-12 12:12
mvePete O'Hanlon7-Feb-12 12:12 
GeneralRe: Windows API code pack with VS Express 2010? Pin
Richard MacCutchan7-Feb-12 22:50
mveRichard MacCutchan7-Feb-12 22:50 
QuestionSilverlight listbox selected item template Pin
USAFHokie806-Feb-12 6:49
USAFHokie806-Feb-12 6:49 
AnswerRe: Silverlight listbox selected item template Pin
SledgeHammer016-Feb-12 10:50
SledgeHammer016-Feb-12 10:50 
USAFHokie80 wrote:
Hi... So I want to change the item template for the selected item of a listbox.
I know I need to use the VisualStatemanager to do this, but I'm not sure how to
do it. All of the example I've found seem to be much more complicated than I
need and/or I can't get them to work.
 
Basically, for an unselected
item, I need to display the name property. And for a selected item I need to
display a few other things. So My understanding is that I should use two
different grids, and use the VisualState to turn toggle the visibility of the
"detail" info. Can someone throw me a simple example?


No, you do not use VisualStateManager for this. There are two ways to go about this. If you want to keep your selected item and unselected item template completely separate, you can define two separate DataTemplates (selected & unselected) and swap them out in ListBoxItem via a trigger. It sounds like what would be better in your case is to have a single template where you just collapse visibility on the stuff you don't want to show via a trigger.
AnswerRe: Silverlight listbox selected item template Pin
Abhinav S6-Feb-12 16:29
Abhinav S6-Feb-12 16:29 
Questionhierachical menu Pin
arkiboys6-Feb-12 4:26
arkiboys6-Feb-12 4:26 
AnswerRe: hierachical menu Pin
Abhinav S6-Feb-12 4:40
Abhinav S6-Feb-12 4:40 
GeneralRe: hierachical menu Pin
arkiboys6-Feb-12 5:36
arkiboys6-Feb-12 5:36 
AnswerRe: hierachical menu Pin
Abhinav S6-Feb-12 5:55
Abhinav S6-Feb-12 5:55 
GeneralRe: hierachical menu Pin
arkiboys6-Feb-12 22:37
arkiboys6-Feb-12 22:37 
QuestionPlay DVD Pin
Alessio Elia6-Feb-12 3:52
Alessio Elia6-Feb-12 3:52 
AnswerRe: Play DVD Pin
Alisaunder10-Feb-12 1:10
Alisaunder10-Feb-12 1:10 
QuestionConditional DataBinding to UI Elements Pin
Andy_L_J4-Feb-12 12:40
Andy_L_J4-Feb-12 12:40 
AnswerRe: Conditional DataBinding to UI Elements Pin
SledgeHammer014-Feb-12 13:39
SledgeHammer014-Feb-12 13:39 
GeneralRe: Conditional DataBinding to UI Elements Pin
Andy_L_J4-Feb-12 15:18
Andy_L_J4-Feb-12 15:18 
GeneralRe: Conditional DataBinding to UI Elements Pin
SledgeHammer014-Feb-12 15:54
SledgeHammer014-Feb-12 15:54 
GeneralRe: Conditional DataBinding to UI Elements Pin
Andy_L_J4-Feb-12 17:42
Andy_L_J4-Feb-12 17:42 
AnswerRe: Conditional DataBinding to UI Elements Pin
Mycroft Holmes4-Feb-12 17:00
professionalMycroft Holmes4-Feb-12 17:00 
GeneralRe: Conditional DataBinding to UI Elements Pin
Andy_L_J4-Feb-12 17:48
Andy_L_J4-Feb-12 17:48 
GeneralRe: Conditional DataBinding to UI Elements Pin
Mycroft Holmes4-Feb-12 21:04
professionalMycroft Holmes4-Feb-12 21:04 
GeneralRe: Conditional DataBinding to UI Elements Pin
Andy_L_J4-Feb-12 22:05
Andy_L_J4-Feb-12 22:05 

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.