Card
- Assembly:
Fluence.Wpf - Namespace:
Fluence.Wpf.Controls
public class Card : ContentControl
Fluent-styled card container with optional header, footer, and icon.
Base type: ContentControl (including inherited WPF and .NET members)
Constructors
Card
public Card()
Creates a new Card instance.
Properties
CornerRadius
public CornerRadius CornerRadius { get; set; }
Gets or sets the corner radius of the card.
Footer
public object Footer { get; set; }
Gets or sets the footer content of the card.
FooterTemplate
public DataTemplate FooterTemplate { get; set; }
Gets or sets the data template for the footer content.
Header
public object Header { get; set; }
Gets or sets the header content of the card.
HeaderTemplate
public DataTemplate HeaderTemplate { get; set; }
Gets or sets the data template for the header content.
Icon
public object Icon { get; set; }
Gets or sets the icon displayed in the card header.
IsClickable
public bool IsClickable { get; set; }
Gets or sets whether the card responds to mouse click interactions.
IsPressed
public bool IsPressed { get; }
Gets whether the card is currently pressed.
Variant
public CardVariant Variant { get; set; }
Gets or sets the visual variant of the card (Default, Outlined, Filled, Subtle).
Methods
OnCreateAutomationPeer
protected override AutomationPeer OnCreateAutomationPeer()
Documentation inherited from the ContentControl API.
OnKeyDown
protected override void OnKeyDown(KeyEventArgs e)
Documentation inherited from the ContentControl API.
OnKeyUp
protected override void OnKeyUp(KeyEventArgs e)
Documentation inherited from the ContentControl API.
OnLostMouseCapture
protected override void OnLostMouseCapture(MouseEventArgs e)
Documentation inherited from the ContentControl API.
OnMouseLeave
protected override void OnMouseLeave(MouseEventArgs e)
Documentation inherited from the ContentControl API.
OnMouseLeftButtonDown
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Documentation inherited from the ContentControl API.
OnMouseLeftButtonUp
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Documentation inherited from the ContentControl API.
Events
Click
public event RoutedEventHandler Click
Occurs when a clickable card is activated by a mouse left-button release that began with a press inside the card bounds.
Dependency property identifiers
Use these identifiers with WPF property APIs. The matching CLR properties appear above when the control exposes them.
CornerRadiusProperty
public static readonly DependencyProperty CornerRadiusProperty
Identifies the CornerRadius dependency property.
FooterProperty
public static readonly DependencyProperty FooterProperty
Identifies the Footer dependency property.
FooterTemplateProperty
public static readonly DependencyProperty FooterTemplateProperty
Identifies the FooterTemplate dependency property.
HeaderProperty
public static readonly DependencyProperty HeaderProperty
Identifies the Header dependency property.
HeaderTemplateProperty
public static readonly DependencyProperty HeaderTemplateProperty
Identifies the HeaderTemplate dependency property.
IconProperty
public static readonly DependencyProperty IconProperty
Identifies the Icon dependency property.
IsClickableProperty
public static readonly DependencyProperty IsClickableProperty
Identifies the IsClickable dependency property.
IsPressedProperty
public static readonly DependencyProperty IsPressedProperty
Identifies the IsPressed dependency property.
VariantProperty
public static readonly DependencyProperty VariantProperty
Identifies the Variant dependency property.
Fields
ClickEvent
public static readonly RoutedEvent ClickEvent
Identifies the Click routed event.