代码使用超级链接下面写在一个TextBlock
<TextBlock FontFamily="Arial" Width="450"
Text="Posted In" Foreground="Red"
TextAlignment="Left" TextWrapping="Wrap">
<Run Foreground="Red" Text="{Binding CategoryName}"></Run>
<Run Foreground="Red" Text="{Binding CreatedOn}"></Run>
<LineBreak/>
<LineBreak/>
<Run
Foreground="Black"
FontSize="24"
Text="{Binding ArticleDescription}"></Run>
<LineBreak/>
<LineBreak/>
<Run Foreground="Red" Text="Posted By"></Run>
<Run Foreground="Red" Text="{Binding CreatedBy}"></Run>
<Hyperlink Foreground="Red">sadas</Hyperlink>
</TextBlock>
基本上我用这个代码,如果我使用超级链接它的应用程序崩溃。如果我不使用超链接,那么应用程序完全正常工作。我如何在文本块中使用超链接?
错误消息:
错误HRESULT E_FAIL已经从对COM组件的调用返回。
我尝试这两个链接,但应用程序崩溃 – 2014-11-05 10:06:05
链接解决方案是伟大的。显示答案中需要做的事情甚至更好。 http://stackoverflow.com/help/how-to-answer – Florian 2014-11-05 10:08:50