Introduction of Brushes tools in XAML Silverlight


Introduction

In Silverlight, Brushes is very useful component, it allows selecting any color in variety of ways, and provides visual (user friendly) feedback to play with colors. Any element can be filled using brushes tools. Let’s look at the screenshot of ‘Brushes’ section in Silverlight.


Let’s discuss about its all items.

Fill

This item gets or sets the brush that specifies how to paint the interior of the shape.

Stroke

This item gets or sets the brush that specifies how to paint the shape outline (border).

OpacityMask

This item gets or sets an opacity mask as brush implementation that is applied to any alpha-channel masking for the rendered content of this element.

Look at the screenshot below for more options:-


1. By selecting this option we hide every brush selections or simply say, select this option if you don’t want color box to be appear.

2. By selecting this we can apply solid color to any shape (no any special effect of color).

3. By selecting this we can apply gradient color to any shape. (It is a good topic to learn so in another post we’ll chat).

4. By selecting this we can apply tiled color/image to any shape.

5. By selecting this we can work with brush resources.

Comments

Popular posts from this blog

Migrating database from ASP.NET Identity to ASP.NET Core Identity

Customize User's Profile in ASP.NET Identity System

Lambda two tables and three tables inner join code samples