私はこのコードを持っており、このエラーが表示されます。タイプ 'System.String'のオブジェクトをタイプ 'Xamarin.Forms.View'に変換できません
'System.String'タイプのオブジェクトは 'Xamarin.Forms.View'タイプに変換できません。
XAML:私はStackLayout内にあるプレーンテキストを削除する場合
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="Project1.Page1">
<ContentPage.Content>
<StackLayout>
<Label Text="Text"></Label>
Some text here
<Editor Text="I am an Editor" />
</StackLayout>
</ContentPage.Content>
</ContentPage>
をテキストを変更してください。完全なXAMLを表示する –
Okeyが更新されましたd。 –
Page1.xaml.csのContentPageを継承していますか? –