![]() |
Hyperlink-Click Event in Markups |
Post Reply ![]() |
Author | |
Jebo ![]() Senior Member ![]() Joined: 27 October 2005 Location: Germany Status: Offline Points: 318 |
![]() ![]() ![]() ![]() ![]() Posted: 03 September 2008 at 2:58pm |
Thank you for Beta 12.1
But how do I use now the Args parameter in the Click event?
Public Sub Click(ByVal Sender As Object, ByVal Args As Object) ...??? End Sub I can't find a sample or some explanation in the "markupguide.chm".
I found only this:
Public Sub Hyperlink_Click(Reserved1 As Object, Reserved2 As Object)
MsgBox "Clicked" End Sub Private Sub Form_Load()
Label1.EnableMarkup = True Label1.MarkupContext.SetMethod Me, "Hyperlink_Click" Label1.Caption = "<TextBlock>Click <Hyperlink Click='Hyperlink_Click'>" & _ "this</Hyperlink> link</TextBlock>" End Sub But how does it work now?
THANK YOU FOR HELP!!!
|
|
![]() |
|
Jebo ![]() Senior Member ![]() Joined: 27 October 2005 Location: Germany Status: Offline Points: 318 |
![]() ![]() ![]() ![]() ![]() |
Hello,
please any help? ;-(
|
|
![]() |
|
tobi ![]() Senior Member ![]() ![]() Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
![]() ![]() ![]() ![]() ![]() |
seems Oleg is on holidays
![]() |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Yes, I was :)
Jebo, there is new \Common\VB\MarkupSample sample.
Public Sub HyperClick(ByVal Sender As MarkupObject, ByVal Args As MarkupRoutedEventArgs)
MsgBox "Click" End Sub |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Jebo ![]() Senior Member ![]() Joined: 27 October 2005 Location: Germany Status: Offline Points: 318 |
![]() ![]() ![]() ![]() ![]() |
Hi Oleg,
OK, but "HOW" do I interpret this both parameters (MarkupObject + MarkupRoutedEventArgs)?
Because I've many Links in my Label-Control and now I must detect which of my Links was clicked!!!
So I need something like This:
Msgbox "Clicked: " & sender.name & " / " & Args.Event.Name & " / " & Args.Source
But i seems, that ONLY "Args.Event.Name" will work and will tell me only "Ckick"!
![]() For all the other ones a error will occurs!!!
|
|
![]() |
|
Jebo ![]() Senior Member ![]() Joined: 27 October 2005 Location: Germany Status: Offline Points: 318 |
![]() ![]() ![]() ![]() ![]() |
...and do I also "need" the new MarkupLabel-control or is this control optional?
Because if I don't put the MarkupLabel-control to my project, there is now "MarkupObject" "MarkupRoutedEventArgs" objects in my project?
|
|
![]() |
|
Jebo ![]() Senior Member ![]() Joined: 27 October 2005 Location: Germany Status: Offline Points: 318 |
![]() ![]() ![]() ![]() ![]() |
Can Anybody give me a hint?
I feel me realy confused about the new Markup-Events!
PLEASE HELP!!!
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Here sample: Markup.zip
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Jebo ![]() Senior Member ![]() Joined: 27 October 2005 Location: Germany Status: Offline Points: 318 |
![]() ![]() ![]() ![]() ![]() |
Ahhh, I understand now, "Hyperlink Tag" is the right way!
BIG THX!!!
![]() |
|
![]() |
|
Moonlite ![]() Newbie ![]() Joined: 19 January 2008 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
hi, Oleg. i'm trying to convert your sample to C# but always get error. do i miss something? thanks.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |