How to handel the sub item click in the ThemedLinkMenu


Author
Message
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hey Raymond.

You're welcome! Cool

Raymond Lo
Raymond Lo
StrataFrame Beginner (28 reputation)StrataFrame Beginner (28 reputation)StrataFrame Beginner (28 reputation)StrataFrame Beginner (28 reputation)StrataFrame Beginner (28 reputation)StrataFrame Beginner (28 reputation)StrataFrame Beginner (28 reputation)StrataFrame Beginner (28 reputation)StrataFrame Beginner (28 reputation)
Group: Forum Members
Posts: 18, Visits: 101
Hi Ivan,

    It's work, Thank you very much!

Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hi Raymond.

All your Links and SubLinks will have a Key property. Assign a different one to each of them, and then use them to cacth the ItemClicked:

        Select Case e.Item.Key
            Case "MyKey1"

            Case "MyKey2"

        End Select


Raymond Lo
Raymond Lo
StrataFrame Beginner (28 reputation)StrataFrame Beginner (28 reputation)StrataFrame Beginner (28 reputation)StrataFrame Beginner (28 reputation)StrataFrame Beginner (28 reputation)StrataFrame Beginner (28 reputation)StrataFrame Beginner (28 reputation)StrataFrame Beginner (28 reputation)StrataFrame Beginner (28 reputation)
Group: Forum Members
Posts: 18, Visits: 101
Dear All,

     In the ThemedLinkMenu sample, when Link Menu Style click will diplay two sub item. If user click the sub1 or sub2 how to catch the item click event. please provide the code sample. (I want to know how to apply the subitem in the ThemedLinkMenu and how to detect the click when user clicked)

===========================================

    Private Sub MyThemedLinkMenu_ItemClicked(ByVal sender As System.Object, ByVal e As MicroFour.StrataFrame.UI.Windows.Forms.ThemedLinkMenuClickEventArgs) Handles MyThemedLinkMenu.ItemClicked

        Select Case MyThemedLinkMenu.ActiveItem.Title

         Case "Sub1"
                MsgBox("you click Sub1", MsgBoxStyle.Information, AcceptButton)
                '-- Set the GradientFormHeader detail text to be specific to the active page
                Me.MyGradientFormHeader.DetailText = _PageTitles(Me.PanelManager1.CurrentPageIndex)
            Case "Customers"
                MsgBox("you click customers", MsgBoxStyle.Information, AcceptButton)
            Case "Advanced Usage"
                MsgBox("you click Advanced Usage", MsgBoxStyle.Information, AcceptButton)

        End Select
    End Sub

==========

in this sample, when user click sub1 or sub2 in the subitem I can not catch the user action.

Thanks a lot.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search