(Windows Phone项目)我尝试创建一个场景,用户将单击一个文本并显示一个xaml页面。 该文本被称为“条款和条件”。XamlParerException:尝试将文本链接到Xaml页面
Event code for the text component
private void MouseEnter_Agent(object sender, System.Windows.Input.KeyEventArgs e)
{
this.NavigationService.Navigate(new Uri("/AgentTerms.xaml", UriKind.Relative));
}
XAML中界面代码
<TextBlock TextWrapping="Wrap" Height="30" Foreground="Red" MouseEnter="MouseEnter_Agent">
<Underline>
<Run Text="Read JizAgent Terms and Conditions"/>
</Underline>
<LineBreak/>
<Run/>
</TextBlock>
我得到的错误,当我点击文本 - XamlParerException
您正在使用哪种XAML实现(例如WPF,WinRT XAML)? –
它适用于Windows Phone。 – user3302974