Class Card
- Namespace
- Tudormobile.Wpf.Controls
- Assembly
- Tudormobile.WpfControls.dll
A headered content control with optional footer, corner radius, and content animation.
Animation is applied to the content presenter when the content changes. A number of built-in animations are available, or you can define your own.
public class Card : HeaderedContentControl, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild
- Inheritance
-
Card
- Implements
- Inherited Members
Properties
CornerRadius
Gets or sets a value that represents the degree to which the corners of a Border are rounded.
public CornerRadius CornerRadius { get; set; }
Property Value
Footer
Gets or sets the data used for the header of each control.
public object? Footer { get; set; }
Property Value
HasFooter
Gets a value that indicates whether the header is null.
public bool HasFooter { get; set; }
Property Value
Transition
Gets or sets the storyboard that defines the transition animation.
[TypeConverter(typeof(CardTransitionTypeConverter))]
public Storyboard Transition { get; set; }
Property Value
Remarks
The Storyboard should be configured to define the desired visual transition effect. Ensure that the storyboard is properly initialized and contains the necessary animations for the transition to function as expected.
Methods
OnContentChanged(object, object)
Called when the Content property changes.
protected override void OnContentChanged(object oldContent, object newContent)