视觉工作室的应用主题问题
我一直在尝试为AR项目创建一个应用程序,并且得到了类似的UI错误:
错误CS0103
名称“ applicationtheme”在当前上下文中不存在
以打击此错误,我安装了uno.ui软件包并使用了使用Windows.ui.XAML指令,
然后该错误更改并转向此:
错误CS0117
'ApplicationTheme'不包含“ backgroundColor”的定义
定义
public override void LoadView()
{
// Create and add the container views.
View = new UIView() { BackgroundColor = ApplicationTheme.BackgroundColor};
---
---
}
I have been trying to create an App for AR Project and i got the UI Error that goes like:
Error CS0103
The name 'ApplicationTheme' does not exist in the current context
To combat this error i installed the UNO.UI package and used the Using Windows.UI.XAML directive
Then the error changed and turned to this:
Error CS0117
'ApplicationTheme' does not contain a definition for 'BackgroundColor'
I have also attached the code so please help me with this and btw it is a xamarin.ios app
public override void LoadView()
{
// Create and add the container views.
View = new UIView() { BackgroundColor = ApplicationTheme.BackgroundColor};
---
---
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论