// ReSharper disable once CheckNamespace
namespace WPFluent.Controls;
///
/// Inherited from the control which can hide the collapsible content.
///
public class CardExpander : System.Windows.Controls.Expander
{
///
/// Identifies the dependency property.
///
public static readonly DependencyProperty ContentPaddingProperty = DependencyProperty.Register(
nameof(ContentPadding),
typeof(Thickness),
typeof(CardExpander),
new FrameworkPropertyMetadata(default(Thickness), FrameworkPropertyMetadataOptions.AffectsParentMeasure));
///
/// Identifies the dependency property.
///
public static readonly DependencyProperty CornerRadiusProperty = DependencyProperty.Register(
nameof(CornerRadius),
typeof(CornerRadius),
typeof(CardExpander),
new PropertyMetadata(new CornerRadius(4)));
///
/// Identifies the dependency property.
///
public static readonly DependencyProperty IconProperty = DependencyProperty.Register(
nameof(Icon),
typeof(IconElement),
typeof(CardExpander),
new PropertyMetadata(null, null, IconElement.Coerce));
///
/// Gets or sets content padding Property
///
[Bindable(true)]
[Category("Layout")]
public Thickness ContentPadding
{
get { return (Thickness)GetValue(ContentPaddingProperty); }
set { SetValue(ContentPaddingProperty, value); }
}
///
/// Gets or sets displayed .
///
[Bindable(true)]
[Category("Appearance")]
public CornerRadius CornerRadius
{
get => (CornerRadius)GetValue(CornerRadiusProperty);
set => SetValue(CornerRadiusProperty, value);
}
///
/// Gets or sets displayed .
///
[Bindable(true)]
[Category("Appearance")]
public IconElement? Icon { get => (IconElement?)GetValue(IconProperty); set => SetValue(IconProperty, value); }
}