HypernovaDesktop Components · docs
Binarymission
WPFSmart Navigator › BinarySmartListBox

BinarySmartListBox

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Controls.ListControls

A custom ListBox class that provides a customized and enhanced items navigation experience.

public class BinarySmartListBox : ListBox

Inherits from / implements: ListBox

Remarks

The control is similar to ListBox class in terms of usage. Simply instantiate this control, and add as many instance of ListBoxItem items.

Members at a glance

BinarySmartListBoxInitializes a new instance of the BinarySmartListBox class.
ControlAnimationTypeGets or sets the type of the control animation.
ItemEllipseBorderBrushHoverGets or sets the item ellipse border brush on hover.
ItemEllipseBorderBrushNormalGets or sets the item ellipse border brush normal.
ItemEllipseBorderBrushSelectedGets or sets the item ellipse border brush on selected.
ItemEllipseFillHoverGets or sets the item ellipse fill hover brush.
ItemEllipseFillNormalGets or sets the item ellipse fill normal brush.
ItemEllipseFillSelectedGets or sets the item ellipse fill selected brush.
ItemTitleBackgroundGets or sets the item title background brush,
ItemTitleForegroundGets or sets the item title foreground brush.
NavigationButtonArrowFillGets or sets the navigation button arrow fill brush.
NavigationButtonDisabledArrowFillGets or sets the navigation button disabled arrow fill brush.
NavigationButtonDisabledBackgroundGets or sets the navigation button disabled background brush.
NavigationButtonDisabledBorderGets or sets the navigation button disabled border brush.
NavigationButtonDisabledBorderBrushForStrokeLayerGets or sets the navigation button disabled border brush for stroke layer.
NavigationButtonDropShadowColorGets or sets the color of the navigation button drop shadow.
NavigationButtonDropShadowSoftnessGets or sets the navigation button drop shadow softness.
NavigationButtonHasDropShadowGets or sets a value indicating whether the navigation button has drop shadow rendered.
NavigationButtonHoverBackgroundGets or sets the navigation button hover background brush.
NavigationButtonHoverBorderGets or sets the navigation button hover border brush.
NavigationButtonHoverBorderBrushForStrokeLayerGets or sets the navigation button hover border brush for stroke layer.
NavigationButtonNormalBackgroundGets or sets the navigation button normal background brush.
NavigationButtonNormalBorderGets or sets the navigation button normal border brush.
NavigationButtonNormalBorderBrushForStrokeLayerGets or sets the navigation button normal border brush for stroke layer.
NavigationButtonPressedBackgroundGets or sets the navigation button pressed background brush.
NavigationButtonPressedBorderGets or sets the navigation button pressed border brush.
NavigationButtonPressedBorderBrushForStrokeLayerGets or sets the navigation button pressed border brush for stroke layer.
NavigationOrientationGets or sets the navigation orientation.
OnApplyTemplateWhen overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.
OnKeyUpRaises the KeyUp event. BinarySmartListBox overrides it so the control's own handling runs alongside the base behavior.
OnRenderSizeChangedCalled when the rendered size of the list changes, which is where the navigator recalculates how many items fit.
OnSelectionChangedRaises the SelectionChanged event. BinarySmartListBox overrides it so the control's own handling runs alongside the base behavior.
ControlAnimationTypePropertyIdentifies the ControlAnimationType dependency property.
ItemEllipseBorderBrushHoverPropertyIdentifies the ItemEllipseBorderBrushHover dependency property.
ItemEllipseBorderBrushNormalPropertyIdentifies the ItemEllipseBorderBrushNormal dependency property.
ItemEllipseBorderBrushSelectedPropertyIdentifies the ItemEllipseBorderBrushSelected dependency property.
ItemEllipseFillHoverPropertyIdentifies the ItemEllipseFillHover dependency property.
ItemEllipseFillNormalPropertyIdentifies the ItemEllipseFillNormal dependency property.
ItemEllipseFillSelectedPropertyIdentifies the ItemEllipseFillSelected dependency property.
ItemTitleBackgroundPropertyIdentifies the ItemTitleBackground dependency property.
ItemTitleForegroundPropertyIdentifies the ItemTitleForeground dependency property.
NavigationButtonArrowFillPropertyIdentifies the NavigationButtonArrowFill dependency property.
NavigationButtonDisabledArrowFillPropertyIdentifies the NavigationButtonDisabledArrowFill dependency property.
NavigationButtonDisabledBackgroundPropertyIdentifies the NavigationButtonDisabledBackground dependency property.
NavigationButtonDisabledBorderBrushForStrokeLayerPropertyIdentifies the NavigationButtonDisabledBorderBrushForStrokeLayer dependency property.
NavigationButtonDisabledBorderPropertyIdentifies the NavigationButtonDisabledBorder dependency property.
NavigationButtonDropShadowColorPropertyIdentifies the NavigationButtonDropShadowColor dependency property.
NavigationButtonDropShadowSoftnessPropertyIdentifies the NavigationButtonDropShadowSoftness dependency property.
NavigationButtonHasDropShadowPropertyIdentifies the NavigationButtonHasDropShadow dependency property.
NavigationButtonHoverBackgroundPropertyIdentifies the NavigationButtonHoverBackground dependency property.
NavigationButtonHoverBorderBrushForStrokeLayerPropertyIdentifies the NavigationButtonHoverBorderBrushForStrokeLayer dependency property.
NavigationButtonHoverBorderPropertyIdentifies the NavigationButtonHoverBorder dependency property.
NavigationButtonNormalBackgroundPropertyIdentifies the NavigationButtonNormalBackground dependency property.
NavigationButtonNormalBorderBrushForStrokeLayerPropertyIdentifies the NavigationButtonNormalBorderBrushForStrokeLayer dependency property.
NavigationButtonNormalBorderPropertyIdentifies the NavigationButtonNormalBorder dependency property.
NavigationButtonPressedBackgroundPropertyIdentifies the NavigationButtonPressedBackground dependency property.
NavigationButtonPressedBorderBrushForStrokeLayerPropertyIdentifies the NavigationButtonPressedBorderBrushForStrokeLayer dependency property.
NavigationButtonPressedBorderPropertyIdentifies the NavigationButtonPressedBorder dependency property.
NavigationOrientationPropertyIdentifies the NavigationOrientation dependency property.

