using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Effects; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace BPA.UIControl { /// /// 卡片 /// public class Card : ContentControl { /// /// Initializes a new instance of the class. /// static Card() { DefaultStyleKeyProperty.OverrideMetadata(typeof(Card), new FrameworkPropertyMetadata(typeof(Card))); } /// /// 圆角半径 /// public static readonly DependencyProperty CornerRadiusProperty = DependencyProperty.Register( "CornerRadius", typeof(CornerRadius), typeof(Card), new PropertyMetadata(default(CornerRadius))); /// /// 圆角半径 /// public CornerRadius CornerRadius { get { return (CornerRadius)GetValue(CornerRadiusProperty); } set { SetValue(CornerRadiusProperty, value); } } /// /// 边框阴影 /// public static readonly DependencyProperty BorderEffectProperty = DependencyProperty.Register( "BorderEffect", typeof(Effect), typeof(Card), new PropertyMetadata(default(Effect))); /// /// 边框阴影 /// public Effect BorderEffect { get { return (Effect)GetValue(BorderEffectProperty); } set { SetValue(BorderEffectProperty, value); } } } }