0

我遇到以下问题:

xaml = @"<Section xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation""><Paragraph><Hyperlink Click=""Hyperlink_OnClick"" NavigateUri=""http://www.google.de"">abc</Hyperlink></Paragraph></Section>";

richtext.Xaml = xaml;

删除整个超链接标签使其再次工作。这里的问题在哪里?整个代码运行良好,直接粘贴到 *.xaml 中。

我得到 System.Xml.XmlException' 和 'System.ArgumentException' 。

4

0 回答 0