Constructors

BinarySmartListBox

public BinarySmartListBox() : base()

Initializes a new instance of the BinarySmartListBox class.

Properties

ControlAnimationType

public ControlItemAnimationType ControlAnimationType

Gets or sets the type of the control animation.

Value. The type of the control animation.

ItemEllipseBorderBrushHover

public Brush ItemEllipseBorderBrushHover

Gets or sets the item ellipse border brush on hover.

ItemEllipseBorderBrushNormal

public Brush ItemEllipseBorderBrushNormal

Gets or sets the item ellipse border brush normal.

ItemEllipseBorderBrushSelected

public Brush ItemEllipseBorderBrushSelected

Gets or sets the item ellipse border brush on selected.

ItemEllipseFillHover

public Brush ItemEllipseFillHover

Gets or sets the item ellipse fill hover brush.

ItemEllipseFillNormal

public Brush ItemEllipseFillNormal

Gets or sets the item ellipse fill normal brush.

ItemEllipseFillSelected

public Brush ItemEllipseFillSelected

Gets or sets the item ellipse fill selected brush.

ItemTitleBackground

public Brush ItemTitleBackground

Gets or sets the item title background brush,

ItemTitleForeground

public Brush ItemTitleForeground

Gets or sets the item title foreground brush.

NavigationButtonArrowFill

public Brush NavigationButtonArrowFill

Gets or sets the navigation button arrow fill brush.

NavigationButtonDisabledArrowFill

public Brush NavigationButtonDisabledArrowFill

Gets or sets the navigation button disabled arrow fill brush.

NavigationButtonDisabledBackground

public Brush NavigationButtonDisabledBackground

Gets or sets the navigation button disabled background brush.

NavigationButtonDisabledBorder

public Brush NavigationButtonDisabledBorder

