Welcome to the Xamarin.Forms feedback portal. We’re happy you’re here! If you have feedback on how to improve the Xamarin.Forms, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Hi I wanted to use SfButton in place of ImageButton,
my use context requires a FontImageSource to be used, displaying a Glyph, centered in the button.
I have noticed also that SfButton lacks
This is the code used for ImageButton and SfButton:
<button:SfButton WidthRequest=24 HeightRequest=24 ShowIcon="True">
<button:SfButton.ImageSource>
<FontImageSource Glyph="{StaticResource MaterialMenu}"
FontFamily="{StaticResource MaterialIcons-Regular}"
Color="{StaticResource HeaderIconColor}"/>
</button:SfButton.ImageSource>
<ImageButton WidthRequest=24 HeightRequest=24 ShowIcon="True">
<ImageButton.Source>
<FontImageSource Glyph="{StaticResource MaterialMenu}"
FontFamily="{StaticResource MaterialIcons-Regular}"
Color="{StaticResource HeaderIconColor}"/>
</ImageButton.Source>
With SfButton instead the FontIcon is rendered to the side and ignores the ImageAlignment setting, also, the ImageAlignment setting, should have a center value ideally.