Click here to Skip to main content
15,916,463 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: How to enable Context menu for a listbox item. Pin
Aslesh31-Aug-08 20:04
Aslesh31-Aug-08 20:04 
GeneralRe: How to enable Context menu for a listbox item. Pin
User 2710091-Sep-08 5:35
User 2710091-Sep-08 5:35 
GeneralRe: How to enable Context menu for a listbox item. Pin
Aslesh1-Sep-08 5:49
Aslesh1-Sep-08 5:49 
AnswerRe: How to enable Context menu for a listbox item. [modified] Pin
Pete O'Hanlon1-Sep-08 9:45
mvePete O'Hanlon1-Sep-08 9:45 
GeneralRe: How to enable Context menu for a listbox item. Pin
Aslesh2-Sep-08 10:20
Aslesh2-Sep-08 10:20 
GeneralRe: How to enable Context menu for a listbox item. Pin
Pete O'Hanlon2-Sep-08 10:25
mvePete O'Hanlon2-Sep-08 10:25 
GeneralRe: How to enable Context menu for a listbox item. Pin
Aslesh2-Sep-08 10:35
Aslesh2-Sep-08 10:35 
GeneralRe: How to enable Context menu for a listbox item. Pin
Pete O'Hanlon2-Sep-08 10:49
mvePete O'Hanlon2-Sep-08 10:49 
Santhapur - the easy way to do this is to blow the ListBoxItem open a bit. Consider the following bit that replaces the entry in the ListBox section.
<ListBoxItem>
  <ListBoxItem.Content>
    <TextBlock Text="Santhapur">
      <TextBlock.ContextMenu>
        <ContextMenu>
          <MenuItem Header="Send" />
        </ContextMenu>
      </TextBlock.ContextMenu>
    </TextBlock>
  </ListBoxItem.Content>
</ListBoxItem>
That should do it for you. The context menu is now associated with the textblock, which is the list box item.

Deja View - the feeling that you've seen this post before.

My blog | My articles



GeneralRe: How to enable Context menu for a listbox item. Pin
Aslesh2-Sep-08 11:23
Aslesh2-Sep-08 11:23 
GeneralRe: How to enable Context menu for a listbox item. Pin
Pete O'Hanlon2-Sep-08 11:32
mvePete O'Hanlon2-Sep-08 11:32 
GeneralRe: How to enable Context menu for a listbox item. Pin
Aslesh3-Sep-08 7:57
Aslesh3-Sep-08 7:57 
QuestionResources in WPF Pin
ciacia28-Aug-08 2:41
ciacia28-Aug-08 2:41 
AnswerRe: Resources in WPF Pin
User 27100928-Aug-08 4:18
User 27100928-Aug-08 4:18 
GeneralRe: Resources in WPF Pin
Jammer28-Aug-08 6:48
Jammer28-Aug-08 6:48 
GeneralRe: Resources in WPF Pin
Pete O'Hanlon28-Aug-08 8:15
mvePete O'Hanlon28-Aug-08 8:15 
GeneralRe: Resources in WPF Pin
User 27100928-Aug-08 15:27
User 27100928-Aug-08 15:27 
GeneralRe: Resources in WPF Pin
Jammer28-Aug-08 22:37
Jammer28-Aug-08 22:37 
GeneralRe: Resources in WPF Pin
User 27100929-Aug-08 3:50
User 27100929-Aug-08 3:50 
GeneralRe: Resources in WPF Pin
Pete O'Hanlon29-Aug-08 4:06
mvePete O'Hanlon29-Aug-08 4:06 
GeneralRe: Resources in WPF Pin
User 27100929-Aug-08 4:08
User 27100929-Aug-08 4:08 
GeneralRe: Resources in WPF Pin
Pete O'Hanlon29-Aug-08 4:30
mvePete O'Hanlon29-Aug-08 4:30 
GeneralRe: Resources in WPF Pin
Jammer29-Aug-08 12:27
Jammer29-Aug-08 12:27 
GeneralRe: Resources in WPF Pin
Pete O'Hanlon30-Aug-08 9:04
mvePete O'Hanlon30-Aug-08 9:04 
GeneralRe: Resources in WPF Pin
User 27100931-Aug-08 16:16
User 27100931-Aug-08 16:16 
QuestionSugestions on "selecting" WPF cells Pin
Harvey Saayman27-Aug-08 23:39
Harvey Saayman27-Aug-08 23:39 

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.