Gets or sets the navigation button disabled border brush.

NavigationButtonDisabledBorderBrushForStrokeLayer

public Brush NavigationButtonDisabledBorderBrushForStrokeLayer

Gets or sets the navigation button disabled border brush for stroke layer.

NavigationButtonDropShadowColor

public Color NavigationButtonDropShadowColor

Gets or sets the color of the navigation button drop shadow.

Value. The color of the navigation button drop shadow.

NavigationButtonDropShadowSoftness

public double NavigationButtonDropShadowSoftness

Gets or sets the navigation button drop shadow softness.

Value. The navigation button drop shadow softness.

NavigationButtonHasDropShadow

public bool NavigationButtonHasDropShadow

Gets or sets a value indicating whether the navigation button has drop shadow rendered.

Value. true if [navigation button has drop shadow]; otherwise, false .

NavigationButtonHoverBackground

public Brush NavigationButtonHoverBackground

Gets or sets the navigation button hover background brush.

NavigationButtonHoverBorder

public Brush NavigationButtonHoverBorder

Gets or sets the navigation button hover border brush.

NavigationButtonHoverBorderBrushForStrokeLayer

public Brush NavigationButtonHoverBorderBrushForStrokeLayer

Gets or sets the navigation button hover border brush for stroke layer.

NavigationButtonNormalBackground

public Brush NavigationButtonNormalBackground

Gets or sets the navigation button normal background brush.

NavigationButtonNormalBorder

public Brush NavigationButtonNormalBorder

Gets or sets the navigation button normal border brush.

NavigationButtonNormalBorderBrushForStrokeLayer

public Brush NavigationButtonNormalBorderBrushForStrokeLayer

Gets or sets the navigation button normal border brush for stroke layer.

Value. The navigation button normal border brush for stroke layer.

NavigationButtonPressedBackground

public Brush NavigationButtonPressedBackground

Gets or sets the navigation button pressed background brush.

NavigationButtonPressedBorder

public Brush NavigationButtonPressedBorder

Gets or sets the navigation button pressed border brush.

NavigationButtonPressedBorderBrushForStrokeLayer

public Brush NavigationButtonPressedBorderBrushForStrokeLayer

Gets or sets the navigation button pressed border brush for stroke layer.

NavigationOrientation

public NavigationOrientationIs NavigationOrientation

Gets or sets the navigation orientation.

Value. The navigation orientation.

Methods

OnApplyTemplate

public override void OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.

OnKeyUp

protected override void OnKeyUp(KeyEventArgs e)

Raises the KeyUp event. BinarySmartListBox overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnRenderSizeChanged

protected override void OnRenderSizeChanged(SizeChangedInfo sizeInfo)

Called when the rendered size of the list changes, which is where the navigator recalculates how many items fit.

sizeInfo
What changed about the size.

OnSelectionChanged

protected override void OnSelectionChanged(SelectionChangedEventArgs e)

Raises the SelectionChanged event. BinarySmartListBox overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

Fields

ControlAnimationTypeProperty

public static readonly DependencyProperty ControlAnimationTypeProperty

Identifies the ControlAnimationType dependency property.

ItemEllipseBorderBrushHoverProperty

public static readonly DependencyProperty ItemEllipseBorderBrushHoverProperty

Identifies the ItemEllipseBorderBrushHover dependency property.

ItemEllipseBorderBrushNormalProperty

public static readonly DependencyProperty ItemEllipseBorderBrushNormalProperty

Identifies the ItemEllipseBorderBrushNormal dependency property.

ItemEllipseBorderBrushSelectedProperty

public static readonly DependencyProperty ItemEllipseBorderBrushSelectedProperty

Identifies the ItemEllipseBorderBrushSelected dependency property.

ItemEllipseFillHoverProperty

public static readonly DependencyProperty ItemEllipseFillHoverProperty

Identifies the ItemEllipseFillHover dependency property.

ItemEllipseFillNormalProperty

public static readonly DependencyProperty ItemEllipseFillNormalProperty

Identifies the ItemEllipseFillNormal dependency property.

