private static void OnValueChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { PropertyItem propertyItem = o as PropertyItem; if (propertyItem != null) { propertyItem.OnValueChanged(( object )e.OldValue, ( object )e.NewValue); } }