Click here to Skip to main content
       

Silverlight / WPF

 
Questionbeginner : binding ListBox PinmemberdominioYP26-Sep-12 5:05 
AnswerRe: beginner : binding ListBox PinprotectorPete O'Hanlon26-Sep-12 5:26 
GeneralRe: beginner : binding ListBox PinmemberdominioYP26-Sep-12 6:41 
GeneralRe: beginner : binding ListBox PinmemberdominioYP28-Sep-12 6:38 
Questionbeginner : listView, add scrollBar PinmemberdominioYP26-Sep-12 4:50 
QuestionTrying to set focus on DataGrid with DataGridTemplateColumn Pinmemberabollmeyer23-Sep-12 4:44 
AnswerRe: Trying to set focus on DataGrid with DataGridTemplateColumn Pinmemberabollmeyer24-Sep-12 15:13 
QuestionOn ContextMenu MouseLeave PinmemberKenneth Haugland21-Sep-12 4:46 
I have a custom user control that inherits FrameWorkElement and draws some custom shapes on a canvas. I added this code to get the context menus for the item:
Sub New()
        
        ......
        
        Dim contextmenu As New ContextMenu()
        Dim mi As New MenuItem()
        Dim mia As New MenuItem()
        mi.Header = ("Item 1")
        contextmenu.Items.Add(mi)
        mia.Header = ("Item 2")
        contextmenu.Items.Add(mia)
        AddHandler contextmenu.MouseLeave, AddressOf CloseContextmenu
        Me.ContextMenu = (contextmenu)
End Sub
 
    Private Sub CloseContextmenu(ByVal sender As Object, ByVal e As Input.MouseEventArgs)
        Me.ContextMenu.IsOpen = False
    End Sub
Which does close the contextmenu, but not when you leave the menu, only when you click outside the contextmenu. My question is has anybody managed to close the contextmenu on mouse leave?
AnswerRe: On ContextMenu MouseLeave PinmemberKenneth Haugland21-Sep-12 14:42 
QuestionWPF DataGrid Not SHowing Any Data PinmemberKevin Marois20-Sep-12 12:30 
AnswerRe: WPF DataGrid Not SHowing Any Data [modified] PinmemberKenneth Haugland20-Sep-12 12:47 
GeneralRe: WPF DataGrid Not SHowing Any Data PinprotectorPete O'Hanlon20-Sep-12 12:59 
GeneralRe: WPF DataGrid Not SHowing Any Data PinmemberKenneth Haugland20-Sep-12 13:10 
AnswerRe: WPF DataGrid Not SHowing Any Data PinprotectorPete O'Hanlon20-Sep-12 13:01 
GeneralRe: WPF DataGrid Not SHowing Any Data PinmemberKevin Marois20-Sep-12 14:23 
GeneralRe: WPF DataGrid Not SHowing Any Data PinprotectorPete O'Hanlon20-Sep-12 14:58 
Questionstackedbarseries chart: change the axes display Pinmemberashlyacht19-Sep-12 11:03 
Question[XML] XML binding PinmemberJayme6519-Sep-12 8:10 
Questionplay streaming videos from internet in wpf Pinmembersudeep kushwaha17-Sep-12 19:31 
AnswerRe: play streaming videos from internet in wpf PinmemberMycroft Holmes17-Sep-12 21:05 
QuestionItemsControl with Horizontal orientation [modified] PinmemberKenneth Haugland17-Sep-12 8:25 
AnswerRe: ItemsControl with Horizontal orientation PinmvpAbhinav S17-Sep-12 8:49 
AnswerRe: ItemsControl with Horizontal orientation PinmemberKenneth Haugland17-Sep-12 9:04 
GeneralRe: ItemsControl with Horizontal orientation PinmvpAbhinav S17-Sep-12 18:25 
GeneralRe: ItemsControl with Horizontal orientation PinmemberKenneth Haugland17-Sep-12 21:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web03 | 2.8.141223.1 | Last Updated 23 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid