How to use images before hyperlink button in Silverlight?
WPF
3
Posts
2
Posters
0
Views
1
Watching
-
-
I want to create a list of hyperlink buttons, and the bulleted list should contain some images before the link. For example > how > can > i > get > this So in place of ">" i need different images, how can i do that in Silverlight? Thanks in advance,
Here's one way:
<HyperlinkButton NavigateUri="http://www.microsoft.com" TargetName="\_blank" > <StackPanel Orientation="Horizontal"> <Image Source="myresourceimage.png" /> <TextBlock Text="Microsoft" /> </StackPanel> </HyperlinkButton>
You could also make your own custom HyperlinkButton: HyperlinkButton Styles and Templates[^] Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Here's one way:
<HyperlinkButton NavigateUri="http://www.microsoft.com" TargetName="\_blank" > <StackPanel Orientation="Horizontal"> <Image Source="myresourceimage.png" /> <TextBlock Text="Microsoft" /> </StackPanel> </HyperlinkButton>
You could also make your own custom HyperlinkButton: HyperlinkButton Styles and Templates[^] Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: