I have a problem again. My problem is that I don't know how to store hyperlink in XML file and how to retrive it from there to WPF ListBox. In my application I write XML file in the following way:
<?xml version="1.0" encoding="utf-8" ?>
<Books xmlns="">
<Category name="Computer Programming">
<Book>
<Author>H. Schildt</Author>
<Title>C# 4.0 The Complete Reference</Title>
<!--This is a hyperlink description-->
<Link>https://www.mcgraw-hill.co.uk/html/007174116X.html</Link>
</Book>
</Category>
</Books>
In XAML in Window Resources section I write in the following way:
<Window.Resources>
. . . . . . . . . .
<DataTemplate x:Key="detailDataTemplate">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding XPath=Title}"/>
<TextBlock Text="{Binding XPath=Author}"/>
<TextBlock Text="{Binding XPath=Link}"/>
</StackPanel>
</DataTemplate>
. . . . . . . . . . .
</Window.Resources>
And finally in ListBox markup I write:
<ListBox Name="lbxBooks" Grid.Row="1" Grid.Column="0"
. . . . . . . . . .
ItemTemplate="{StaticResource detailDataTemplate}"
IsSynchronizedWithCurrentItem="True"/>
But after the start of application, the hyperlink is displayed on the screen as simple string that is not enabled and not allowed to mouse click for getting of internet resource with it. So it doesn't work properly as reference to internet resource. It displayed as simple text string. How can I correct this error and force the link to work properly? What do I have to correct in XML file and in XAML for it? I'll appreciate your help very high.