private static void BlendColorSolidBrushChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { zBlend oe = d as zBlend; if (oe != null && (e.NewValue as SolidColorBrush) != null) { oe.SetValue(BlendProperty, (e.NewValue as SolidColorBrush).Color); } }
private static void BlendModeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { zBlend oe = d as zBlend; BlendModes nv = (BlendModes)(e.NewValue); if (oe != null) { oe.SetValue(BlendModeIndexProperty, ((float)(int)nv)); } }