Print Page | Close Window

How to set a handler for a hyperlink click event

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=24378
Printed Date: 21 November 2024 at 10:19pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to set a handler for a hyperlink click event
Posted By: Jörk1960
Subject: How to set a handler for a hyperlink click event
Date Posted: 06 April 2023 at 5:20am
I am using c# and have a xaml like this:
<Border
xmlns=' http://schemas.microsoft.com/winfx/2006/xaml/presentation" rel="nofollow - http://schemas.microsoft.com/winfx/2006/xaml/presentation '
xmlns:x=' http://schemas.microsoft.com/winfx/2006/xaml" rel="nofollow - 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://pc01179.coi.com:50025/showID/?key=12345" rel="nofollow - 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.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net