Click here to Skip to main content
       

Silverlight / WPF

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
AnswerRe: WPF TabItem Styling QuestionprotectorPete O'Hanlon30 Dec '12 - 11:40 
GeneralRe: WPF TabItem Styling QuestionmemberKevin Marois30 Dec '12 - 15:16 
QuestionList Item Fore & Back ColorsmemberKevin Marois29 Dec '12 - 7:52 
QuestionMVVM:How to bind the MenuItem Command of ListBoxItem ContextMenu dynamically?memberMember 137073829 Dec '12 - 1:58 
AnswerRe: MVVM:How to bind the MenuItem Command of ListBoxItem ContextMenu dynamically?memberSledgeHammer0129 Dec '12 - 7:22 
GeneralRe: MVVM:How to bind the MenuItem Command of ListBoxItem ContextMenu dynamically?memberMember 137073829 Dec '12 - 15:44 
GeneralRe: MVVM:How to bind the MenuItem Command of ListBoxItem ContextMenu dynamically?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?memberMember 137073829 Dec '12 - 17:00 
GeneralRe: MVVM:How to bind the MenuItem Command of ListBoxItem ContextMenu dynamically?memberSledgeHammer0129 Dec '12 - 17:25 
GeneralRe: MVVM:How to bind the MenuItem Command of ListBoxItem ContextMenu dynamically?memberMember 137073829 Dec '12 - 19:02 
QuestionmmmemberAishwarya aishu28 Dec '12 - 0:44 
AnswerRe: mmmvpRichard MacCutchan28 Dec '12 - 5:59 
GeneralsiverlightmemberAishwarya aishu28 Dec '12 - 0:42 
GeneralRe: siverlightmvpRichard MacCutchan28 Dec '12 - 5:57 
QuestionDataTrigger bind to a Propertymembermbv80023 Dec '12 - 17:01 
AnswerRe: DataTrigger bind to a PropertyprotectorPete O'Hanlon23 Dec '12 - 19:17 
AnswerRe: DataTrigger bind to a PropertymentorWayne Gaylard23 Dec '12 - 19:39 
QuestionWPF Adorner IssuesmvpJohn Simmons / outlaw programmer17 Dec '12 - 10:52 
AnswerRe: WPF Adorner IssuesmemberSledgeHammer0118 Dec '12 - 4:49 
GeneralRe: WPF Adorner IssuesmvpJohn Simmons / outlaw programmer20 Dec '12 - 9:09 
GeneralRe: WPF Adorner IssuesmemberSledgeHammer0121 Dec '12 - 4:50 
QuestionSilverlight Dynamic indexed binding [modified]memberMember 934221816 Dec '12 - 18:02 
QuestionThird Party ControlsmemberKevin Marois11 Dec '12 - 7:22 
AnswerRe: Third Party ControlsmemberMycroft Holmes11 Dec '12 - 12:06 
AnswerRe: Third Party ControlsprotectorPete O'Hanlon11 Dec '12 - 12:43 

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


Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 21 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid