I solved the reflection problemi'm accessing the property instead of the method, which works. PropertyInfo pi = g.GetType().GetProperty("ElementReference", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); WeakReference a = pi.GetValue(g, null) as WeakReference; This should help me to start an animation on the control.
PropertyInfo pi = g.GetType().GetProperty("ElementReference", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); WeakReference a = pi.GetValue(g, null) as WeakReference;
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.