Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - How to set a handler for a hyperlink click event
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to set a handler for a hyperlink click event

 Post Reply Post Reply
Author
Message
Jörk1960 View Drop Down
Newbie
Newbie
Avatar

Joined: 06 April 2023
Location: Remscheid
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jörk1960 Quote  Post ReplyReply Direct Link To This Post Topic: How to set a handler for a hyperlink click event
    Posted: 06 April 2023 at 5:20am
I am using c# and have a xaml like this:
<Border
xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml' Padding="5" BorderThickness="1,1,1,1" BorderBrush="#FF8A9596" >
<ScrollViewer HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" >
<StackPanel x:Name='ReferenceList' Orientation='Vertical'>
<TextBlock>
<Hyperlink Cursor='Hand' Tag='https://pc12345.test.com:50025/showID/?key=12345' Click='HyperlinkClicked'>Attachment 1</Hyperlink>
</TextBlock>
</StackPanel>
</ScrollViewer>
</Border>
I have no form around. I just read the xaml into a MarkupLabel.
How can I set with context.SetHandler the HyperlinkClicked function or at least how can I debug into ocx to see what it is doing there?


Hint: With the MarkupPad Example it is working as I want but MarkupPad has a Form around....
I am showing the xaml in an external application  like Deplhi via Ole application interface.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.