Quantcast
Viewing all articles
Browse latest Browse all 18858

property content is set more than once

Am actually new to wpf, I tried using hyperlink on wpf following a process i saw from someone but I am getting this error from my code. 

Error: "The property 'Content' is set more than once"

Code:

<Window x:Class="mee.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
        xmlns:justtrail="clr-namespace:justtrail;assembly=justtrail"
    >
    <Grid>
        <justtrail:LinkLabel HorizontalAlignment="Left" VerticalAlignment="Top" Content="LinkLabel"/>
        <TextBlock Height="20" HorizontalAlignment="Left" Margin="16,10,0,0" Name="textBlock1" VerticalAlignment="Top" Width="97" >
            <Hyperlink>
                <Run Text="login"/>
            </Hyperlink>
        </TextBlock>
    </Grid>
</Window>



Viewing all articles
Browse latest Browse all 18858

Trending Articles