【发布时间】:2018-02-18 14:44:30
【问题描述】:
我正在尝试在我的 XAML 中使用资源文件。出于某种原因,我不断收到找不到类型Texts 的错误。不知道我在这里做错了什么。
XAML
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:CashRegisterApp.Resources"
x:Class="CashRegisterApp.Start">
<ContentPage.Content>
<StackLayout
VerticalOptions="CenterAndExpand"
HorizontalOptions="CenterAndExpand" >
<Label Text="{x:Static local:Texts.Start}"/>
</StackLayout>
</ContentPage.Content>
</ContentPage>
RESX
解决方案浏览器
【问题讨论】:
标签: xaml xamarin xamarin.forms resx