Class DelegatingListBox
Subclasses ListBox to provide an easy way for a consumer of ListBox to hook into the four standard ListBox Container overrides.
Inheritance
Inherited Members
Namespace: System.Windows.Controls.DataVisualization.Charting.Primitives
Assembly: Controls.DataVisualization.OpenSilver.dll
Syntax
public class DelegatingListBox : ListBox
Constructors
| Improve this Doc View SourceDelegatingListBox()
Initializes a new instance of the DelegatingListBox class.
Declaration
public DelegatingListBox()
Properties
| Improve this Doc View SourceClearContainerForItem
Gets or sets an action to call when the ClearContainerForItem method executes.
Declaration
public Action<DependencyObject, object> ClearContainerForItem { get; set; }
Property Value
Type | Description |
---|---|
System.Action<DependencyObject, System.Object> |
GetContainerForItem
Gets or sets a function to call when the GetContainerForItem method executes.
Declaration
public Func<DependencyObject> GetContainerForItem { get; set; }
Property Value
Type | Description |
---|---|
System.Func<DependencyObject> |
IsItemItsOwnContainer
Gets or sets a function to call when the IsItemItsOwnContainerOverride method executes.
Declaration
public Func<object, bool> IsItemItsOwnContainer { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.Object, System.Boolean> |
PrepareContainerForItem
Gets or sets an action to call when the PrepareContainerForItem method executes.
Declaration
public Action<DependencyObject, object> PrepareContainerForItem { get; set; }
Property Value
Type | Description |
---|---|
System.Action<DependencyObject, System.Object> |
Methods
| Improve this Doc View SourceClearContainerForItemOverride(DependencyObject, Object)
Undoes the effects of the PrepareContainerForItemOverride method.
Declaration
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | element | The container element. |
System.Object | item | The item to display. |
GetContainerForItemOverride()
Creates or identifies the element that is used to display the given item.
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
Type | Description |
---|---|
DependencyObject | The element that is used to display the given item. |
Overrides
| Improve this Doc View SourceIsItemItsOwnContainerOverride(Object)
Determines if the specified item is (or is eligible to be) its own container.
Declaration
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | The item to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if the item is (or is eligible to be) its own container; otherwise, false. |
PrepareContainerForItemOverride(DependencyObject, Object)
Prepares the specified element to display the specified item.
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | element | The element used to display the specified item. |
System.Object | item | The item to display. |