microsoft / xaml-standard

XAML Standard : a set of principles that drive XAML dialect alignment
Other
804 stars 50 forks source link

Proposal Add DropShadow Property to Controls #174

Open insinfo opened 7 years ago

insinfo commented 7 years ago

To Add DropShadow Property to Controls

dropshadow 1 dropshadow 2 dropshadow 3 dropshadow 4 dropshadow 5 dropshadow 6 dropshadow 7 dropshadow 8 dropshadow 9 dropshadow 10 dropshadow 11 dropshadow 12

birbilis commented 7 years ago

wonder if DropShadow could be implemented via Adorners https://github.com/Microsoft/xaml-standard/issues/101 (don't think implementing it via Borders is an option, since borders don't render over the adjacent controls)

birbilis commented 7 years ago

I think in Silverlight you had to turn off shadows for hardware acceleration to kick in. Using shadows resulted in too much redrawing too (would invalidate other controls). Probably most controls aren't doing caching of their graphics (backbuffering) themselves. Not sure what the rendering system does in that aspect and if UWP's Compositing does such things.