1
Vote

Binding text to Link Label

description

Cant we bind the text LinkLabel
 
I did something like this :
<ListBox x:Name="testList">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <ScrollViewer Width="600" VerticalScrollBarVisibility="Auto">
                            <ContentControl>
                                <local:LinkLabel x:Name="MyLinkLabel"
                                     LinkMatchMethod="ByUriAndLinkPattern"
                                     LineBreakElementWidth="600" Text="{Binding}" 
                                                 LinkClick="MyLinkLabel_LinkClick">
 
                                </local:LinkLabel>
                            </ContentControl>
                        </ScrollViewer>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
 
in XAML.cs:
this.testList.ItemsSource = new List<String> {
"1 [link="IAClick"]click here[/link].",
"2 [link="IAClick"]click here[/link].",
"3 [link="IAClick"]click here[/link]." };
 
 
And I dont see hyperlinks added
PFA screenshot
 
Can any one suggest , How i can fix this?

file attachments

comments