Button simpleButton = new Button { Text = "Click me" };
Button customButton = new Button { Text = "Submit", BackgroundColor = Color.Red, TextColor = Color.White, FontSize = 24 };This code creates a button with a red background, white text, and a font size of 24. Package library: Xamarin.Forms.