berry wer
berry wer

Reputation: 647

How to remove my Grid corners

My Grid:

<Grid HorizontalAlignment="Center" Height="65" Margin="0,0,0,0" VerticalAlignment="Center" Width="352" Background="Gray">
    <Border BorderBrush="#FF000000" BorderThickness="1,1,1,1" CornerRadius="8,8,8,8"/>
</Grid>

enter image description here

How to make my corners transparent ?

Upvotes: 2

Views: 55

Answers (1)

KarmaEDV
KarmaEDV

Reputation: 1691

Set the background on the border and put the border around the Grid

<Border BorderBrush="#FF000000" Height="65" Width="352" 
    BorderThickness="1,1,1,1" CornerRadius="8,8,8,8" Background="Gray">
    <Grid HorizontalAlignment="Center" Margin="0,0,0,0"  VerticalAlignment="Center" />
</Border>

Upvotes: 2

Related Questions