コード例 #1
0
        private static void ToolTipPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Pin pin = d as Pin;

            if (pin == null)
            {
                return;
            }

            pin.OnPropertyChanged(TooltipDescriptionPropertyName);
        }
コード例 #2
0
        private static void IsActivePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Pin pin = d as Pin;

            if (pin == null)
            {
                return;
            }

            bool b = (e.NewValue as bool?) ?? false;

            pin.Ellipse.Fill = b ? ActiveBrush : InactiveBrush;
            pin.OnPropertyChanged(TooltipDescriptionPropertyName);
        }