简体   繁体   中英

Can't add Label on Image with using Xamarin.forms?

I'm making iOS and Android app with using Xamarin.forms.

Can't I add Label on the Image?

Of course I know using many layout styles. But that question is what I want to ask.

No you can't.

Xamarin.Forms Image don't have Text property.

The only option is to use a Image and a Label or create a CustomView for that.


ImageCell is a type of Cell to be used in List . Using a table with one row could offer you the visual aspect you need but, its not event an good solution.

Android only Note: On Android a Label could have and Drawable on left, right, top and bottom. So if you were targeting only Android you could have a custom render for the Label that adds the image.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM