User Tools

Site Tools


notes:uwp:gradient

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
notes:uwp:gradient [2017/01/13]
admin
notes:uwp:gradient [2017/01/13] (current)
admin
Line 10: Line 10:
  
 {{uwp_Gradient3.png}} {{uwp_Gradient3.png}}
 +
 +<code xml>
 +<!-- gradient defined directly in an element-->​
 +<​Rectangle Width="​300"​ Height="​200">​
 +    <​Rectangle.Fill>​
 +        <​LinearGradientBrush StartPoint="​0.5,​0"​ EndPoint="​0.5,​1">​
 +            <​GradientStop Color="​Red"​ Offset="​0"​ />
 +            <​GradientStop Color="​Yellow"​ Offset="​0.4"​ />
 +            <​GradientStop Color="​Green"​ Offset="​0.6"​ />
 +            <​GradientStop Color="​Blue"​ Offset="​1"​ />
 +        </​LinearGradientBrush>​
 +    </​Rectangle.Fill>​
 +</​Rectangle>​
 +</​code>​
  
 <code xml> <code xml>
Line 26: Line 40:
 </​Grid>​ </​Grid>​
 </​code>​ </​code>​
- 
-<code xml> 
-<!-- gradient defined directly in an element-->​ 
-<​Rectangle Width="​300"​ Height="​200">​ 
-    <​Rectangle.Fill>​ 
-        <​LinearGradientBrush StartPoint="​0.5,​0"​ EndPoint="​0.5,​1">​ 
-            <​GradientStop Color="​Red"​ Offset="​0"​ /> 
-            <​GradientStop Color="​Yellow"​ Offset="​0.4"​ /> 
-            <​GradientStop Color="​Green"​ Offset="​0.6"​ /> 
-            <​GradientStop Color="​Blue"​ Offset="​1"​ /> 
-        </​LinearGradientBrush>​ 
-    </​Rectangle.Fill>​ 
-</​Rectangle>​ 
-</​code>​ 
- 
  
  
notes/uwp/gradient.txt ยท Last modified: 2017/01/13 by admin