Slow and steady Silverlight (9)

Source: Internet
Author: User
Tags xmlns silverlight

Slow-moving Silverlight (9)-2.0 Brush Solidcolorbrush,imagebrush,videobrush,lineargradientbrush,radialgradientbrush

Introduced

Silverlight 2.0 Brushes:

SolidColorBrush-Monochrome brushes

ImageBrush-Image brushes

VideoBrush-Video Brushes

LinearGradientBrush-Linear Gradient brush

RadialGradientBrush-Radioactive gradient brush

Online Demo

Http://www.cnblogs.com/webabcd/archive/2008/10/09/1307486.html

Example

1, Solidcolorbrush.xaml

<usercontrol x:class= "Silverlight20.Brush.SolidColorBrush"
Xmlns= "Http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x= "Http://schemas.microsoft.com/winfx/2006/xaml" >
<stackpanel horizontalalignment= "Left" >
<ellipse margin= "Ten" width= "height=" stroke= "Yellow" strokethickness= "3" >
<Ellipse.Fill>

<!--SolidColorBrush-Monochrome brush-->
<!--
Color-Colors
The format is as follows:
The name of a predefined color. such as: Red, Green, Blue
#RGB. such as: #F00
#ARGB (A is an alpha value). such as: #FF00, #F0F0, #F00F
#RGB. such as: #FF0000, #00FF00, #0000FF
#ARGB (A is an alpha value). such as: #FFFF0000, #FF00FF00, #FF0000FF
Opacity-Opacity. Between 0-1
-->
<solidcolorbrush color= "#FF0000" opacity= "0.5"/>

</Ellipse.Fill>
</Ellipse>

<ellipse margin= "Ten" width= "height=" stroke= "Yellow" strokethickness= "3" >
<Ellipse.Fill>

<solidcolorbrush color= "#88FF0000"/>

</Ellipse.Fill>
</Ellipse>
</StackPanel>
</UserControl>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.