Hello,
Welcome to our Microsoft Q&A platform!
get the errormessage "cannot resolve type MyClass1.MyClass2"
When using a nested type in xaml, please using MyAssembly.MyClass+MyOtherClass
style instead.
Here is the sample code, you could refer to it.
<Setter Property="BackgroundColor" Value="{x:Static e:MyClass1+MyClass2.Blau}">
Similar issue case: https://stackoverflow.com/questions/48080481/xamarin-xaml-xstatic-reference-to-property-in-a-nested-class
Best Regards,
Jarvan Zhang
If the response is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.