How to clear the background from a baby phone control window
I have Grid
with a background color. ScrollViewer
- these are the first children Grid
.
ScrollViewer
gets its background in the same way as its parent.
Problem: Background is ScrollViewer
not required, is there a way to get rid of it?
Code:
<Grid x:Name="ContentPanel" Background="Bisque">
<ScrollViewer Height="500" Width="300" BorderBrush="Red" BorderThickness="1">
</ScrollViewer>
</Grid>
I tried to install ScrollViewer Background=Transparent
but didn't work.
source to share
The ScrollViewer has a background Transparent by default , so any color you would set to the Parent (Grid) Background will be the Background color of this
so in your case you will need to set Background as your need for color otherwise it will be transparent. The background color of the Parent (Grid) will appear in its content as it has a Transparent background .
source to share