[TIMOB-20314] Windows: Add support for shadow* properties on Ti.UI.Label and Button
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | None |
Status | Closed |
Resolution | Won't Do |
Resolution Date | 2016-03-04T00:32:42.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Windows |
Labels | n/a |
Reporter | Leor Brenman |
Assignee | Gary Mathews |
Created | 2016-02-02T16:12:04.000+0000 |
Updated | 2017-03-28T21:14:36.000+0000 |
Description
Add support for Shadows for Windows Phone
This is a vague request but most shadow API's are not supported in Windows
http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Label-property-shadowOffset
http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Button-property-shadowOffset
shadowColor, shadowOffset and shadowRadius.
Also note that these properties are not supported on iOS Button; and shadowRadius isn't supported on iOS Label.
Attachments
File | Date | Size |
---|---|---|
shadow.PNG | 2016-03-03T11:23:17.000+0000 | 1851 |
Seems its already supported, just not documented: https://github.com/appcelerator/titanium_mobile_windows/search?q=viewShadowOffset&type=Code
The Shadow "object" is modeled and supported, but we haven't actually "hooked it up" to Label and Button properties yet, because there's no simple straightforward way to add a shadow to a label/button on Windows. (also to note that shadows have their place, but by default windows UIs are very flat and shadows are unusual in that sort of scheme) Looks like maybe this can be achieved by wrapping a Border on the component with a special border brush that uses a gradient? http://stackoverflow.com/questions/22179334/how-do-i-add-a-dropshadow-effect-to-a-control-box-grid-in-a-windows-store-ap
We can acheive a top and bottom shadow effect using a LinearGradientBrush, unfortunately there is no RadialGradientBrush to create a better looking shadow effect. This is what I have managed to achieve: !shadow.PNG|thumbnail! Thoughts?
Closing ticket as this cannot be done.