/// <summary> /// Called when the fixed width changed. /// </summary> /// <param name="o">The o.</param> /// <param name="e">The <see cref="DependencyPropertyChangedEventArgs"/> instance containing the event data.</param> private static void OnFixedWidthChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { FixedWidthColumn fwc = o as FixedWidthColumn; if (fwc != null) { fwc.CoerceValue(WidthProperty); } }
/// <summary> /// Called when width is coerced... I guess. /// </summary> /// <param name="o">The o.</param> /// <param name="baseValue">The base value.</param> /// <returns></returns> private static object OnCoerceWidth(DependencyObject o, object baseValue) { FixedWidthColumn fwc = o as FixedWidthColumn; if (fwc != null) { return(fwc.FixedWidth); } return(baseValue); }