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.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.