private static void OnIconPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ((LocationDisplayToggle)d).UpdateIcon(); }