[Mono-bugs] [Bug 643408] New: When creating property animations, you must use the obj-c name of the property, rather than the MT property name.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Oct 4 01:43:49 EDT 2010
https://bugzilla.novell.com/show_bug.cgi?id=643408
https://bugzilla.novell.com/show_bug.cgi?id=643408#c0
Summary: When creating property animations, you must use the
obj-c name of the property, rather than the MT
property name.
Classification: Mono
Product: MonoTouch
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Major
Priority: P5 - None
Component: Runtime
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: bryancostanich at hotmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: Customer
Blocker: No
If you want to create a property based animation, you must use the name of the
property that is in the underlying obj-c object. for example, let's say i want
to animation based on a layers "Position" property. i have to use the
following:
CAKeyFrameAnimation keyFrameAnimation =
(CAKeyFrameAnimation)CAKeyFrameAnimation.FromKeyPath("position");
notice that the property name is lowercase "position" rather than "Position"
it would be nice to not have to know the obj-c property names, and instead pass
"Position"
better yet, it would be super nice to remove the magic string altogether and
pass the property directly (via an underlying lambda):
CAKeyFrameAnimation keyFrameAnimation =
(CAKeyFrameAnimation)CAKeyFrameAnimation.FromKeyPath(item.PropertyName);
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list