private static void OnFixedWidthChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { UnresizableGridViewColumn fwc = o as UnresizableGridViewColumn; if (fwc != null) { fwc.CoerceValue(WidthProperty); } }
private static object OnCoerceWidth(DependencyObject o, object baseValue) { UnresizableGridViewColumn fwc = o as UnresizableGridViewColumn; if (fwc != null) { return(fwc.FixedWidth); } return(0.0); }