You need to create a similar interface - PS What you need to create is darker
Currently using this code for this
<Grid x:Name="WindowsStyle" VerticalAlignment="Top" Height="30"> <Rectangle Fill="#FF303030" RadiusX="10" RadiusY="10" Height="20" VerticalAlignment="Top"> </Rectangle> <Rectangle Fill="#FF303030" Height="10" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="10" Margin="0,0,0,10"> </Rectangle> <Rectangle HorizontalAlignment="Right" Margin="0,0,180,5" Width="10" Height="5" VerticalAlignment="Bottom" Fill="#FF303030"> </Rectangle> <Rectangle HorizontalAlignment="Right" Margin="0,0,180,0" Width="20" Height="10" VerticalAlignment="Bottom" RadiusX="5" RadiusY="5" Fill="#FF3C3C3C" /> <Grid x:Name="WindowsControls" Width="180" HorizontalAlignment="Right"> <Rectangle RadiusX="5" RadiusY="5" Fill="#FF303030"></Rectangle> <Rectangle Fill="#FF303030" Width="5" Height="10" HorizontalAlignment="Right" VerticalAlignment="Bottom"> </Rectangle> </Grid> </Grid>
But, I am sure that there is a way to create this with less resources. How can this be optimized?
Border
's in theGrid
. - EvgeniyZPath
here is an example - VasekBorder
'a - issue it as an answer. - SKProCH 2:58 pm