@ -14,7 +14,8 @@ namespace XamarinStudy
InitializeComponent();
DependencyService.Register<MockDataStore>();
MainPage = new AppShell();
//MainPage = new AppShell();
MainPage = new SampleContentPage();
}
protected override void OnStart()
@ -0,0 +1,14 @@
<?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="XamarinStudy.Views.SampleContentPage">
<ContentPage.Content>
<StackLayout>
<Label Text="Hello, This is Xamarin!"
VerticalOptions="CenterAndExpand"
HorizontalOptions="CenterAndExpand"
FontSize="Small"
TextColor="OrangeRed"/>
</StackLayout>
</ContentPage.Content>
</ContentPage>
@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace XamarinStudy.Views
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class SampleContentPage : ContentPage
public SampleContentPage()
@ -9,4 +9,10 @@
<PackageReference Include="Xamarin.Forms" Version="5.0.0.2196" />
<PackageReference Include="Xamarin.Essentials" Version="1.7.0" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Views\SampleContentPage.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
</Project>