Click here to Skip to main content
12,299,851 members (54,146 online)

Silverlight / WPF

 
QuestionWPF TabItem Styling Question Pin
Kevin Marois30-Dec-12 11:16
memberKevin Marois30-Dec-12 11:16 
AnswerRe: WPF TabItem Styling Question Pin
Pete O'Hanlon30-Dec-12 11:40
protectorPete O'Hanlon30-Dec-12 11:40 
GeneralRe: WPF TabItem Styling Question Pin
Kevin Marois30-Dec-12 15:16
memberKevin Marois30-Dec-12 15:16 
QuestionList Item Fore & Back Colors Pin
Kevin Marois29-Dec-12 7:52
memberKevin Marois29-Dec-12 7:52 
QuestionMVVM:How to bind the MenuItem Command of ListBoxItem ContextMenu dynamically? Pin
Member 137073829-Dec-12 1:58
memberMember 137073829-Dec-12 1:58 
AnswerRe: MVVM:How to bind the MenuItem Command of ListBoxItem ContextMenu dynamically? Pin
SledgeHammer0129-Dec-12 7:22
memberSledgeHammer0129-Dec-12 7:22 
GeneralRe: MVVM:How to bind the MenuItem Command of ListBoxItem ContextMenu dynamically? Pin
Member 137073829-Dec-12 15:44
memberMember 137073829-Dec-12 15:44 
GeneralRe: MVVM:How to bind the MenuItem Command of ListBoxItem ContextMenu dynamically? Pin
SledgeHammer0129-Dec-12 16:26
memberSledgeHammer0129-Dec-12 16:26 
Oh... I see what you are asking. Yeah, you're doing it wrong in both cases. You should use the ItemsSource property of the listbox to set the collection of items. There is no need to use the ItemTemplate if all you are doing is showing a TextBlock as that is the default behavior. You should specify the context menu on the ListBoxItem, not the TextBlock. Then you can use {Binding} to pass in the item itself, but it will not be necessary as the sender will be the item.
GeneralRe: MVVM:How to bind the MenuItem Command of ListBoxItem ContextMenu dynamically? Pin
Member 137073829-Dec-12 17:00
memberMember 137073829-Dec-12 17:00 
GeneralRe: MVVM:How to bind the MenuItem Command of ListBoxItem ContextMenu dynamically? Pin
SledgeHammer0129-Dec-12 17:25
memberSledgeHammer0129-Dec-12 17:25 
GeneralRe: MVVM:How to bind the MenuItem Command of ListBoxItem ContextMenu dynamically? Pin
Member 137073829-Dec-12 19:02
memberMember 137073829-Dec-12 19:02 
Questionmm Pin
Aishwarya aishu28-Dec-12 0:44
memberAishwarya aishu28-Dec-12 0:44 
AnswerRe: mm Pin
Richard MacCutchan28-Dec-12 5:59
mvpRichard MacCutchan28-Dec-12 5:59 
Generalsiverlight Pin
Aishwarya aishu28-Dec-12 0:42
memberAishwarya aishu28-Dec-12 0:42 
GeneralRe: siverlight Pin
Richard MacCutchan28-Dec-12 5:57
mvpRichard MacCutchan28-Dec-12 5:57 
QuestionDataTrigger bind to a Property Pin
mbv80023-Dec-12 17:01
membermbv80023-Dec-12 17:01 
AnswerRe: DataTrigger bind to a Property Pin
Pete O'Hanlon23-Dec-12 19:17
protectorPete O'Hanlon23-Dec-12 19:17 
AnswerRe: DataTrigger bind to a Property Pin
Wayne Gaylard23-Dec-12 19:39
mentorWayne Gaylard23-Dec-12 19:39 
QuestionWPF Adorner Issues Pin
John Simmons / outlaw programmer17-Dec-12 10:52
mvpJohn Simmons / outlaw programmer17-Dec-12 10:52 
AnswerRe: WPF Adorner Issues Pin
SledgeHammer0118-Dec-12 4:49
memberSledgeHammer0118-Dec-12 4:49 
GeneralRe: WPF Adorner Issues Pin
John Simmons / outlaw programmer20-Dec-12 9:09
mvpJohn Simmons / outlaw programmer20-Dec-12 9:09 
GeneralRe: WPF Adorner Issues Pin
SledgeHammer0121-Dec-12 4:50
memberSledgeHammer0121-Dec-12 4:50 
QuestionSilverlight Dynamic indexed binding Pin
Member 934221816-Dec-12 18:02
memberMember 934221816-Dec-12 18:02 
QuestionThird Party Controls Pin
Kevin Marois11-Dec-12 7:22
memberKevin Marois11-Dec-12 7:22 
AnswerRe: Third Party Controls Pin
Mycroft Holmes11-Dec-12 12:06
memberMycroft Holmes11-Dec-12 12:06 

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.


Advertise | Privacy | Mobile
Web01 | 2.8.160525.2 | Last Updated 26 May 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid