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.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.