private static void ToolTipPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { Pin pin = d as Pin; if (pin == null) { return; } pin.OnPropertyChanged(TooltipDescriptionPropertyName); }
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); }