Shadow in XAML ?
-
Hi How can I create shadow for an object(for example a button) with XAML thanks
-
Hi How can I create shadow for an object(for example a button) with XAML thanks
Use a BitmapEffect, e.g.
<Button Name="btnAddTab" Width="60" Content="MyClick">
<Button.BitmapEffect>
<DropShadowBitmapEffect Color="Black" Direction="320" ShadowDepth="15" Softness="1" Opacity="0.5" />
</Button.BitmapEffect>
</Button>Deja View - the feeling that you've seen this post before.
-
Use a BitmapEffect, e.g.
<Button Name="btnAddTab" Width="60" Content="MyClick">
<Button.BitmapEffect>
<DropShadowBitmapEffect Color="Black" Direction="320" ShadowDepth="15" Softness="1" Opacity="0.5" />
</Button.BitmapEffect>
</Button>Deja View - the feeling that you've seen this post before.
Thanks Pete
-
Thanks Pete
No problem, and I'm glad to help.
Deja View - the feeling that you've seen this post before.
-
Use a BitmapEffect, e.g.
<Button Name="btnAddTab" Width="60" Content="MyClick">
<Button.BitmapEffect>
<DropShadowBitmapEffect Color="Black" Direction="320" ShadowDepth="15" Softness="1" Opacity="0.5" />
</Button.BitmapEffect>
</Button>Deja View - the feeling that you've seen this post before.
FYI...if you are using .net 3.5sp1, you should move to using the new UIElement.Effect rather than the old UIElement.BitmapEffect. The new effects are hardware rendered - very fast! The old bit map effects are software rendered - slow!!! I believe there is a backwards compatibility mode so you can still use BitmapEffect for now in 3.5sp1 but it will go away eventually.