iOS Question Shadow inside canvas

Semen Matusovskiy

Well-Known Member
Licensed User
Hi, guys --

Is it possible to draw the same shadow as in UIView ?
I need this for customview. The object, which I want to shadow, takes a part of panel only.
 
Last edited:

Erel

Administrator
Staff member
Licensed User
You can draw the shadow yourself. It should be similar to how you draw the "real" view.
 

Semen Matusovskiy

Well-Known Member
Licensed User
Erel --

To draw with offset is not a problem.
But, unlike MS-DOS, a shadow looks like complex combination of light/dark pixels. Meanwhile I see a possibility to use solid color only.
 

Semen Matusovskiy

Well-Known Member
Licensed User
Walt Disney was right. Surprise: GetBase.SetShadow works fine in CustomView. Each "object", created by
canvas.DrawRectRounded, canvas.DrawCircle etc. has a shadow (exactly this I wanted). Meanwhile base panel is unchanged.


1.PNG
 
Top