TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Microsoft Expression

Notices

Reply
 
Thread Tools Display Modes
Old 17-04-2008, 09:01 PM   #1
AndyT
Guest
 
Posts: n/a
Can I stop DropShadowBitmapEffect being affected by RotateTransfor

I'm creating arrows that represent the hands on a clock. My codebehind then
applies the correct rotation transform to put the hands in the right places.
I've attached a DropShadowBitmapEffect but the angle of the shadow is
affected by the rotate transform, as if the light source moves as the hand
moves. I suppose I could adjust the direction of the DropShadowBitmapEffect
in my codebehind too, but it feels like something that I should be setting up
in my XAML for WPF to do it for me.

Any ideas?
Thanks
  Reply With Quote
Old 11-05-2008, 08:53 AM   #2
Jim T
Guest
 
Posts: n/a
RE: Can I stop DropShadowBitmapEffect being affected by RotateTransfor

Hi Andy,

Have you tried binding the angle of the shadow to the angle of the hand?
I'm thinking you should be able to write a valueconverter that would convert
the hour to an angle, and another for the minute to an angle, then use these
converters in the binding.
--
Jim


"AndyT" wrote:

> I'm creating arrows that represent the hands on a clock. My codebehind then
> applies the correct rotation transform to put the hands in the right places.
> I've attached a DropShadowBitmapEffect but the angle of the shadow is
> affected by the rotate transform, as if the light source moves as the hand
> moves. I suppose I could adjust the direction of the DropShadowBitmapEffect
> in my codebehind too, but it feels like something that I should be setting up
> in my XAML for WPF to do it for me.
>
> Any ideas?
> Thanks

  Reply With Quote
Reply

Thread Tools
Display Modes


Google
 


All times are GMT +5.5. The time now is 10:35 AM.


vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2008, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional