[WP 8.1 Universal]在.xaml页面中调用Usercontrol页面时出错 [英] [WP 8.1 Universal] Error when calling a Usercontrol Page in .xaml page

查看:120
本文介绍了[WP 8.1 Universal]在.xaml页面中调用Usercontrol页面时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此错误



无法找到与此错误代码相关联的文字。



无法从文本'%0'创建'%1'。[行:45位置:44]

异常的StackTrace

at Windows.UI.Xaml.Application.LoadComponent(Object component,Uri resourceLocator,ComponentResourceLocation componentResourceLocation)

at OnlineVideos.Views.Details.InitializeComponent()

at OnlineVideos.Views.Details..ctor()

第45行的代码是

Iam getting this error

"The text associated with this error code could not be found.

Failed to create a '%1' from the text '%0'. [Line: 45 Position: 44]"
StackTrace of Exception is
at Windows.UI.Xaml.Application.LoadComponent(Object component, Uri resourceLocator, ComponentResourceLocation componentResourceLocation)
at OnlineVideos.Views.Details.InitializeComponent()
at OnlineVideos.Views.Details..ctor()
My code at line 45 is

<PivotItem x:Name="pvtitmChapters" Header="chapters"><br />
                    <Grid x:Name="chaptersGrid"><br />
                        <LART:ShowChapters x:Name="showChapterList"></LART:ShowChapters><br />
                    </Grid><br />
                </PivotItem>


可以使用ShowChapters和Details文件中的
代码在这一个驱动器链接

一个驱动器链接

推荐答案

我认为问题是LART定义的方式...

应该是

I think the problem is the way LART defined...
it should be
xmlns:LART="clr-namespace:OnlineVideos.UserControls"



insteade of


insteade of

xmlns:LART="using:OnlineVideos.UserControls"



如何:将命名空间导入XAML [ ^ ]


这篇关于[WP 8.1 Universal]在.xaml页面中调用Usercontrol页面时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