private static object OnCoerceWindowStyle(DependencyObject d, object basevalue) { if (basevalue == DependencyProperty.UnsetValue) { return(basevalue); } WindowControl windowControl = d as WindowControl; if (windowControl == null) { return(basevalue); } return(windowControl.OnCoerceWindowStyle((WindowStyle)basevalue)); }
private static object OnCoerceCloseButtonVisibility(DependencyObject d, object basevalue) { if (basevalue == DependencyProperty.UnsetValue) { return(basevalue); } WindowControl windowControl = d as WindowControl; if (windowControl == null) { return(basevalue); } return(windowControl.OnCoerceCloseButtonVisibility((Visibility)basevalue)); }