Permalink
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (21 sloc) 844 Bytes
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Microsoft.Samples.GradientBrushExamples.GradientStopsExample"
WindowTitle="Gradient Stop Examples"
Background="White">
<StackPanel>
<!-- <SnippetTransparentGradientStopExample1XAML> -->
<Rectangle Width="100" Height="100">
<Rectangle.Fill>
<LinearGradientBrush StartPoint="0,0">
<!-- This gradient stop is partially transparent. -->
<GradientStop Color="#200000FF" Offset="0.0" />
<!-- This gradient stop is fully opaque. -->
<GradientStop Color="#FF0000FF" Offset="1.0" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<!-- </SnippetTransparentGradientStopExample1XAML> -->
</StackPanel>
</Page>