Wednesday, April 11, 2012

How to add hyperlinkbuttons dynamically from c# codebehind to a stackpanel present in the listbox?

Hi i have a requirement i need your suggestion's and guidance for it:-



I have a set of phone numbers of type string separated by a comma , now i want to assign each phone number to hyperlink and on click of it will invoke the PhoneCallTask and make a call to that particular phone number.



1) So , how to assign each phone number to a hyperlink(should we dynamically generate the hyperlink? in c# codebehind)



2)if so , how to dynamically generate hyperlink buttons and add it to a stack panel present in a listbox ?



3)How would i know which Hyperlinkbutton is clicked?



4)All HyperlinkButton's would point to same hyperlink click event?



Thanks in Advance.





No comments:

Post a Comment