Пример #1
0
        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);
            }
        }
Пример #2
0
        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));
            }
        }