ItemEllipseFillSelectedProperty

public static readonly DependencyProperty ItemEllipseFillSelectedProperty

Identifies the ItemEllipseFillSelected dependency property.

ItemTitleBackgroundProperty

public static readonly DependencyProperty ItemTitleBackgroundProperty

Identifies the ItemTitleBackground dependency property.

ItemTitleForegroundProperty

public static readonly DependencyProperty ItemTitleForegroundProperty

Identifies the ItemTitleForeground dependency property.

NavigationButtonArrowFillProperty

public static readonly DependencyProperty NavigationButtonArrowFillProperty

Identifies the NavigationButtonArrowFill dependency property.

NavigationButtonDisabledArrowFillProperty

public static readonly DependencyProperty NavigationButtonDisabledArrowFillProperty

Identifies the NavigationButtonDisabledArrowFill dependency property.

NavigationButtonDisabledBackgroundProperty

public static readonly DependencyProperty NavigationButtonDisabledBackgroundProperty

Identifies the NavigationButtonDisabledBackground dependency property.

NavigationButtonDisabledBorderBrushForStrokeLayerProperty

public static readonly DependencyProperty NavigationButtonDisabledBorderBrushForStrokeLayerProperty

Identifies the NavigationButtonDisabledBorderBrushForStrokeLayer dependency property.

NavigationButtonDisabledBorderProperty

public static readonly DependencyProperty NavigationButtonDisabledBorderProperty

Identifies the NavigationButtonDisabledBorder dependency property.

NavigationButtonDropShadowColorProperty

public static readonly DependencyProperty NavigationButtonDropShadowColorProperty

Identifies the NavigationButtonDropShadowColor dependency property.

NavigationButtonDropShadowSoftnessProperty

public static readonly DependencyProperty NavigationButtonDropShadowSoftnessProperty

Identifies the NavigationButtonDropShadowSoftness dependency property.

NavigationButtonHasDropShadowProperty

public static readonly DependencyProperty NavigationButtonHasDropShadowProperty

Identifies the NavigationButtonHasDropShadow dependency property.

NavigationButtonHoverBackgroundProperty

public static readonly DependencyProperty NavigationButtonHoverBackgroundProperty

Identifies the NavigationButtonHoverBackground dependency property.

NavigationButtonHoverBorderBrushForStrokeLayerProperty

public static readonly DependencyProperty NavigationButtonHoverBorderBrushForStrokeLayerProperty

Identifies the NavigationButtonHoverBorderBrushForStrokeLayer dependency property.

NavigationButtonHoverBorderProperty

public static readonly DependencyProperty NavigationButtonHoverBorderProperty

Identifies the NavigationButtonHoverBorder dependency property.

NavigationButtonNormalBackgroundProperty

public static readonly DependencyProperty NavigationButtonNormalBackgroundProperty

Identifies the NavigationButtonNormalBackground dependency property.

NavigationButtonNormalBorderBrushForStrokeLayerProperty

public static readonly DependencyProperty NavigationButtonNormalBorderBrushForStrokeLayerProperty

Identifies the NavigationButtonNormalBorderBrushForStrokeLayer dependency property.

NavigationButtonNormalBorderProperty

public static readonly DependencyProperty NavigationButtonNormalBorderProperty

Identifies the NavigationButtonNormalBorder dependency property.

NavigationButtonPressedBackgroundProperty

public static readonly DependencyProperty NavigationButtonPressedBackgroundProperty

Identifies the NavigationButtonPressedBackground dependency property.

NavigationButtonPressedBorderBrushForStrokeLayerProperty

public static readonly DependencyProperty NavigationButtonPressedBorderBrushForStrokeLayerProperty

Identifies the NavigationButtonPressedBorderBrushForStrokeLayer dependency property.

NavigationButtonPressedBorderProperty

public static readonly DependencyProperty NavigationButtonPressedBorderProperty

Identifies the NavigationButtonPressedBorder dependency property.

NavigationOrientationProperty

public static readonly DependencyProperty NavigationOrientationProperty

Identifies the NavigationOrientation dependency property.