alexa
menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class CardViewItem

    Represents an individual item in CardView control, providing customizable content.

    Inheritance
    System.Object
    CardViewItem
    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    [SkinType(SkinVisualStyle = Skin.Office2007Blue, Type = typeof(CardViewItem), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/CardView/Themes/Office2007BlueStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2007Black, Type = typeof(CardViewItem), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/CardView/Themes/Office2007BlackStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2007Silver, Type = typeof(CardViewItem), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/CardView/Themes/Office2007SilverStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2010Blue, Type = typeof(CardViewItem), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/CardView/Themes/Office2010BlueStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2010Black, Type = typeof(CardViewItem), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/CardView/Themes/Office2010BlackStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2010Silver, Type = typeof(CardViewItem), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/CardView/Themes/Office2010SilverStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Blend, Type = typeof(CardViewItem), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/CardView/Themes/BlendStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.VS2010, Type = typeof(CardViewItem), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/CardView/Themes/VS2010Style.xaml")]
    [SkinType(SkinVisualStyle = Skin.Default, Type = typeof(CardViewItem), XamlResource = "/Syncfusion.Tools.WPF;component/Controls/CardView/Themes/Generic.xaml")]
    [SkinType(SkinVisualStyle = Skin.Metro, Type = typeof(CardViewItem), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/CardView/Themes/MetroStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Transparent, Type = typeof(CardViewItem), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/CardView/Themes/TransparentStyle.xaml")]
    public class CardViewItem : HeaderedContentControl

    Constructors

    CardViewItem()

    Initializes a new instance of the CardViewItem class.

    Declaration
    public CardViewItem()

    Fields

    IsInEditModeProperty

    Identifies the IsInEditMode dependency property.

    Declaration
    public static readonly DependencyProperty IsInEditModeProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    IsSelectedProperty

    Identifies the IsSelected dependency property.

    Declaration
    public static readonly DependencyProperty IsSelectedProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    Properties

    IsInEditMode

    Gets a value indicating whether the CardViewItem is currently in edit mode.

    Declaration
    public bool IsInEditMode { get; }
    Property Value
    Type
    System.Boolean

    IsSelected

    Gets or sets a value indicating whether the CardViewItem is currently selected.

    Declaration
    public bool IsSelected { get; set; }
    Property Value
    Type
    System.Boolean

    Methods

    OnApplyTemplate()

    Applies the control template to the CardViewItem and retrieves named parts defined in the template.

    Declaration
    public override void OnApplyTemplate()

    OnKeyDown(KeyEventArgs)

    Handles the KeyDown event to trigger edit mode when the key is pressed.

    Declaration
    protected override void OnKeyDown(KeyEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.KeyEventArgs e

    The event data containing information about the key press.

    OnPreviewMouseDoubleClick(MouseButtonEventArgs)

    Handles the PreviewMouseDoubleClick event to initiate edit mode when the CardViewItem is double-clicked.

    Declaration
    protected override void OnPreviewMouseDoubleClick(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The event data for the mouse double-click action.

    OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)

    Handles the PreviewMouseLeftButtonDown event to update selection state when the user clicks on the CardViewItem.

    Declaration
    protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The event data for the mouse button press.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved