C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » Application windows, menus & toolbars »

Create Text with a Shadow


Posted Date: 14 Aug 2009    Resource Type: Code Snippets    Category: Application windows, menus & toolbars
Author: K'ranMember Level: Gold    
Rating: 1 out of 5Points: 8



Create Text with a Shadow



Below Code Snippets Produce Shadow Effect of Text




< Window x:Class="MyMediaPlayer.ImageReflection"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="ImageReflection" Height="600" Width="300" Background="Brown" >

< !--define TextBlock for Text -- >

< TextBlock Width="200" Height="30" Text="Welcome to WPF" TextAlignment="Center" FontSize="25" Foreground="Green" >

< !-- Define effect (Bitmap Effect)-- >

< TextBlock.BitmapEffect >

< !-- Define Drop Show effect -->

< DropShadowBitmapEffect ShadowDepth="6" Direction="45" Softness="0.0" Color="White" Opacity="0.35" >
< /DropShadowBitmapEffect >

< /TextBlock.BitmapEffect >

< /TextBlock >

< /Window >



Direction(In degress):-
0-360

Softness means blue of text values between 0 to 1

1 means full blur of text




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Create Text with a Shadow  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Playing Videos in WPF
Previous Resource: Layout Transformation in WPF
Return to Discussion Resource Index
Post New Resource
Category: Application windows, menus & toolbars


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use