![]() |
|
|||||||
| Notices |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
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 |
|
|
|
#2 |
|
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 |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|