using System; using System.Collections.Generic; using System.Text; using System.Windows; using System.Windows.Media; namespace CyberX8_UI.Themes.Attach { public class BorderElement { public static readonly DependencyProperty BorderBrushProperty = DependencyProperty.RegisterAttached( "BorderBrush", typeof(SolidColorBrush), typeof(BorderElement)); public static void SetBorderBrush(DependencyObject element, SolidColorBrush value) => element.SetValue(BorderBrushProperty, value); public static SolidColorBrush GetBorderBrush(DependencyObject element) => (SolidColorBrush)element.GetValue(BorderBrushProperty); public static readonly DependencyProperty BorderThicknessProperty = DependencyProperty.RegisterAttached( "BorderThickness", typeof(Thickness), typeof(BorderElement)); public static void SetBorderThickness(DependencyObject element, Thickness value) => element.SetValue(BorderThicknessProperty, value); public static Thickness GetBorderThickness(DependencyObject element) => (Thickness)element.GetValue(BorderThicknessProperty); public static readonly DependencyProperty CornerRadiusProperty = DependencyProperty.RegisterAttached( "CornerRadius", typeof(CornerRadius), typeof(BorderElement)); public static void SetCornerRadius(DependencyObject element, CornerRadius value) => element.SetValue(CornerRadiusProperty, value); public static CornerRadius GetSetCornerRadius(DependencyObject element) => (CornerRadius)element.GetValue(BorderThicknessProperty); } }