Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Shadow effects

 
 
Old 05-25-2006   #1 (permalink)
CesarTabares


 
 

Shadow effects

Hi everyone, in what ways is it possible to add shadow effects to a rectangle
in XAML? (what tag allows it? im using expressiondesigner, i don't know how
to add it in there either, maybe its just a little hardcoding needed)

Anybody who knows?

Cesar

My System SpecsSystem Spec
Old 05-26-2006   #2 (permalink)
Shalini Aggarwal [MSFT]


 
 

RE: Shadow effects

Hi Cesar,

Adding a drop-shadow effect to a Rectangle object using XAML can be
accomplished as follows:

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

<Rectangle Width="60" Height="60" Stroke="Black" StrokeThickness="3">
<Rectangle.BitmapEffect>
<DropShadowBitmapEffect Color="Black"
Direction="240" ShadowDepth="5"
Softness=".3" Opacity=".5"/>
</Rectangle.BitmapEffect>
</Rectangle>
</Page>

You can play with the DropShadowBitmapEffect properties to get different
effects. Check the SDK for more help with this at:
ms-help://MS.MSSDK.1033/MS.WinFXSDK.1033/cpref34/html/T_System_Windows_Media_Effects_DropShadowBitmapEffect.htm

I'm not sure how to accomplish this using ExpressionDesigner, I'll look into
it and get back if I find out.

-Shalini

--------------------------
"CesarTabares" wrote:

> Hi everyone, in what ways is it possible to add shadow effects to a rectangle
> in XAML? (what tag allows it? im using expressiondesigner, i don't know how
> to add it in there either, maybe its just a little hardcoding needed)
>
> Anybody who knows?
>
> Cesar


My System SpecsSystem Spec
Old 05-26-2006   #3 (permalink)
Shalini Aggarwal [MSFT]


 
 

RE: Shadow effects

Following up on your question regarding how to add drop shadows (or bitmap
effects in general) using ExpressionDesigner.

There is currently no support for creating/editing a BitmapEffect object in
ExpressionDesigner using the UI "Design" mode. You will need to go into
"XAML" mode and add your BitmapEffects using XAML as I described in my last
post.

-Shalini

---------------------------------------
"Shalini Aggarwal [MSFT]" wrote:

> Hi Cesar,
>
> Adding a drop-shadow effect to a Rectangle object using XAML can be
> accomplished as follows:
>
> <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
> xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
>
> <Rectangle Width="60" Height="60" Stroke="Black" StrokeThickness="3">
> <Rectangle.BitmapEffect>
> <DropShadowBitmapEffect Color="Black"
> Direction="240" ShadowDepth="5"
> Softness=".3" Opacity=".5"/>
> </Rectangle.BitmapEffect>
> </Rectangle>
> </Page>
>
> You can play with the DropShadowBitmapEffect properties to get different
> effects. Check the SDK for more help with this at:
> ms-help://MS.MSSDK.1033/MS.WinFXSDK.1033/cpref34/html/T_System_Windows_Media_Effects_DropShadowBitmapEffect.htm
>
> I'm not sure how to accomplish this using ExpressionDesigner, I'll look into
> it and get back if I find out.
>
> -Shalini
>
> --------------------------
> "CesarTabares" wrote:
>
> > Hi everyone, in what ways is it possible to add shadow effects to a rectangle
> > in XAML? (what tag allows it? im using expressiondesigner, i don't know how
> > to add it in there either, maybe its just a little hardcoding needed)
> >
> > Anybody who knows?
> >
> > Cesar

>

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Solved Can't get rid of Vista Effects!! General Discussion
Tansitions and effects Vista music pictures video


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46