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!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

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>

</button:SfButton>

<ImageButton WidthRequest=24 HeightRequest=24 ShowIcon="True">

    <ImageButton.Source>

        <FontImageSource Glyph="{StaticResource MaterialMenu}"

              FontFamily="{StaticResource MaterialIcons-Regular}" 

              Color="{StaticResource HeaderIconColor}"/>

    </ImageButton.Source>

</ImageButton>



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.