private static void OnIsActivePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { WetChatWaitControl w = d as WetChatWaitControl; w.rootGrid = w.GetTemplateChild("rootGrid") as Grid; if (w.IsActive && w.rootGrid != null) { w.StartAnimation(null, null); } }
private static void OnRadiusPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { WetChatWaitControl w = d as WetChatWaitControl; w.rootGrid = w.GetTemplateChild("rootGrid") as Grid; if (w.rootGrid == null) { return; } OnPropertyChanged(w); }