public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { if (value is bool && (bool)value == true) return UnpinGlyph; return PinGlyph; }