问题描述
大家好,
我想在我的windows phone 8应用程序中添加一个幻灯片菜单。由于我是新手,我感到有些困难实现这一目标。我已经浏览了以下网址并试图在我的应用中实现它。
[]
[]
如果有人已经使用/实现了这个,请分享实现这一目标的步骤。
我试过的......
我有使用包管理器控制台安装slideview并使用以下代码
Hi Everyone,
I want to add a slide menu to my windows phone 8 application.As I am new to this, I am feeling some kind of difficulty in achieving this. I have gone through the following url and tried to implement it in my app.
slideview[^]
nuget[^]
If anyone have already used / implemented this, please share the steps to achieve this.
What I have tried....
I have installed "slideview" using package manager console with following code
Install-Package SlideView
然后在app.xaml中添加以下代码
Then added the following code in app.xaml
<Application.RootVisual>
<library:SlideApplicationFrame Header="ManageIT"
Background="White">
<!--<library:SlideApplicationFrame.LeftContent>
<pages:LeftView />
</library:SlideApplicationFrame.LeftContent>-->
<!--<library:SlideApplicationFrame.RightContent>
<pages:RightView />
</library:SlideApplicationFrame.RightContent>-->
</library:SlideApplicationFrame>
</Application.RootVisual>
现在我有以下构建错误...
Now I have following build errors...
Error 1 Nested properties are not supported: Application.RootVisual.
Error 2 The attachable property 'RootVisual' was not found in type 'Application'.
Error 3 Unexpected PROPERTYELEMENT in parse rule PropertyElement ::= . PROPERTYELEMENT Content? ENDTAG..
更新
我已经撤消了上述更改,并在使用包管理器控制台安装slideview后在mainpage.xaml中添加了以下内容
Update
I have undone the above change and added the following in mainpage.xaml after installing slideview using package manager console
<controls:SlideView>
<Grid background="Teal"
Width="400" />
<Grid background="Tomato" />
<Grid background="LightYellow" />
<Grid background="YellowGreen"
Width="400"/>
</controls:SlideView>
但我有另外一组构建错误,如下所示......
But I have another set of build errors as follows...
Error 1 The namespace prefix "controls" is not defined.
Error 2 SlideView is not supported in a Silverlight project.
Error 3 The namespace prefix "controls" is not defined.
Error 4 The type 'controls:SlideView' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
谢谢&问候
Sebastian
Thanks & regards
Sebastian
推荐答案
这篇关于在Windows Phone 8中实现slideview控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!