Forum Visual Studio

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Visual Studio in Portuguese generating ContentPage derived from ContentView

When adding a new ContentPage element in MS Visual Studio (in its version translated to Portuguese) it generates the class derived from ContentView (instead of ContentPage).

C# code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Xamarin.Forms;
using Xamarin.Forms.Xaml;

namespace XimerinElementsApp.Views
{
    [XamlCompilation(XamlCompilationOptions.Compile)]
    public partial class View1 : ContentView
    {
        public View1()
        {
            InitializeComponent();
        }
    }
}

XAML code:

<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:d="http://xamarin.com/schemas/2014/forms/design"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             x:Class="XimerinElementsApp.Views.View1">
    <ContentView.Content>
        <StackLayout>
            <Label Text="Welcome to Xamarin.Forms!"/>
        </StackLayout>
    </ContentView.Content>
</ContentView>

This only happens in Visual Studio in Portuguese. When I install Visual Studio in English, it generates classes correctly inherited from ContentPage. Am I facing a bug related to the language or am I doing something wrong?

Best Answer

Answers

Sign In or Register to comment.