DevToys logo DevToys
  • Home
  • Blog
  • Documentation
  • Download
Search Results for

    Show / Hide Table of Contents

    Interface IUIList

    A component that represents a list of items.

    Inherited Members
    IUIElementWithChildren.GetChildElementById(string)
    IUIElement.Id
    IUIElement.IsVisible
    IUIElement.IsEnabled
    IUIElement.HorizontalAlignment
    IUIElement.VerticalAlignment
    IUIElement.IsVisibleChanged
    IUIElement.IsEnabledChanged
    IUIElement.HorizontalAlignmentChanged
    IUIElement.VerticalAlignmentChanged
    Namespace: DevToys.Api
    Assembly: DevToys.Api.dll
    Syntax
    public interface IUIList : IUIElementWithChildren, IUIElement

    Properties

    CanSelectItem

    Gets whether items are selectable in the list. Default is true.

    Declaration
    bool CanSelectItem { get; }
    Property Value
    Type Description
    bool

    Items

    Gets the list of items displayed in the list.

    Declaration
    ObservableCollection<IUIListItem> Items { get; }
    Property Value
    Type Description
    ObservableCollection<IUIListItem>

    OnItemSelectedAction

    Gets the action to run when the user selects an item in the list.

    Declaration
    Func<IUIListItem?, ValueTask>? OnItemSelectedAction { get; }
    Property Value
    Type Description
    Func<IUIListItem, ValueTask>

    SelectedItem

    Gets the selected item in the list.

    Declaration
    IUIListItem? SelectedItem { get; }
    Property Value
    Type Description
    IUIListItem

    Events

    CanSelectItemChanged

    Raised when CanSelectItem is changed.

    Declaration
    event EventHandler? CanSelectItemChanged
    Event Type
    Type Description
    EventHandler

    SelectedItemChanged

    Raised when SelectedItem is changed.

    Declaration
    event EventHandler? SelectedItemChanged
    Event Type
    Type Description
    EventHandler

    Extension Methods

    GUI.AlignHorizontally<T>(T, UIHorizontalAlignment)
    GUI.AlignVertically<T>(T, UIVerticalAlignment)
    GUI.AllowSelectItem(IUIList)
    GUI.Disable<T>(T)
    GUI.Enable<T>(T)
    GUI.ForbidSelectItem(IUIList)
    GUI.Hide<T>(T)
    GUI.OnItemSelected(IUIList, Action<IUIListItem?>?)
    GUI.OnItemSelected(IUIList, Func<IUIListItem?, ValueTask>?)
    GUI.Select(IUIList, IUIListItem?)
    GUI.Select(IUIList, int)
    GUI.Show<T>(T)
    GUI.WithItems(IUIList, params IUIListItem[])
    LoggingExtensions.Log<T>(T)
    In this article
    DevToys logo © 2024 DevToys