Replies: 2 comments
-
In Avalonia (and CSS for that matter) box shadows do make sense only with rectangles. This DrawRectangle accepts box shadows argument, and can be used to achieve the same result. |
Beta Was this translation helpful? Give feedback.
-
Hi @maxkatz6 Another real case example to illustrate this request: this handle look weird without shadow, ideally the shadow must be applied to it, but it is not a rectangle or rounded rectangle. |
Beta Was this translation helpful? Give feedback.
-
It would be very handy to have DrawGeometry with BoxShadows parameter in the same way as DrawRectangle? Or something like DrawBoxShadows (with clipping lile DrawRectangle).
The idea is to be able to draw such geometry without relying on ICutstomDrawOperation like I did:
![image](https://private-user-images.githubusercontent.com/3595443/275225263-140b7dff-6e6b-4e93-831c-f99c76cdf3c9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU3OTM4OTYsIm5iZiI6MTcyNTc5MzU5NiwicGF0aCI6Ii8zNTk1NDQzLzI3NTIyNTI2My0xNDBiN2RmZi02ZTZiLTRlOTMtODMxYy1mOTljNzZjZGYzYzkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDhUMTEwNjM2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjM4YmRkN2M1YzZkMzI4YTJjNDA2MTJlMWJlMWNjODc3YTgxYWVjZTRjNzY2Nzc4MDMwM2Q3YmYwMGQ0NWMzZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.D32Dn1tqAsYbAVwH7Xpei_-W0koV15E9ykwyCmLpJIk)
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions