Ich habe den Fehler gefunden!!
War ja klar.. Da sucht man den komplette Tag nach dem Fehler und sobald man einmal nach Hilfefragt kommt man selbst auf die Lösung :D :D
In der "MyPagePage.xaml" datei war in dem Verweis auf die Klasse ein Fehler
Falsch:
<?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="MyApp.Views.MyPage"
xmlns:vm="clr-namespace:MyApp.ViewModels"
Title="{Binding Title}">
<ContentPage.BindingContext>
<vm:MyPageViewModel />
</ContentPage.BindingContext>
<ContentPage.Resources>
<ResourceDictionary>
<Color x:Key="Accent">#96d1ff</Color>
</ResourceDictionary>
</ContentPage.Resources>
<ContentPage.Content>
<StackLayout>
<Label Text="Hello Xamarin.Forms!"
TextColor="{StaticResource Primary}"/>
</StackLayout>
</ContentPage.Content>
</ContentPage>
Richtig:
<?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="MyApp.Views.MyPagePage"
xmlns:vm="clr-namespace:MyApp.ViewModels"
Title="{Binding Title}">
<ContentPage.BindingContext>
<vm:MyPageViewModel />
</ContentPage.BindingContext>
<ContentPage.Resources>
<ResourceDictionary>
<Color x:Key="Accent">#96d1ff</Color>
</ResourceDictionary>
</ContentPage.Resources>
<ContentPage.Content>
<StackLayout>
<Label Text="Hello Xamarin.Forms!"
TextColor="{StaticResource Primary}"/>
</StackLayout>
</ContentPage.Content>
</ContentPage>