मेरे पास यह कोड है और मुझे यह त्रुटि मिलती है, मैं इसे कैसे ठीक कर सकता हूं?'System.String' प्रकार का ऑब्जेक्ट 'Xamarin.Forms.View' टाइप करने के लिए परिवर्तित नहीं किया जा सकता है
'System.String' प्रकार का ऑब्जेक्ट 'Xamarin.Forms.View' प्रकार में परिवर्तित नहीं किया जा सकता है।
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" x:Class="Project1.Page1">
<ContentPage.Content>
<StackLayout>
<Label Text="Text"></Label>
Some text here
<Editor Text="I am an Editor" />
</StackLayout>
</ContentPage.Content>
</ContentPage>
के लिए पाठ बदलने कृपया अपना पूरा एक्सएएमएल –
ओके अपडेट करें घ। –
क्या आप अपने पेज 1.xaml.cs पर ContentPage से विरासत में हैं? –