a/buttone/3 :clock3:help wantedinactivep/Androidt/bug :bug:up-for-grabs
仓库指标
- 星标
- (5,644 个星标)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
Description
The Image is not in the center on Button when displaying with a text.
Steps to Reproduce
- Create a Button with an image & text.
- Set thee HorizontalOption to Fill&Expand.
- You can see that the image is stick to the left border
- If you change the position(Top,Right...) of the image it will stick on the position selected, not centered with the text
Expected Behavior
The image have to stick the text on the center.
Actual Behavior
The Image is stick to the border depends of the selected position. I was searching a way to make a correction on UpdateBitmap But PropertyName "Image" never pass to UpdateBitmap
protected override void OnElementPropertyChanged(object sender, PropertyChangedEventArgs e)
{
if (e.PropertyName == Button.TextProperty.PropertyName)
UpdateBitmap();
base.OnElementPropertyChanged(sender, e);
}
Basic Information
- Xamarin.Forms: 3.1.0.697729
- Android: 8.1