Print Page | Close Window

Hyperlink in a ListBox

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


Topic: Hyperlink in a ListBox
Posted By: vjedlicka
Subject: Hyperlink in a ListBox
Date Posted: 07 May 2012 at 5:29am
Is it possible to add a hyperlink to a ListBox?

I tried to add this

_T("<Hyperlink TextDecorations=''>link</Hyperlink>")

to the MarkupSampleDlg and the item disappeared.

the syntax is:

AddListItem(_T("<Border BorderThickness='2' BorderBrush='Orange' Margin='2' Padding='3'><StackPanel Orientation='Horizontal'>")
_T("<Image Source='10'/>")
_T("<Grid><Grid.ColumnDefinitions><ColumnDefinition Width='Auto'/><ColumnDefinition Width='*'/></Grid.ColumnDefinitions>")
_T("<Grid.RowDefinitions><RowDefinition/><RowDefinition/></Grid.RowDefinitions>")
_T("<TextBlock TextAlignment='Right' FontWeight='Bold' Foreground='Navy' Text='Description:'/>")
_T("<TextBlock TextAlignment='Right' Grid.Row='1' FontWeight='Bold' Foreground='Navy' Text='Current Price:'/>")
_T("<TextBlock Margin='6, 0, 0, 0' Grid.Column='1' Text='Snowboard and bindings'/>")
_T("<Hyperlink TextDecorations=''>link</Hyperlink>")
_T("<TextBlock Margin='6, 0, 0, 0'  Grid.Column='1' Grid.Row='1'  Text='$150'/>")
_T("</Grid></StackPanel></Border>"));


-------------
Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11



Replies:
Posted By: SuperMario
Date Posted: 08 May 2012 at 2:01am
We added markup event support for the next version.



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