예제 #1
0
        private static void OnFixedWidthChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            FixedWidthGridViewColumn fwc = o as FixedWidthGridViewColumn;

            if (fwc != null)
            {
                fwc.CoerceValue(WidthProperty);
            }
        }
예제 #2
0
        private static object OnCoerceWidth(DependencyObject o, object baseValue)
        {
            FixedWidthGridViewColumn fwc = o as FixedWidthGridViewColumn;

            if (fwc != null)
            {
                return(fwc.FixedWidth);
            }
            return(baseValue);
        }