Exemplo n.º 1
0
 private static void OnHintsSourcePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     var newHints = e.NewValue as HintsCollection;
     HintsLayer thisInstance = (d as HintsLayer);
     if (thisInstance.IsOpen)
     {
         thisInstance.RefreshChildren();
     }
 }
Exemplo n.º 2
0
        private static void OnIsOpenPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            bool visible = (bool)e.NewValue;
            HintsLayer thisInstance = (d as HintsLayer);

            if (visible)
            {
                thisInstance.IsHitTestVisible = true;
                thisInstance.Visibility = Visibility.Visible;
                thisInstance.RefreshChildren();
            }
            else
            {
                thisInstance.IsHitTestVisible = false;
                thisInstance.Visibility = Visibility.Collapsed;
                thisInstance.ClearChildren();
            }
        }