示例#1
0
        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);
            }
        }
示例#2
0
        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);
        }