xamarin / Xamarin.PropertyEditing

MIT License
24 stars 16 forks source link

[Mac] Initial Origin Control implementation #628

Closed CartBlanche closed 5 years ago

CartBlanche commented 5 years ago

Fixes #626

Dark:

Screen Shot 2019-09-07 at 13 23 16

Light:

Screen Shot 2019-09-07 at 13 23 34
CartBlanche commented 5 years ago

@ermau Could you have an cursory look over this draft, before I get too deep, and let me know if this is what you had in mind, or am I off piste??

CartBlanche commented 5 years ago

@chkn & @viniciusjarina Could you please look over this OriginChanged code for the ported proppy control... https://github.com/xamarin/Xamarin.PropertyEditing/pull/628/commits/ccd06c2259fbfdbcbdcb69724606fdffefd1fab0#diff-47e8ae53a308da0f8dc10c76a7a5effeR195-R212

I've tried to remove any external helper dependencies (for now, we may need to add it back in if more iOS controls need them), so just need another pair of eyes to make sure I've not missed something.

I was also thinking that we may need a property like DesignerFrame of type RectangeF (perhaps) in the IOrigin interface so that the actual designer surface info can be passed in and used to calculate the right TopLeft, Center etc values. Thoughts?