How to bind class properties in XAML of xamarin forms
问题 I have class given as below - public static class ColorResources { public static readonly Color ListTextColor = Color.Blue; } And any xaml file having control like - <Button Text="Create Account" TextColor="#000000" BackgroundColor="ListTextColor" Clicked="btnCreateAcc_clicked"/> Lets Say I want BackgroundColor of button which is declared in my class file. How to make this possible? 回答1: You can do this by declaring a new namespace in your XAML and use it. <ContentPage xmlns="http://xamarin