Xceed Toolkit Plus for WPF v5.0 Documentation
Xceed.Wpf.Toolkit Assembly / Xceed.Wpf.Toolkit Namespace / CheckListBox Class
Members Example


In This Topic
    CheckListBox Class
    In This Topic
    Represents a ListBox control whose items are preceded by a CheckBox.
    Syntax
    'Declaration
     
    <TemplatePartAttribute(Name="PART_SelectAllSelectorItem", Type=Xceed.Wpf.Toolkit.Primitives.SelectAllSelectorItem)>
    <DefaultEventAttribute("OnItemsChanged")>
    <DefaultPropertyAttribute("Items")>
    <ContentPropertyAttribute("Items")>
    <StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=System.Windows.FrameworkElement)>
    <LocalizabilityAttribute(LocalizationCategory.None, Readability=Readability.Unreadable)>
    <XmlLangPropertyAttribute("Language")>
    <UsableDuringInitializationAttribute(True)>
    <RuntimeNamePropertyAttribute("Name")>
    <UidPropertyAttribute("Uid")>
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public Class CheckListBox 
       Inherits Xceed.Wpf.Toolkit.Primitives.SelectAllSelector
    'Usage
     
    Dim instance As CheckListBox
    [TemplatePart(Name="PART_SelectAllSelectorItem", Type=Xceed.Wpf.Toolkit.Primitives.SelectAllSelectorItem)]
    [DefaultEvent("OnItemsChanged")]
    [DefaultProperty("Items")]
    [ContentProperty("Items")]
    [StyleTypedProperty(Property="ItemContainerStyle", StyleTargetType=System.Windows.FrameworkElement)]
    [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)]
    [XmlLangProperty("Language")]
    [UsableDuringInitialization(true)]
    [RuntimeNameProperty("Name")]
    [UidProperty("Uid")]
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public class CheckListBox : Xceed.Wpf.Toolkit.Primitives.SelectAllSelector 
    Remarks

    CheckBox.IsSelected can be data-bound using the SelectedMemberPath property.

    CheckListBox also provides a Command property that will execute everytime an item is checked/unchecked. The CommandParameter is the recently checked/unchecked item.

    Example
    The following example shows how to create a CheckListBox.
    <xctk:CheckListBox x:Name="_listBox" 
                                Height="250"
                                DisplayMemberPath="Color"
                                ValueMemberPath="Level" 
                                SelectedMemberPath="IsSelected"
                                SelectedValue="{Binding SelectedValue}"
                                SelectedItems="{Binding SelectedItems}" />
    Inheritance Hierarchy

    System.Object
       System.Windows.Threading.DispatcherObject
          System.Windows.DependencyObject
             System.Windows.Media.Visual
                System.Windows.UIElement
                   System.Windows.FrameworkElement
                      System.Windows.Controls.Control
                         System.Windows.Controls.ItemsControl
                            Xceed.Wpf.Toolkit.Primitives.Selector
                               Xceed.Wpf.Toolkit.Primitives.SelectAllSelector
                                  Xceed.Wpf.Toolkit.CheckListBox

    Requirements

    See Also