A question about drawing one more
1. It is a copy that must be thought of;
"Can't copy every time, it's troublesome.
Now we're drawing a rectangle (Rectangle), next time it could be border,grid,stackpanel.
So the copy doesn't work;
2. Write down all these colours.
"It's too much trouble.
Business:
1. Below we will introduce the next canvas interface:
See the top right corner has three flags, respectively: design mode, code mode, split mode
2. Go to code mode look at our previous code:
<usercontrol
Xmlns= "Http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x= "Http://schemas.microsoft.com/winfx/2006/xaml"
Xmlns:d= "http://schemas.microsoft.com/expression/blend/2008"
Xmlns:mc= "http://schemas.openxmlformats.org/markup-compatibility/2006"
Mc:ignorable= "D"
Modified x:class= "Styletest.colorcard"
"640" d:designheight= "d:designwidth=" >
09
<grid x:name= "LayoutRoot" background= "#FF6A6A6A" >
One <rectangle stroke= "Black" height= "the" verticalalignment= "Top" >
<Rectangle.Fill>
<lineargradientbrush endpoint= "0.5,1" startpoint= "0.5,0" >
<gradientstop color= "#FF606060" offset= "0"/>
<gradientstop color= "Black" offset= "1"/>
<gradientstop color= "#FE333333" offset= "0.487"/>
<gradientstop color= "#FE161515" offset= "0.574"/>
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
</Grid>
</UserControl>