PropertyInfo pi = g.GetType().GetProperty("ElementReference", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); WeakReference a = pi.GetValue(g, null) as WeakReference;
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.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.