protected override void UnsubscribeParentEventsOverride() { if (childLocation != SplashScreenLocation.CenterScreen) { RenderingSubscriber.GetInstance(Parent.ManagedThreadId).Rendering -= OnParentRendering; } }
public static RenderingSubscriber GetInstance(int threadId) { RenderingSubscriber result; if (!instances.TryGetValue(threadId, out result)) { result = new RenderingSubscriber(); instances.Add(threadId, result); } return(result); }