Skip to content

XUISourceListRendererWindows11

Implements XUISourceListRenderer

Description

A source list renderer that renders a XUISourceList similar to that seen in the Windows 11 File Explorer application.

Properties

Name Type Read-Only
mOwner WeakRef

Methods

Name Parameters Returns
Constructor owner As XUISourceList
IndentWidth Integer
Owner XUISourceList
RenderBackground g As Graphics, row As Integer
RenderItem item As XUISourceListItem, g As Graphics, hoveringOverRow As Boolean, isSelected As Boolean, draggingOverRow As Boolean
RowHeight Integer

Constants

Name Type
BADGE_LEFT_PADDING Double
CONTENT_HORIZ_PADDING Double
CONTENT_VERT_PADDING Double
DISCLOSURE_LEFT_PADDING Double
DISCLOSURE_MAX_WIDTH Double
ICON_LEFT_PADDING Double
INDENT_WIDTH_HIERARCHICAL Double
INDENT_WIDTH_NON_HIERARCHICAL Double
SELECTION_HORIZ_PADDING Double
TITLE_LEFT_PADDING Double

BADGE_LEFT_PADDING As Double The number of pixels to pad the left edge of the badge.


CONTENT_HORIZ_PADDING As Double The number of pixels to pad the content of a row from its left and right edges.


CONTENT_VERT_PADDING As Double The number of pixels to pad the content of a row above and below.


DISCLOSURE_LEFT_PADDING As Double The number of pixels to pad the left edge of the disclosure widget.


DISCLOSURE_MAX_WIDTH As Double The maximum width the disclosure widget is.


ICON_LEFT_PADDING As Double The number of pixels to pad the left side of an item's icon from a disclosure widget.


INDENT_WIDTH_HIERARCHICAL As Double The number of pixels of indentation each level of depth adds to the X offset.


INDENT_WIDTH_NON_HIERARCHICAL As Double The number of pixels of indentation each level of depth adds to the X offset.


SELECTION_HORIZ_PADDING As Double The number of pixels to pad the selection background from its left and right edges.


TITLE_LEFT_PADDING As Double The number of pixels to pad the left side of an item's title from its icon.


Property Descriptions

mOwner As WeakRef

A weak reference to the source list that this renderer operates on.


Method Descriptions

Constructor(owner As XUISourceList)

owner is the XUISourceList that owns this renderer. A WeakRef will be created.


IndentWidth() As Integer

Returns the indent width to use. Depends on whether or not the source list is hierarchical.


Owner() As XUISourceList

The source list that this renderer operates on.

Part of the XUISourceListRenderer interface.


RenderBackground(g As Graphics, row As Integer)

Draw the background for the specified row. The row may be empty.

Part of the XUISourceListRenderer interface.


RenderItem(item As XUISourceListItem, g As Graphics, hoveringOverRow As Boolean, isSelected As Boolean, draggingOverRow As Boolean)

Renders item to the passed graphics context. The context is the entire row the item occupies.

Part of the XUISourceListRenderer interface.


RowHeight() As Integer

The height of a row in the source list.

Part of the XUISourceListRenderer interface.