

Public static void SetLabel(DependencyObject obj, string value) Return ( string )d.GetValue(LabelProperty) Public static string GetLabel(DependencyObject d) " Label ", typeof( string), typeof(ControlAttachProperty), new FrameworkPropertyMetadata( null )) / public static readonly DependencyProperty LabelProperty = DependencyProperty.RegisterAttached( #endregion #region LabelProperty TextBox的头部Label Obj.SetValue(CornerRadiusProperty, value) Public static void SetCornerRadius(DependencyObject obj, CornerRadius value) Return (CornerRadius)d.GetValue(CornerRadiusProperty) Public static CornerRadius GetCornerRadius(DependencyObject d)

" CornerRadius ", typeof(CornerRadius), typeof(ControlAttachProperty), new FrameworkPropertyMetadata( null )) / public static readonly DependencyProperty CornerRadiusProperty = DependencyProperty.RegisterAttached( #endregion #region CornerRadiusProperty Border圆角 Public static void SetWatermark(DependencyObject obj, string value) Return ( string )d.GetValue(WatermarkProperty) Public static string GetWatermark(DependencyObject d) " Watermark ", typeof( string), typeof(ControlAttachProperty), new FrameworkPropertyMetadata( "" )) / public static readonly DependencyProperty WatermarkProperty = DependencyProperty.RegisterAttached( Obj.SetValue(AttachContentProperty, value) Public static void SetAttachContent(DependencyObject obj, ControlTemplate value) Return (ControlTemplate)d.GetValue(AttachContentProperty) Public static ControlTemplate GetAttachContent(DependencyObject d) " AttachContent ", typeof(ControlTemplate), typeof(ControlAttachProperty), new FrameworkPropertyMetadata( null )) / public static readonly DependencyProperty AttachContentProperty = DependencyProperty.RegisterAttached( #endregion #region AttachContentProperty 附加组件模板 Return (Brush)obj.GetValue(MouseOverBorderBrushProperty) Public static Brush GetMouseOverBorderBrush(DependencyObject obj) / /// Gets the brush used to draw the mouse over brush. Obj.SetValue(MouseOverBorderBrushProperty, value) / public static void SetMouseOverBorderBrush(DependencyObject obj, Brush value) / /// Sets the brush used to draw the mouse over brush. New FrameworkPropertyMetadata(Brushes.Transparent,įrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits)) Public static readonly DependencyProperty MouseOverBorderBrushProperty =ĭependencyProperty.RegisterAttached( " MouseOverBorderBrush ", typeof(Brush), typeof (ControlAttachProperty),

#endregion #region MouseOverBorderBrush 鼠标进入边框色,输入控件 Return (Brush)element.GetValue(FocusBorderBrushProperty) Public static Brush GetFocusBorderBrush(DependencyObject element) Public static void SetFocusBorderBrush(DependencyObject element, Brush value)Įlement.SetValue(FocusBorderBrushProperty, value) " FocusBorderBrush ", typeof(Brush), typeof(ControlAttachProperty), new FrameworkPropertyMetadata( null )) Public static readonly DependencyProperty FocusBorderBrushProperty = DependencyProperty.RegisterAttached(
