Monday, June 18, 2007

How to display text with solid color brush

See Also: 1. Hello World Silverlight Example with <TextBlock> Tag
                   2How to display text with solid color brush
                   3. How to use gradient color brush in Silverlight

Download Source Code - How to use solid brush in silverlight

If you don't have silverilght installed in your system first go through these articles otherwise please simply skip bellow articles

Silverlight prerequisites and installation for web application development

Silverlight Development Tools & Software
Silverlight plug-in Inplace and Indirect installation, How to
Hello World Silverlight Example with <TextBlock> Tag

Step 1. Open Visual Studio,

Step 2. Open New Silverlight Project

Now By Default you will get Page.xaml with the following code

<Canvas x:Name="parentCanvas"
xmlns="http://schemas.microsoft.com/client/2007"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

Loaded="Page_Loaded"

x:Class="SilverlightProject1.Page;assembly=
ClientBin/SilverlightProject1.dll
"
Width="640"
Height="480"
Background="White"
>

</
Canvas>

Step 3. To display a text message in silveright canvas we have tag called <TextBlock>


Find the following modified code after adding <TextBlock> tag with Foreground attribute (Solid Brush)

<Canvas
xmlns="http://schemas.microsoft.com/client/2007"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

x:Name="parentCanvas"

Loaded="Page_Loaded"

x:Class="SilverlightProject1.Page;assembly=ClientBin/SilverlightProject1.dll"
Width="885"
Height="500"

Background="White"
>
<
TextBlock Text="Hello World with Solid brush" FontSize="50" Foreground="#FF0D2764"
/>

</
Canvas>
 

Step 4. Now Run the Application By Pressing F5 with debugging or Ctrl+F5 without debugging.


Download Source Code - How to use solid brush in silverlight

See Also: 1. Hello World Silverlight Example with <TextBlock> Tag
                   2How to display text with solid color brush
                   3. How to use gradient color brush in Silverlight

20 comments:

Unknown said...

หวย
ข่าวกีฬา
หวยออนไลน์

independent said...

Anyone who wants to make money but doesn't have a project will start once. Read this. ไก่ชนออนไลน์

UFA747 said...

Nice Information! I personally really appreciate your article. This is a great website. I will make sure that I stop back again. These are some really great tips! Another important note is to make sure you give completely specific instructions to your cleaning staffs.

Thanks,แทงบอล

chanee said...

A good website is useful.
jacksondiscgolf.org/
airsoftdynamics.net/

jangjang said...

ราคาบอล
จุดอ่อนบาคาร่า

edok69 said...

Suggest good information in this message, click here.
รูเล็ต คือ
เซ็กซี่ บาคาร่า

edok69 said...

Suggest good information in this message, click here.
ufabet 24h
slots เล่นได้

daymanjesusss said...

Web casinos, football betting websites, providers of fun Endless entertainment, just you can apply for a casino with us, you can play. Online casinos have a complete range of real money because Biobet is a collection of many live casinos in one place. To respond to the needs of A variety of gamblers in modern times. หวยออนไลน์

mameeda said...


thank you so much :)

slotxo



slotpg



ufa



joker



แทงบอลออนไลน์

garin said...

You can follow more information here. บาคาร่าออนไลน์

garin said...

investment website หวยยี่กี UFABET

mm said...

Nice knowledge gaining article. This post is really the best on this valuable topic.สล็อต 999

mm said...

Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts.สล็อตแตกง่าย

mm said...

I just want to let you know that I just check out your site and I find it very interesting and informative..บา คา ร่า วอ เลท

mm said...

I really loved reading your blog. It was very well authored and easy to understand. Unlike other blogs I have read which are really not that good.Thanks alot!บา คา ร่า วอ เลท

Tang san said...

You have a good point here!I totally agree with what you have said!!Thanks for sharing your views...hope more people will read this article!!!เว็บ ตรง

mm said...

Thanks for sharing this quality information with us. I really enjoyed reading. Will surely going to share this URL with my friends.สล็อต ฝาก-ถอน true wallet ไม่มี บัญชีธนาคาร

mm said...

Friend, this web site might be fabolous, i just like it.บาคาร่าวอเลท

mm said...

This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice articleสล็อตวอเลท

โรซ่า said...

Hello, we have a game to recommend.

รีวิวอุปกรณ์กีฬา
สมัครเว็บพนันบาคาร่า
แทงบอล-สูง-ต่ำ
หวยรัฐบาล-เล่นยังไง
ufaslot

Thank you for your interest."