WPF

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

    Show / Hide Table of Contents

    Class CheckListBoxItem

    Represents a item that displayed in the Syncfusion.Windows.Tools.Controls.CheckListBoxItem.CheckListBox control.

    Inheritance
    System.Object
    CheckListBoxItem
    CheckListGroupItem
    CheckListSelectAllItem
    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    public class CheckListBoxItem : ListBoxItem
    Examples
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    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.Imaging;
    using System.Windows.Navigation;
    using System.Windows.Shapes;
    using Syncfusion.Windows.Tools.Controls;
    namespace checklistbox
    {
        /// 
        /// Interaction logic for Window1.xaml
        /// 
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                CheckListBox checklistbox = new CheckListBox();
                CheckListBoxItem item = new CheckListBoxItem();
                checklistbox.Items.Add(item);
            }
        }
    }

    Constructors

    CheckListBoxItem()

    Initializes a new instance of the CheckListBoxItem class.

    Declaration
    public CheckListBoxItem()

    Fields

    IsCheckedProperty

    Identifies the IsChecked dependency property.

    Declaration
    public static readonly DependencyProperty IsCheckedProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    Properties

    IsChecked

    Gets or sets whether the CheckListBoxItem is checked.

    Declaration
    public bool IsChecked { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    When using ItemsSource with binding, you have to turn off Virtualization to synchronize IsChecked and SelectedItems property when binding IsChecked property to the property in Model class

    Methods

    OnApplyTemplate()

    Invoked before the UI element displays in an application.

    Declaration
    public override void OnApplyTemplate()

    OnMouseDown(MouseButtonEventArgs)

    Called when the mouse down operation performed on the CheckListBoxItem

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

    The System.Windows.Input.MouseButtonEventArgs that contains the event data.

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