OnCoerceValueChanged() protected method

protected OnCoerceValueChanged ( object baseValue ) : object
baseValue object
return object
Exemplo n.º 1
0
        private static object OnCoerceValueChanged(DependencyObject o, object baseValue)
        {
            PropertyItem prop = o as PropertyItem;

            if (prop != null)
            {
                return(prop.OnCoerceValueChanged(baseValue));
            }

            return(baseValue);
        }