Migrating from Xamarin Button to .NET MAUI Button
11 Aug 20261 minute to read
To migrate easier from Xamarin Button to .NET MAUI Button, we kept most of the APIs from Xamarin Button in .NET MAUI Button. However, to maintain the consistency of the API naming in .NET MAUI Button, we renamed some of the APIs. The APIs changed in .NET MAUI Button from Xamarin Button are detailed as follows:
Namespaces
| Xamarin Button | .NET MAUI Button |
|---|---|
| Syncfusion.XForms.Buttons | Syncfusion.Maui.Buttons |
Properties
| Xamarin Button | .NET MAUI Button | Description |
|---|---|---|
| Gets or sets the stroke thickness. | ||
| Gets or sets the color of the border. | ||
| Gets or sets the background image in Button. | ||
| Gets or sets the image size in Button. |
Known Issues
The gradient colors used as a background are not functioning as expected because of a framework-level issue. This issue is specifically related to the incorrect rendering of gradient color on iOS and macOS when clipping a view. Refer to this link for more details.