A Microsoft framework for building cross-platform mobile apps using .NET and C# with native performance and user interfaces.
Hello,
Welcome to our Microsoft Q&A platform!
The Brush library is currently experimental in Xamarin.Forms and can only be used by setting the Brush_Experimental flag. Please add the flag on each platform project.
For example on Android:
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
protected override void OnCreate(Bundle savedInstanceState)
{
...
Forms.SetFlags(new string[] { "Brush_Experimental" });
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
LoadApplication(new App());
}
}
Tutorial:
https://learn.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/brushes/
Best Regards,
Jarvan Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
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.