Note that there are some explanatory texts on larger screens.

plurals
  1. POExample using Hyperlink in WPF
    primarykey
    data
    text
    <p>I've seen several suggestions, that you can add hyperlink to WPF application through <code>Hyperlink</code> control.</p> <p>Here's how I'm trying to use it in my code: </p> <pre><code>&lt;Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="BookmarkWizV2.InfoPanels.Windows.UrlProperties" Title="UrlProperties" Height="754" Width="576"&gt; &lt;Grid&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition&gt;&lt;/RowDefinition&gt; &lt;RowDefinition Height="40"/&gt; &lt;/Grid.RowDefinitions&gt; &lt;Grid&gt; &lt;ScrollViewer ScrollViewer.VerticalScrollBarVisibility="Auto" Grid.RowSpan="2"&gt; &lt;StackPanel &gt; &lt;DockPanel LastChildFill="True" Margin="0,5"&gt; &lt;TextBlock Text="Url:" Margin="5" DockPanel.Dock="Left" VerticalAlignment="Center"/&gt; &lt;TextBox Width="Auto"&gt; &lt;Hyperlink NavigateUri="http://www.google.co.in"&gt; Click here &lt;/Hyperlink&gt; &lt;/TextBox&gt; &lt;/DockPanel &gt; &lt;/StackPanel&gt; &lt;/ScrollViewer&gt; &lt;/Grid&gt; &lt;StackPanel HorizontalAlignment="Right" Orientation="Horizontal" Margin="0,7,2,7" Grid.Row="1" &gt; &lt;Button Margin="0,0,10,0"&gt; &lt;TextBlock Text="Accept" Margin="15,3" /&gt; &lt;/Button&gt; &lt;Button Margin="0,0,10,0"&gt; &lt;TextBlock Text="Cancel" Margin="15,3" /&gt; &lt;/Button&gt; &lt;/StackPanel&gt; &lt;/Grid&gt; &lt;/Window&gt; </code></pre> <p>I'm getting following error:</p> <blockquote> <p>Property 'Text' does not support values of type 'Hyperlink'. </p> </blockquote> <p>What am I doing wrong?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload