![]() |
Dynamic XAML |
Post Reply
|
| Author | |
ScottW
Groupie
Joined: 02 August 2005 Status: Offline Points: 82 |
Post Options
Thanks(0)
Quote Reply
Topic: Dynamic XAMLPosted: 18 October 2016 at 7:59pm |
|
My goal here is to have a Recent Items list as part of a larger markup page. The majority of the page is pre-built XAML, but I need to inject the recently used items at runtime. I can get access to the StackPanel that holds the list and add one, but the Hyperlink functionality doesn't work.
In this sample, the first item in the list is in the XAML and I am trying to add a second item that looks and works like the first time. It doesn't take on the hyperlink foreground color and it doesn't fire the events. To duplicate this, create a VB6 form with just a MarkupLabel control named "Markup" and paste in this code:
What am I doing wrong here? Also, not sure how to set the margins on the TextBlock since that property seems to be read-only. 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 |