本文介绍了[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文件中的
代码在这一个驱动器链接

推荐答案

xmlns:LART="clr-namespace:OnlineVideos.UserControls"



insteade of


insteade of

xmlns:LART="using:OnlineVideos.UserControls"



[]


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

09-27 13:22