Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20314] Windows: Add support for shadow* properties on Ti.UI.Label and Button

GitHub Issuen/a
TypeImprovement
PriorityNone
StatusClosed
ResolutionWon't Do
Resolution Date2016-03-04T00:32:42.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsWindows
Labelsn/a
ReporterLeor Brenman
AssigneeGary Mathews
Created2016-02-02T16:12:04.000+0000
Updated2017-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

FileDateSize
shadow.PNG2016-03-03T11:23:17.000+00001851

Comments

  1. Fokke Zandbergen 2016-02-03

    Seems its already supported, just not documented: https://github.com/appcelerator/titanium_mobile_windows/search?q=viewShadowOffset&type=Code
  2. Christopher Williams 2016-02-03

    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
  3. Gary Mathews 2016-03-03

    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?
  4. Lee Morris 2017-03-28

    Closing ticket as this cannot be done.

JSON Source