Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Is it possible to set Opacity only for Parent Layout and not for Child elements?

$
0
0

Hi,

What I'm trying to accomplish here is to have e.g. StackLayout with BackgroundColor and Opacity that contains Label with solid, not transparent, text.

I'm aware of the way that Opacity works, described in documentation, but I was wondering if there is some kind of workaround for this since this is not so uncommon situation.

I had an idea not to place Label inside StackLayout but to put them both as Children of another container and to overlap them, but I need transparent background to dynamically resize when Label text quantity changes, that is when there is more or less text rows.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>