private static void FuncCoerceBackground(IFrameTxtBoxCtrl FrameTxtBox, object value) { if (value is Brush) { FrameTxtBox.TextBox.Background = (Brush)value; } }
private static void FuncCoerceBorderBrush(IFrameTxtBoxCtrl FrameTxtBox, object value) { if (value is Brush) { FrameTxtBox.TextBox.BorderBrush = (Brush)value; } }
private static void FuncCoerceBackground(IFrameTxtBoxCtrl frameTxtBox, object value) { if (value is Brush brush) { frameTxtBox.TextBox.Background = brush; } }
private static void FuncCoerceBorderThickness(IFrameTxtBoxCtrl FrameTxtBox, object value) { if (value is Thickness) { FrameTxtBox.TextBox.BorderThickness = (Thickness)value; } }
private static void FuncCoerceBorderThickness(IFrameTxtBoxCtrl frameTxtBox, object value) { if (value is Thickness thickness) { frameTxtBox.TextBox.BorderThickness = thickness; } }
private static void FuncCoerceBorderBrush(IFrameTxtBoxCtrl frameTxtBox, object value) { if (value is Brush brush) { frameTxtBox.TextBox.BorderBrush = brush; } }
private static void CommonCoerce(DependencyObject d, object value, FuncCoerce funco) { IFrameTxtBoxCtrl FrameTxtBox = d as IFrameTxtBoxCtrl; if (FrameTxtBox != null) { funco(FrameTxtBox, value); } }
private static void FuncCoerceBorderBrush(IFrameTxtBoxCtrl frameTxtBox, object value) { var brush = value as Brush; if (brush != null) { frameTxtBox.TextBox.BorderBrush = brush; } }
private static void FuncCoerceBackground(IFrameTxtBoxCtrl frameTxtBox, object value) { var brush = value as Brush; if (brush != null) { frameTxtBox.TextBox.Background = brush; } }