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

    Show / Hide Table of Contents

    Class GUI

    Provides a set of extension methods for various UI components.

    Inheritance
    object
    GUI
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: DevToys.Api
    Assembly: DevToys.Api.dll
    Syntax
    public static class GUI

    Properties

    Auto

    A grid length definition that automatically fits to its content.

    Declaration
    public static UIGridLength Auto { get; }
    Property Value
    Type Description
    UIGridLength

    Methods

    AccentAppearance(IUIButton)

    Sets the button to appear as accented.

    Declaration
    public static IUIButton AccentAppearance(this IUIButton element)
    Parameters
    Type Name Description
    IUIButton element

    The IUIButton instance.

    Returns
    Type Description
    IUIButton

    The updated IUIButton instance.

    AlignHorizontally<T>(T, UIHorizontalAlignment)

    Align the element horizontally.

    Declaration
    public static T AlignHorizontally<T>(this T element, UIHorizontalAlignment alignment) where T : IUIElement
    Parameters
    Type Name Description
    T element
    UIHorizontalAlignment alignment
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    AlignVertically<T>(T, UIVerticalAlignment)

    Align the element vertically.

    Declaration
    public static T AlignVertically<T>(this T element, UIVerticalAlignment alignment) where T : IUIElement
    Parameters
    Type Name Description
    T element
    UIVerticalAlignment alignment
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    AllowSelectItem(IUIDataGrid)

    Allows the user to select a row in the data grid.

    Declaration
    public static IUIDataGrid AllowSelectItem(this IUIDataGrid element)
    Parameters
    Type Name Description
    IUIDataGrid element
    Returns
    Type Description
    IUIDataGrid

    AllowSelectItem(IUIList)

    Allows the user to select an item in the list.

    Declaration
    public static IUIList AllowSelectItem(this IUIList element)
    Parameters
    Type Name Description
    IUIList element
    Returns
    Type Description
    IUIList

    AlwaysShowLineNumber(IUIMultiLineTextInput)

    Indicates that the line number should always be displayed in the editor.

    Declaration
    public static IUIMultiLineTextInput AlwaysShowLineNumber(this IUIMultiLineTextInput element)
    Parameters
    Type Name Description
    IUIMultiLineTextInput element
    Returns
    Type Description
    IUIMultiLineTextInput

    AlwaysWrap(IUIMultiLineTextInput)

    Indicates that the text in the editor will always wrap when it reaches the border of the editor.

    Declaration
    public static IUIMultiLineTextInput AlwaysWrap(this IUIMultiLineTextInput element)
    Parameters
    Type Name Description
    IUIMultiLineTextInput element
    Returns
    Type Description
    IUIMultiLineTextInput

    AutoLineNumber(IUIMultiLineTextInput)

    Indicates that the line number should be automatically shown or hidden depending on the user's settings.

    Declaration
    public static IUIMultiLineTextInput AutoLineNumber(this IUIMultiLineTextInput element)
    Parameters
    Type Name Description
    IUIMultiLineTextInput element
    Returns
    Type Description
    IUIMultiLineTextInput

    AutoWrap(IUIMultiLineTextInput)

    Indicates that the text in the editor will wrap automatically according to the user's settings.

    Declaration
    public static IUIMultiLineTextInput AutoWrap(this IUIMultiLineTextInput element)
    Parameters
    Type Name Description
    IUIMultiLineTextInput element
    Returns
    Type Description
    IUIMultiLineTextInput

    BottomPaneLength(IUISplitGrid, UIGridLength)

    Set the length of the bottom pane.

    Declaration
    public static IUISplitGrid BottomPaneLength(this IUISplitGrid element, UIGridLength length)
    Parameters
    Type Name Description
    IUISplitGrid element
    UIGridLength length
    Returns
    Type Description
    IUISplitGrid

    Button()

    Create a component that represents a button, which reacts when clicking on it.

    Declaration
    public static IUIButton Button()
    Returns
    Type Description
    IUIButton

    The created IUIButton instance.

    Button(string?)

    Create a component that represents a button, which reacts when clicking on it.

    Declaration
    public static IUIButton Button(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUIButton

    The created IUIButton instance.

    Button(string?, string)

    Create a component that represents a button, which reacts when clicking on it.

    Declaration
    public static IUIButton Button(string? id, string text)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    string text

    The text to display in the button.

    Returns
    Type Description
    IUIButton

    CanCopyWhenEditable<T>(T)

    Shows the "copy" button when the editor is editable.

    Declaration
    public static T CanCopyWhenEditable<T>(this T element) where T : IUISingleLineTextInput
    Parameters
    Type Name Description
    T element
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    CanSelectManyFiles(IUIFileSelector)

    Allows the user to select multiple files at once.

    Declaration
    public static IUIFileSelector CanSelectManyFiles(this IUIFileSelector element)
    Parameters
    Type Name Description
    IUIFileSelector element
    Returns
    Type Description
    IUIFileSelector

    CanSelectOneFile(IUIFileSelector)

    Allows the user to select only one file at once.

    Declaration
    public static IUIFileSelector CanSelectOneFile(this IUIFileSelector element)
    Parameters
    Type Name Description
    IUIFileSelector element
    Returns
    Type Description
    IUIFileSelector

    CannotCopyWhenEditable<T>(T)

    Hides the "copy" button when the editor is editable.

    Declaration
    public static T CannotCopyWhenEditable<T>(this T element) where T : IUISingleLineTextInput
    Parameters
    Type Name Description
    T element
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    Card(IUIElement)

    A component that represents an empty card and IUIElement for the option value.

    Declaration
    public static IUICard Card(IUIElement uiElement)
    Parameters
    Type Name Description
    IUIElement uiElement

    The UI element to display.

    Returns
    Type Description
    IUICard

    Card(string?, IUIElement)

    A component that represents an empty card and IUIElement for the option value.

    Declaration
    public static IUICard Card(string? id, IUIElement uiElement)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    IUIElement uiElement

    The UI element to display.

    Returns
    Type Description
    IUICard

    Cell()

    Create a component hosted by a IUIGrid that represents a cell in a flexible grid.

    Declaration
    public static IUIGridCell Cell()
    Returns
    Type Description
    IUIGridCell

    Cell(IUIElement)

    Create component that represents a cell in a IUIDataGridRow.

    Declaration
    public static IUIDataGridCell Cell(IUIElement uiElement)
    Parameters
    Type Name Description
    IUIElement uiElement

    The element to display in the cell.

    Returns
    Type Description
    IUIDataGridCell

    Cell(int, int, int, int, IUIElement?)

    Create a component hosted by a IUIGrid that represents a cell in a flexible grid.

    Declaration
    public static IUIGridCell Cell(int row, int column, int rowSpan, int columnSpan, IUIElement? child = null)
    Parameters
    Type Name Description
    int row

    The row alignment of the cell.

    int column

    The column alignment of the cell.

    int rowSpan

    A value that indicates the total number of rows that the cell content spans within the parent grid.

    int columnSpan

    A value that indicates the total number of columns that the cell content spans within the parent grid.

    IUIElement child

    The child element to display in the cell.

    Returns
    Type Description
    IUIGridCell

    Cell(string?)

    Create component that represents a cell in a IUIDataGridRow.

    Declaration
    public static IUIDataGridCell Cell(string? text)
    Parameters
    Type Name Description
    string text

    The text to display in the cell.

    Returns
    Type Description
    IUIDataGridCell

    Cell<TRow, TColumn>(TRow, TRow, TColumn, TColumn?, IUIElement?)

    Create a component hosted by a IUIGrid that represents a cell in a flexible grid.

    Declaration
    public static IUIGridCell Cell<TRow, TColumn>(TRow firstRow, TRow lastRow, TColumn firstColumn, TColumn? lastColumn = default, IUIElement? child = null) where TRow : Enum where TColumn : Enum
    Parameters
    Type Name Description
    TRow firstRow

    The first row where the cell should appear.

    TRow lastRow

    The last row where the cell should appear.

    TColumn firstColumn

    The first column where the cell should appear.

    TColumn lastColumn

    The last column where the cell should appear.

    IUIElement child

    The child element to display in the cell.

    Returns
    Type Description
    IUIGridCell
    Type Parameters
    Name Description
    TRow
    TColumn

    Cell<TRow, TColumn>(TRow, TColumn, IUIElement?)

    Create a component hosted by a IUIGrid that represents a cell in a flexible grid.

    Declaration
    public static IUIGridCell Cell<TRow, TColumn>(TRow row, TColumn column, IUIElement? child = null) where TRow : Enum where TColumn : Enum
    Parameters
    Type Name Description
    TRow row

    The row where the cell should be placed.

    TColumn column

    The column where the cell should be placed.

    IUIElement child

    The child element to display in the cell.

    Returns
    Type Description
    IUIGridCell
    Type Parameters
    Name Description
    TRow
    TColumn

    Cells(IUIGrid, params IUIGridCell[])

    Sets the cells in the grid.

    Declaration
    public static IUIGrid Cells(this IUIGrid element, params IUIGridCell[] cells)
    Parameters
    Type Name Description
    IUIGrid element
    IUIGridCell[] cells
    Returns
    Type Description
    IUIGrid

    Clear(IUIImageViewer)

    Clears the value of ImageSource.

    Declaration
    public static IUIImageViewer Clear(this IUIImageViewer element)
    Parameters
    Type Name Description
    IUIImageViewer element

    The IUIImageViewer instance.

    Returns
    Type Description
    IUIImageViewer

    The updated IUIImageViewer instance.

    Closable(IUIInfoBar)

    Makes the bar closable explicitly by the user.

    Declaration
    public static IUIInfoBar Closable(this IUIInfoBar element)
    Parameters
    Type Name Description
    IUIInfoBar element
    Returns
    Type Description
    IUIInfoBar

    Close(IUIInfoBar)

    Closes the bar.

    Declaration
    public static IUIInfoBar Close(this IUIInfoBar element)
    Parameters
    Type Name Description
    IUIInfoBar element
    Returns
    Type Description
    IUIInfoBar

    Column(IUIGridCell, int)

    Sets the column alignment of the cell.

    Declaration
    public static IUIGridCell Column(this IUIGridCell element, int column)
    Parameters
    Type Name Description
    IUIGridCell element
    int column
    Returns
    Type Description
    IUIGridCell

    ColumnLargeSpacing(IUIGrid)

    Sets a large spacing between columns.

    Declaration
    public static IUIGrid ColumnLargeSpacing(this IUIGrid element)
    Parameters
    Type Name Description
    IUIGrid element
    Returns
    Type Description
    IUIGrid

    ColumnMediumSpacing(IUIGrid)

    Sets a medium spacing between columns.

    Declaration
    public static IUIGrid ColumnMediumSpacing(this IUIGrid element)
    Parameters
    Type Name Description
    IUIGrid element
    Returns
    Type Description
    IUIGrid

    ColumnNoSpacing(IUIGrid)

    Sets no spacing between columns.

    Declaration
    public static IUIGrid ColumnNoSpacing(this IUIGrid element)
    Parameters
    Type Name Description
    IUIGrid element
    Returns
    Type Description
    IUIGrid

    ColumnSmallSpacing(IUIGrid)

    Sets a small spacing between columns.

    Declaration
    public static IUIGrid ColumnSmallSpacing(this IUIGrid element)
    Parameters
    Type Name Description
    IUIGrid element
    Returns
    Type Description
    IUIGrid

    ColumnSpan(IUIGridCell, int)

    Sets a value that indicates the total number of columns that the cell content spans within the parent grid.

    Declaration
    public static IUIGridCell ColumnSpan(this IUIGridCell element, int columns)
    Parameters
    Type Name Description
    IUIGridCell element
    int columns
    Returns
    Type Description
    IUIGridCell

    Columns(IUIGrid, params UIGridLength[])

    Sets the columns.

    Declaration
    public static IUIGrid Columns(this IUIGrid element, params UIGridLength[] widths)
    Parameters
    Type Name Description
    IUIGrid element
    UIGridLength[] widths
    Returns
    Type Description
    IUIGrid

    Columns<TEnum>(IUIGrid, params (TEnum name, UIGridLength width)[])

    Sets the columns.

    Declaration
    public static IUIGrid Columns<TEnum>(this IUIGrid element, params (TEnum name, UIGridLength width)[] columns) where TEnum : Enum
    Parameters
    Type Name Description
    IUIGrid element
    (TEnum name, UIGridLength height)[] columns
    Returns
    Type Description
    IUIGrid
    Type Parameters
    Name Description
    TEnum

    CommandBarExtraContent(IUIDataGrid, IUIElement?)

    Defines an additional element to display in the command bar.

    Declaration
    public static IUIDataGrid CommandBarExtraContent(this IUIDataGrid element, IUIElement? extraElement)
    Parameters
    Type Name Description
    IUIDataGrid element
    IUIElement extraElement
    Returns
    Type Description
    IUIDataGrid

    CommandBarExtraContent<T>(T, IUIElement?)

    Defines an additional element to display in the command bar.

    Declaration
    public static T CommandBarExtraContent<T>(this T element, IUIElement? extraElement) where T : IUISingleLineTextInput
    Parameters
    Type Name Description
    T element
    IUIElement extraElement
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    DataGrid()

    A component that represents a grid that can display data in with rows and columns.

    Declaration
    public static IUIDataGrid DataGrid()
    Returns
    Type Description
    IUIDataGrid

    DataGrid(string?)

    A component that represents a grid that can display data in with rows and columns.

    Declaration
    public static IUIDataGrid DataGrid(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUIDataGrid

    Description(IUIInfoBar, string?)

    Sets the Description of the bar.

    Declaration
    public static IUIInfoBar Description(this IUIInfoBar element, string? description)
    Parameters
    Type Name Description
    IUIInfoBar element
    string description
    Returns
    Type Description
    IUIInfoBar

    Description(IUISetting, string?)

    Sets the Description of the setting.

    Declaration
    public static IUISetting Description(this IUISetting element, string? text)
    Parameters
    Type Name Description
    IUISetting element

    The IUISetting instance.

    string text

    The description text.

    Returns
    Type Description
    IUISetting

    The updated IUISetting instance.

    Description(IUISettingGroup, string?)

    Sets the Description of the setting.

    Declaration
    public static IUISettingGroup Description(this IUISettingGroup element, string? description)
    Parameters
    Type Name Description
    IUISettingGroup element

    The IUISettingGroup element.

    string description

    The description.

    Returns
    Type Description
    IUISettingGroup

    The updated IUISettingGroup element.

    DiffTextInput()

    A component that can be used to display side by side or inlined texts and highlight differences between them.

    Declaration
    public static IUIDiffTextInput DiffTextInput()
    Returns
    Type Description
    IUIDiffTextInput

    DiffTextInput(string?)

    A component that can be used to display side by side or inlined texts and highlight differences between them.

    Declaration
    public static IUIDiffTextInput DiffTextInput(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUIDiffTextInput

    Disable<T>(T)

    Disable the element and its child elements.

    Declaration
    public static T Disable<T>(this T element) where T : IUIElement
    Parameters
    Type Name Description
    T element
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    DropDownButton()

    Create a component that represents a drop down button where the user can click on a menu item.

    Declaration
    public static IUIDropDownButton DropDownButton()
    Returns
    Type Description
    IUIDropDownButton

    DropDownButton(string?)

    Create a component that represents a drop down button where the user can click on a menu item.

    Declaration
    public static IUIDropDownButton DropDownButton(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUIDropDownButton

    DropDownButton(string?, string)

    Create a component that represents a drop down button where the user can click on a menu item.

    Declaration
    public static IUIDropDownButton DropDownButton(string? id, string text)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    string text

    The text to display in the drop down button.

    Returns
    Type Description
    IUIDropDownButton

    DropDownMenuItem()

    Create a component that represents a menu item, which reacts when clicking on it.

    Declaration
    public static IUIDropDownMenuItem DropDownMenuItem()
    Returns
    Type Description
    IUIDropDownMenuItem

    DropDownMenuItem(string)

    Create a component that represents a menu item, which reacts when clicking on it.

    Declaration
    public static IUIDropDownMenuItem DropDownMenuItem(string text)
    Parameters
    Type Name Description
    string text

    The text to display in the menu item.

    Returns
    Type Description
    IUIDropDownMenuItem

    Editable<T>(T)

    Sets the text input control as editable.

    Declaration
    public static T Editable<T>(this T element) where T : IUISingleLineTextInput
    Parameters
    Type Name Description
    T element
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    Enable<T>(T)

    Enable the element and its child elements.

    Declaration
    public static T Enable<T>(this T element) where T : IUIElement
    Parameters
    Type Name Description
    T element
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    Error(IUIInfoBar)

    Sets the Severity to Error.

    Declaration
    public static IUIInfoBar Error(this IUIInfoBar element)
    Parameters
    Type Name Description
    IUIInfoBar element
    Returns
    Type Description
    IUIInfoBar

    Extendable(IUIDataGrid)

    Indicates that the control can be extended to take the size of the whole tool boundaries.

    Declaration
    public static IUIDataGrid Extendable(this IUIDataGrid element)
    Parameters
    Type Name Description
    IUIDataGrid element
    Returns
    Type Description
    IUIDataGrid
    Remarks

    When IsVisible is false and that the element is in full screen mode, the element goes back to normal mode.

    Extendable(IUIDiffTextInput)

    Indicates that the control can be extended to take the size of the whole tool boundaries.

    Declaration
    public static IUIDiffTextInput Extendable(this IUIDiffTextInput element)
    Parameters
    Type Name Description
    IUIDiffTextInput element
    Returns
    Type Description
    IUIDiffTextInput
    Remarks

    When IsVisible is false and that the element is in full screen mode, the element goes back to normal mode.

    Extendable(IUIMultiLineTextInput)

    Indicates that the control can be extended to take the size of the whole tool boundaries.

    Declaration
    public static IUIMultiLineTextInput Extendable(this IUIMultiLineTextInput element)
    Parameters
    Type Name Description
    IUIMultiLineTextInput element
    Returns
    Type Description
    IUIMultiLineTextInput
    Remarks

    When IsVisible is false and that the element is in full screen mode, the element goes back to normal mode.

    FileSelector()

    Create a component that represents a drop zone and selector for files, folders, images coming from the clipboard.

    Declaration
    public static IUIFileSelector FileSelector()
    Returns
    Type Description
    IUIFileSelector

    FileSelector(string?)

    Create a component that represents a drop zone and selector for files, folders, images coming from the clipboard.

    Declaration
    public static IUIFileSelector FileSelector(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUIFileSelector

    FontName(IUIIcon, string)

    Sets the FontName of the icon.

    Declaration
    public static IUIIcon FontName(this IUIIcon element, string fontName)
    Parameters
    Type Name Description
    IUIIcon element
    string fontName
    Returns
    Type Description
    IUIIcon

    ForbidSelectItem(IUIDataGrid)

    Prevents the user from selecting a row in the data grid.

    Declaration
    public static IUIDataGrid ForbidSelectItem(this IUIDataGrid element)
    Parameters
    Type Name Description
    IUIDataGrid element
    Returns
    Type Description
    IUIDataGrid

    ForbidSelectItem(IUIList)

    Prevents the user from selecting an item in the list.

    Declaration
    public static IUIList ForbidSelectItem(this IUIList element)
    Parameters
    Type Name Description
    IUIList element
    Returns
    Type Description
    IUIList

    Fraction(int)

    A grid length definition that is sized as a weighted proportion of available space.

    Declaration
    public static UIGridLength Fraction(int value)
    Parameters
    Type Name Description
    int value
    Returns
    Type Description
    UIGridLength

    Glyph(IUIIcon, char)

    Sets the Glyph of the icon.

    Declaration
    public static IUIIcon Glyph(this IUIIcon element, char glyph)
    Parameters
    Type Name Description
    IUIIcon element
    char glyph
    Returns
    Type Description
    IUIIcon

    Grid()

    A component provides a flexible grid area that consists of columns and rows. Child elements of the Grid are measured and arranged according to their row/column assignments and other logic.

    Declaration
    public static IUIGrid Grid()
    Returns
    Type Description
    IUIGrid

    Grid(string?)

    A component provides a flexible grid area that consists of columns and rows. Child elements of the Grid are measured and arranged according to their row/column assignments and other logic.

    Declaration
    public static IUIGrid Grid(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUIGrid

    Handle(IUISetting, ISettingsProvider, SettingDefinition<bool>, Action<bool>)

    Sets a IUISwitch to InteractiveElement and automatically associate the given settingDefinition to the switch state.

    Declaration
    public static IUISetting Handle(this IUISetting element, ISettingsProvider settingsProvider, SettingDefinition<bool> settingDefinition, Action<bool> onToggled)
    Parameters
    Type Name Description
    IUISetting element

    The IUISetting instance.

    ISettingsProvider settingsProvider

    The settings provider used for handling the given settingDefinition.

    SettingDefinition<bool> settingDefinition

    The definition of the setting to associate with this IUISetting.

    Action<bool> onToggled

    (optional) A method to invoke when the setting value changes.

    Returns
    Type Description
    IUISetting

    The updated IUISetting instance.

    Remarks

    The binding with the setting is going in both directions. When the setting is set, the switch is updated. When the switch is toggled, the setting is updated.

    Handle(IUISetting, ISettingsProvider, SettingDefinition<bool>, Func<bool, ValueTask>?)

    Sets a IUISwitch to InteractiveElement and automatically associate the given settingDefinition to the switch state.

    Declaration
    public static IUISetting Handle(this IUISetting element, ISettingsProvider settingsProvider, SettingDefinition<bool> settingDefinition, Func<bool, ValueTask>? onToggled = null)
    Parameters
    Type Name Description
    IUISetting element

    The IUISetting instance.

    ISettingsProvider settingsProvider

    The settings provider used for handling the given settingDefinition.

    SettingDefinition<bool> settingDefinition

    The definition of the setting to associate with this IUISetting.

    Func<bool, ValueTask> onToggled

    (optional) A method to invoke when the setting value changes.

    Returns
    Type Description
    IUISetting

    The updated IUISetting instance.

    Remarks

    The binding with the setting is going in both directions. When the setting is set, the switch is updated. When the switch is toggled, the setting is updated.

    Handle(IUISetting, ISettingsProvider, SettingDefinition<bool>, string?, string?, Action<bool>?)

    Sets a IUISwitch to InteractiveElement and automatically associate the given settingDefinition to the switch state.

    Declaration
    public static IUISetting Handle(this IUISetting element, ISettingsProvider settingsProvider, SettingDefinition<bool> settingDefinition, string? stateDescriptionWhenOn, string? stateDescriptionWhenOff, Action<bool>? onToggled)
    Parameters
    Type Name Description
    IUISetting element

    The IUISetting instance.

    ISettingsProvider settingsProvider

    The settings provider used for handling the given settingDefinition.

    SettingDefinition<bool> settingDefinition

    The definition of the setting to associate to this IUISetting.

    string stateDescriptionWhenOn

    The StateDescription to use when the option is On.

    string stateDescriptionWhenOff

    The StateDescription to use when the option is Off.

    Action<bool> onToggled

    (optional) A method to invoke when the setting value changed.

    Returns
    Type Description
    IUISetting

    The updated IUISetting instance.

    Remarks

    The binding with the setting is going in both directions. When the setting is set, the switch is updated. When the switch is toggled, the setting is updated.

    Handle(IUISetting, ISettingsProvider, SettingDefinition<bool>, string?, string?, Func<bool, ValueTask>?)

    Sets a IUISwitch to InteractiveElement and automatically associate the given settingDefinition to the switch state.

    Declaration
    public static IUISetting Handle(this IUISetting element, ISettingsProvider settingsProvider, SettingDefinition<bool> settingDefinition, string? stateDescriptionWhenOn, string? stateDescriptionWhenOff, Func<bool, ValueTask>? onToggled = null)
    Parameters
    Type Name Description
    IUISetting element

    The IUISetting instance.

    ISettingsProvider settingsProvider

    The settings provider used for handling the given settingDefinition.

    SettingDefinition<bool> settingDefinition

    The definition of the setting to associate to this IUISetting.

    string stateDescriptionWhenOn

    The StateDescription to use when the option is On.

    string stateDescriptionWhenOff

    The StateDescription to use when the option is Off.

    Func<bool, ValueTask> onToggled

    (optional) A method to invoke when the setting value changed.

    Returns
    Type Description
    IUISetting

    The updated IUISetting instance.

    Remarks

    The binding with the setting is going in both directions. When the setting is set, the switch is updated. When the switch is toggled, the setting is updated.

    Handle(IUISettingGroup, ISettingsProvider, SettingDefinition<bool>, Action<bool>?)

    Sets a IUISwitch to InteractiveElement and automatically associate the given settingDefinition to the switch state.

    Declaration
    public static IUISettingGroup Handle(this IUISettingGroup element, ISettingsProvider settingsProvider, SettingDefinition<bool> settingDefinition, Action<bool>? onToggled = null)
    Parameters
    Type Name Description
    IUISettingGroup element

    The IUISettingGroup element.

    ISettingsProvider settingsProvider

    The settings provider used for handling the given settingDefinition.

    SettingDefinition<bool> settingDefinition

    The definition of the setting to associate to this IUISettingGroup.

    Action<bool> onToggled

    (optional) A method to invoke when the setting value changed.

    Returns
    Type Description
    IUISettingGroup

    The updated IUISettingGroup element.

    Handle(IUISettingGroup, ISettingsProvider, SettingDefinition<bool>, Func<bool, ValueTask>?)

    Sets a IUISwitch to InteractiveElement and automatically associate the given settingDefinition to the switch state.

    Declaration
    public static IUISettingGroup Handle(this IUISettingGroup element, ISettingsProvider settingsProvider, SettingDefinition<bool> settingDefinition, Func<bool, ValueTask>? onToggled = null)
    Parameters
    Type Name Description
    IUISettingGroup element

    The IUISettingGroup element.

    ISettingsProvider settingsProvider

    The settings provider used for handling the given settingDefinition.

    SettingDefinition<bool> settingDefinition

    The definition of the setting to associate to this IUISettingGroup.

    Func<bool, ValueTask> onToggled

    (optional) A method to invoke when the setting value changed.

    Returns
    Type Description
    IUISettingGroup

    The updated IUISettingGroup element.

    Handle<T>(IUISetting, ISettingsProvider, SettingDefinition<T>, Action<T>?, params IUIDropDownListItem[])

    Sets a IUISelectDropDownList to InteractiveElement and automatically associate the given settingDefinition to the switch state.

    Declaration
    public static IUISetting Handle<T>(this IUISetting element, ISettingsProvider settingsProvider, SettingDefinition<T> settingDefinition, Action<T>? onOptionSelected, params IUIDropDownListItem[] dropDownListItems)
    Parameters
    Type Name Description
    IUISetting element

    The IUISetting instance.

    ISettingsProvider settingsProvider

    The settings provider used for handling the given settingDefinition.

    SettingDefinition<T> settingDefinition

    The definition of the setting to associate to this IUISetting.

    Action<T> onOptionSelected

    (optional) A method to invoke when the setting value changed.

    IUIDropDownListItem[] dropDownListItems

    (optional) A list of items to be displayed in the drop down list. Value should be of type T.

    Returns
    Type Description
    IUISetting

    The updated IUISetting instance.

    Type Parameters
    Name Description
    T
    Remarks

    The binding with the setting is going in both directions. When the setting is changed, the drop down list is updated. When the drop down list is changed, the setting is updated.

    Handle<T>(IUISetting, ISettingsProvider, SettingDefinition<T>, Func<T, ValueTask>?, params IUIDropDownListItem[])

    Sets a IUISelectDropDownList to InteractiveElement and automatically associate the given settingDefinition to the switch state.

    Declaration
    public static IUISetting Handle<T>(this IUISetting element, ISettingsProvider settingsProvider, SettingDefinition<T> settingDefinition, Func<T, ValueTask>? onOptionSelected, params IUIDropDownListItem[] dropDownListItems)
    Parameters
    Type Name Description
    IUISetting element

    The IUISetting instance.

    ISettingsProvider settingsProvider

    The settings provider used for handling the given settingDefinition.

    SettingDefinition<T> settingDefinition

    The definition of the setting to associate to this IUISetting.

    Func<T, ValueTask> onOptionSelected

    (optional) A method to invoke when the setting value changed.

    IUIDropDownListItem[] dropDownListItems

    (optional) A list of items to be displayed in the drop down list. Value should be of type T.

    Returns
    Type Description
    IUISetting

    The updated IUISetting instance.

    Type Parameters
    Name Description
    T
    Remarks

    The binding with the setting is going in both directions. When the setting is changed, the drop down list is updated. When the drop down list is changed, the setting is updated.

    Handle<T>(IUISettingGroup, ISettingsProvider, SettingDefinition<T>, Action<T>?, params IUIDropDownListItem[])

    Sets a IUISelectDropDownList to InteractiveElement and automatically associate the given settingDefinition to the switch state.

    Declaration
    public static IUISettingGroup Handle<T>(this IUISettingGroup element, ISettingsProvider settingsProvider, SettingDefinition<T> settingDefinition, Action<T>? onOptionSelected, params IUIDropDownListItem[] dropDownListItems) where T : struct, IConvertible
    Parameters
    Type Name Description
    IUISettingGroup element

    The IUISettingGroup element.

    ISettingsProvider settingsProvider

    The settings provider used for handling the given settingDefinition.

    SettingDefinition<T> settingDefinition

    The definition of the setting to associate to this IUISetting.

    Action<T> onOptionSelected

    (optional) A method to invoke when the setting value changed.

    IUIDropDownListItem[] dropDownListItems

    (optional) A list of items to be displayed in the drop down list. Value should be of type T.

    Returns
    Type Description
    IUISettingGroup

    The updated IUISettingGroup element.

    Type Parameters
    Name Description
    T

    The type of the setting value.

    Handle<T>(IUISettingGroup, ISettingsProvider, SettingDefinition<T>, Func<T, ValueTask>?, params IUIDropDownListItem[])

    Sets a IUISelectDropDownList to InteractiveElement and automatically associate the given settingDefinition to the switch state.

    Declaration
    public static IUISettingGroup Handle<T>(this IUISettingGroup element, ISettingsProvider settingsProvider, SettingDefinition<T> settingDefinition, Func<T, ValueTask>? onOptionSelected, params IUIDropDownListItem[] dropDownListItems) where T : struct, IConvertible
    Parameters
    Type Name Description
    IUISettingGroup element

    The IUISettingGroup element.

    ISettingsProvider settingsProvider

    The settings provider used for handling the given settingDefinition.

    SettingDefinition<T> settingDefinition

    The definition of the setting to associate to this IUISetting.

    Func<T, ValueTask> onOptionSelected

    (optional) A method to invoke when the setting value changed.

    IUIDropDownListItem[] dropDownListItems

    (optional) A list of items to be displayed in the drop down list. Value should be of type T.

    Returns
    Type Description
    IUISettingGroup

    The updated IUISettingGroup element.

    Type Parameters
    Name Description
    T

    The type of the setting value.

    HideCommandBar<T>(T)

    Hides the command bar on top of the editor. This will also hide the CommandBarExtraContent.

    Declaration
    public static T HideCommandBar<T>(this T element) where T : IUISingleLineTextInput
    Parameters
    Type Name Description
    T element
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    HideIcon(IUIInfoBar)

    Hides the icon of the bar.

    Declaration
    public static IUIInfoBar HideIcon(this IUIInfoBar element)
    Parameters
    Type Name Description
    IUIInfoBar element
    Returns
    Type Description
    IUIInfoBar

    Hide<T>(T)

    Hides the element.

    Declaration
    public static T Hide<T>(this T element) where T : IUIElement
    Parameters
    Type Name Description
    T element
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    Highlight(IUIMultiLineTextInput, params UIHighlightedTextSpan[])

    Sets the list of spans to highlight in the text document.

    Declaration
    public static IUIMultiLineTextInput Highlight(this IUIMultiLineTextInput element, params UIHighlightedTextSpan[] spans)
    Parameters
    Type Name Description
    IUIMultiLineTextInput element
    UIHighlightedTextSpan[] spans
    Returns
    Type Description
    IUIMultiLineTextInput

    Horizontal(IUISplitGrid)

    Split the IUISplitGrid horizontally.

    Declaration
    public static IUISplitGrid Horizontal(this IUISplitGrid element)
    Parameters
    Type Name Description
    IUISplitGrid element
    Returns
    Type Description
    IUISplitGrid

    Horizontal(IUIStack)

    Organize the Children horizontally.

    Declaration
    public static IUIStack Horizontal(this IUIStack element)
    Parameters
    Type Name Description
    IUIStack element
    Returns
    Type Description
    IUIStack

    HoverTooltip(IUIMultiLineTextInput, params UIHoverTooltip[])

    Sets the list of tooltips to display on Word hover in the text document.

    Declaration
    public static IUIMultiLineTextInput HoverTooltip(this IUIMultiLineTextInput element, params UIHoverTooltip[] tooltips)
    Parameters
    Type Name Description
    IUIMultiLineTextInput element
    UIHoverTooltip[] tooltips
    Returns
    Type Description
    IUIMultiLineTextInput

    HyperlinkAppearance(IUIButton)

    Sets the button to appear as a hyperlink.

    Declaration
    public static IUIButton HyperlinkAppearance(this IUIButton element)
    Parameters
    Type Name Description
    IUIButton element

    The IUIButton instance.

    Returns
    Type Description
    IUIButton

    The updated IUIButton instance.

    Icon(IUIButton, string, char)

    Sets the icon of the button.

    Declaration
    public static IUIButton Icon(this IUIButton element, string fontName, char glyph)
    Parameters
    Type Name Description
    IUIButton element

    The IUIButton instance.

    string fontName

    The name of the font containing the icon.

    char glyph

    The glyph corresponding to the icon in the fontName.

    Returns
    Type Description
    IUIButton

    The updated IUIButton instance.

    Icon(IUIDropDownButton, string, char)

    Sets the icon of the drop down button.

    Declaration
    public static IUIDropDownButton Icon(this IUIDropDownButton element, string fontName, char glyph)
    Parameters
    Type Name Description
    IUIDropDownButton element
    string fontName
    char glyph
    Returns
    Type Description
    IUIDropDownButton

    Icon(IUIDropDownMenuItem, string, char)

    Sets the icon of the menu item.

    Declaration
    public static IUIDropDownMenuItem Icon(this IUIDropDownMenuItem element, string fontName, char glyph)
    Parameters
    Type Name Description
    IUIDropDownMenuItem element
    string fontName
    char glyph
    Returns
    Type Description
    IUIDropDownMenuItem

    Icon(IUISetting, string, char)

    Sets the Icon of the setting.

    Declaration
    public static IUISetting Icon(this IUISetting element, string fontName, char glyph)
    Parameters
    Type Name Description
    IUISetting element

    The IUISetting instance.

    string fontName

    The font name of the icon.

    char glyph

    The glyph of the icon.

    Returns
    Type Description
    IUISetting

    The updated IUISetting instance.

    Icon(IUISettingGroup, string, char)

    Sets the Icon of the setting.

    Declaration
    public static IUISettingGroup Icon(this IUISettingGroup element, string fontName, char glyph)
    Parameters
    Type Name Description
    IUISettingGroup element

    The IUISettingGroup element.

    string fontName

    The font name.

    char glyph

    The glyph character.

    Returns
    Type Description
    IUISettingGroup

    The updated IUISettingGroup element.

    Icon(string, char)

    A component that represents an icon.

    Declaration
    public static IUIIcon Icon(string fontName, char glyph)
    Parameters
    Type Name Description
    string fontName

    The name of the font containing the icon.

    char glyph

    The glyph corresponding to the icon

    Returns
    Type Description
    IUIIcon

    Icon(string?, string, char)

    A component that represents an icon.

    Declaration
    public static IUIIcon Icon(string? id, string fontName, char glyph)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    string fontName

    The name of the font containing the icon.

    char glyph

    The glyph corresponding to the icon

    Returns
    Type Description
    IUIIcon

    ImageViewer()

    A component that displays an image and allows the user to perform some read-only actions on it. By default, image viewer supports BMP, GIF, JPEG, PBM, PNG, TIFF, TGA, WEBP, SVG formats.

    Declaration
    public static IUIImageViewer ImageViewer()
    Returns
    Type Description
    IUIImageViewer

    The created IUIImageViewer instance.

    ImageViewer(string?)

    A component that displays an image and allows the user to perform some read-only actions on it. By default, image viewer supports BMP, GIF, JPEG, PBM, PNG, TIFF, TGA, WEBP, SVG formats.

    Declaration
    public static IUIImageViewer ImageViewer(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUIImageViewer

    The created IUIImageViewer instance.

    InfoBar()

    Create a component that displays a bar aiming at indicating a relevant information to the user.

    Declaration
    public static IUIInfoBar InfoBar()
    Returns
    Type Description
    IUIInfoBar

    InfoBar(string?)

    Create a component that displays a bar aiming at indicating a relevant information to the user.

    Declaration
    public static IUIInfoBar InfoBar(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUIInfoBar

    InfoBar(string?, string)

    Create a component that displays a bar aiming at indicating a relevant information to the user.

    Declaration
    public static IUIInfoBar InfoBar(string? id, string title)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    string title

    The title to display in the bar.

    Returns
    Type Description
    IUIInfoBar

    InfoBar(string?, string, string)

    Create a component that displays a bar aiming at indicating a relevant information to the user.

    Declaration
    public static IUIInfoBar InfoBar(string? id, string title, string description)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    string title

    The title to display in the bar.

    string description

    The description to display in the bar.

    Returns
    Type Description
    IUIInfoBar

    InfoBar(string?, string, string, UIInfoBarSeverity)

    Create a component that displays a bar aiming at indicating a relevant information to the user.

    Declaration
    public static IUIInfoBar InfoBar(string? id, string title, string description, UIInfoBarSeverity severity)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    string title

    The title to display in the bar.

    string description

    The description to display in the bar.

    UIInfoBarSeverity severity

    The severity of the information to display.

    Returns
    Type Description
    IUIInfoBar

    Informational(IUIInfoBar)

    Sets the Severity to Informational.

    Declaration
    public static IUIInfoBar Informational(this IUIInfoBar element)
    Parameters
    Type Name Description
    IUIInfoBar element
    Returns
    Type Description
    IUIInfoBar

    InlineView(IUIDiffTextInput)

    Sets the InlineMode to true.

    Declaration
    public static IUIDiffTextInput InlineView(this IUIDiffTextInput element)
    Parameters
    Type Name Description
    IUIDiffTextInput element
    Returns
    Type Description
    IUIDiffTextInput

    InteractiveElement(IUISetting, IUIElement?)

    Sets the InteractiveElement of the setting.

    Declaration
    public static IUISetting InteractiveElement(this IUISetting element, IUIElement? uiElement)
    Parameters
    Type Name Description
    IUISetting element

    The IUISetting instance.

    IUIElement uiElement

    The interactive UI element.

    Returns
    Type Description
    IUISetting

    The updated IUISetting instance.

    InteractiveElement(IUISettingGroup, IUIElement?)

    Sets the InteractiveElement of the setting.

    Declaration
    public static IUISettingGroup InteractiveElement(this IUISettingGroup element, IUIElement? uiElement)
    Parameters
    Type Name Description
    IUISettingGroup element

    The IUISettingGroup element.

    IUIElement uiElement

    The interactive UI element.

    Returns
    Type Description
    IUISettingGroup

    The updated IUISettingGroup element.

    Item(IUIElement, object?)

    Create component that represents an item in a list.

    Declaration
    public static IUIListItem Item(IUIElement uiElement, object? value)
    Parameters
    Type Name Description
    IUIElement uiElement

    The element to display in the item.

    object value

    The value associated to the item.

    Returns
    Type Description
    IUIListItem

    Item(object?)

    Create component that represents an item in a drop down list.

    Declaration
    public static IUIDropDownListItem Item(object? value)
    Parameters
    Type Name Description
    object value

    The value associated to the item. It will be used to generate the text to display in the item

    Returns
    Type Description
    IUIDropDownListItem

    Item(string?, object?)

    Create component that represents an item in a drop down list.

    Declaration
    public static IUIDropDownListItem Item(string? text, object? value)
    Parameters
    Type Name Description
    string text

    The text to display in the item.

    object value

    The value associated to the item.

    Returns
    Type Description
    IUIDropDownListItem

    Label()

    A component that displays a text.

    Declaration
    public static IUILabel Label()
    Returns
    Type Description
    IUILabel

    Label(string?)

    A component that displays a text.

    Declaration
    public static IUILabel Label(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUILabel

    Label(string?, string)

    A component that displays a text.

    Declaration
    public static IUILabel Label(string? id, string text)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    string text

    The text to display.

    Returns
    Type Description
    IUILabel

    Language(IUIMultiLineTextInput, string)

    Sets the programming language name to use to colorize the text in the control.

    Declaration
    public static IUIMultiLineTextInput Language(this IUIMultiLineTextInput element, string programmingLanguageName)
    Parameters
    Type Name Description
    IUIMultiLineTextInput element
    string programmingLanguageName
    Returns
    Type Description
    IUIMultiLineTextInput

    LargeSpacing(IUIStack)

    Sets a large spacing between children.

    Declaration
    public static IUIStack LargeSpacing(this IUIStack element)
    Parameters
    Type Name Description
    IUIStack element
    Returns
    Type Description
    IUIStack

    LargeSpacing(IUIWrap)

    Sets a large spacing between children.

    Declaration
    public static IUIWrap LargeSpacing(this IUIWrap element)
    Parameters
    Type Name Description
    IUIWrap element
    Returns
    Type Description
    IUIWrap

    LeftPaneLength(IUISplitGrid, UIGridLength)

    Set the length of the left pane.

    Declaration
    public static IUISplitGrid LeftPaneLength(this IUISplitGrid element, UIGridLength length)
    Parameters
    Type Name Description
    IUISplitGrid element
    UIGridLength length
    Returns
    Type Description
    IUISplitGrid

    LimitFileTypesTo(IUIFileSelector, params string[])

    Sets the list of file extensions allowed to be selected. An empty list of file extensions indicates any kind of file.

    Declaration
    public static IUIFileSelector LimitFileTypesTo(this IUIFileSelector element, params string[] fileExtensions)
    Parameters
    Type Name Description
    IUIFileSelector element
    string[] fileExtensions
    Returns
    Type Description
    IUIFileSelector

    LimitFileTypesToImages(IUIFileSelector)

    Limits the list of selectable files to known supported image formats as defined in ImageFileExtensions.

    Declaration
    public static IUIFileSelector LimitFileTypesToImages(this IUIFileSelector element)
    Parameters
    Type Name Description
    IUIFileSelector element
    Returns
    Type Description
    IUIFileSelector

    List()

    A component that represents a list of items.

    Declaration
    public static IUIList List()
    Returns
    Type Description
    IUIList

    List(string?)

    A component that represents a list of items.

    Declaration
    public static IUIList List(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUIList

    ManuallyHandleSaveAs(IUIImageViewer, string, Func<FileStream, ValueTask>)

    Adds a custom action to perform when the user saves the image with a specific file extension.

    Declaration
    public static IUIImageViewer ManuallyHandleSaveAs(this IUIImageViewer element, string fileExtension, Func<FileStream, ValueTask> action)
    Parameters
    Type Name Description
    IUIImageViewer element

    The IUIImageViewer instance.

    string fileExtension

    The file extension to handle.

    Func<FileStream, ValueTask> action

    The action to perform when the user wishes to save the image with the given fileExtension.

    Returns
    Type Description
    IUIImageViewer

    The updated IUIImageViewer instance.

    Remarks

    As a side effect of this method, the specified file extension will be available in the Save File Dialog when the user decides to save the image. When the user saves the image with the specified fileExtension, the specified action will be invoked with a FileStream pointing to the file to save. The action is responsible for writing the image to the file.

    Maximum(IUINumberInput, double)

    Sets the maximum value possible.

    Declaration
    public static IUINumberInput Maximum(this IUINumberInput element, double maximum)
    Parameters
    Type Name Description
    IUINumberInput element
    double maximum
    Returns
    Type Description
    IUINumberInput

    MediumSpacing(IUIStack)

    Sets a medium spacing between children.

    Declaration
    public static IUIStack MediumSpacing(this IUIStack element)
    Parameters
    Type Name Description
    IUIStack element
    Returns
    Type Description
    IUIStack

    MediumSpacing(IUIWrap)

    Sets a medium spacing between children.

    Declaration
    public static IUIWrap MediumSpacing(this IUIWrap element)
    Parameters
    Type Name Description
    IUIWrap element
    Returns
    Type Description
    IUIWrap

    Minimum(IUINumberInput, double)

    Sets the minimum value possible.

    Declaration
    public static IUINumberInput Minimum(this IUINumberInput element, double minimum)
    Parameters
    Type Name Description
    IUINumberInput element
    double minimum
    Returns
    Type Description
    IUINumberInput

    MinimumLength(IUISplitGrid, int)

    Set the minimum length of a cell, in pixels.

    Declaration
    public static IUISplitGrid MinimumLength(this IUISplitGrid element, int minimumLength)
    Parameters
    Type Name Description
    IUISplitGrid element
    int minimumLength
    Returns
    Type Description
    IUISplitGrid

    ModifiedText<T>(T, string)

    Sets the unformatted modified text of the control to compare with the original one.

    Declaration
    public static T ModifiedText<T>(this T element, string text) where T : IUIDiffTextInput
    Parameters
    Type Name Description
    T element
    string text
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    MultiLineTextInput()

    A component that can be used to display or edit unformatted text on multiple lines.

    Declaration
    public static IUIMultiLineTextInput MultiLineTextInput()
    Returns
    Type Description
    IUIMultiLineTextInput
    Remarks

    This component is powered by Monaco Editor.

    MultiLineTextInput(string?)

    A component that can be used to display or edit unformatted text on multiple lines.

    Declaration
    public static IUIMultiLineTextInput MultiLineTextInput(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUIMultiLineTextInput
    Remarks

    This component is powered by Monaco Editor.

    MultiLineTextInput(string?, string)

    A component that can be used to display or edit unformatted text on multiple lines.

    Declaration
    public static IUIMultiLineTextInput MultiLineTextInput(string? id, string programmingLanguageName)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    string programmingLanguageName

    The programming language name to use to colorize the text in the control.

    Many languages are supported by default, such as JSON or XML. You can create a custom language support using ILanguageService.

    Returns
    Type Description
    IUIMultiLineTextInput
    Remarks

    This component is powered by Monaco Editor.

    NavigateToUri(IUIWebView, Uri)

    Sets the Source from a Uri.

    Declaration
    public static IUIWebView NavigateToUri(this IUIWebView element, Uri uri)
    Parameters
    Type Name Description
    IUIWebView element
    Uri uri
    Returns
    Type Description
    IUIWebView

    NeutralAppearance(IUIButton)

    Sets the button to appear as neutral.

    Declaration
    public static IUIButton NeutralAppearance(this IUIButton element)
    Parameters
    Type Name Description
    IUIButton element

    The IUIButton instance.

    Returns
    Type Description
    IUIButton

    The updated IUIButton instance.

    NeverShowLineNumber(IUIMultiLineTextInput)

    Indicates that the line number should never be displayed in the editor.

    Declaration
    public static IUIMultiLineTextInput NeverShowLineNumber(this IUIMultiLineTextInput element)
    Parameters
    Type Name Description
    IUIMultiLineTextInput element
    Returns
    Type Description
    IUIMultiLineTextInput

    NeverWrap(IUILabel)

    Sets the AutoWrap to false.

    Declaration
    public static IUILabel NeverWrap(this IUILabel element)
    Parameters
    Type Name Description
    IUILabel element
    Returns
    Type Description
    IUILabel

    NeverWrap(IUIMultiLineTextInput)

    Indicates that the text in the editor will never wrap when it reaches the border of the editor.

    Declaration
    public static IUIMultiLineTextInput NeverWrap(this IUIMultiLineTextInput element)
    Parameters
    Type Name Description
    IUIMultiLineTextInput element
    Returns
    Type Description
    IUIMultiLineTextInput

    NoSpacing(IUIStack)

    Sets no spacing between children.

    Declaration
    public static IUIStack NoSpacing(this IUIStack element)
    Parameters
    Type Name Description
    IUIStack element
    Returns
    Type Description
    IUIStack

    NoSpacing(IUIWrap)

    Sets no spacing between children.

    Declaration
    public static IUIWrap NoSpacing(this IUIWrap element)
    Parameters
    Type Name Description
    IUIWrap element
    Returns
    Type Description
    IUIWrap

    NonClosable(IUIInfoBar)

    Makes the bar not closable explicitly by the user.

    Declaration
    public static IUIInfoBar NonClosable(this IUIInfoBar element)
    Parameters
    Type Name Description
    IUIInfoBar element
    Returns
    Type Description
    IUIInfoBar

    NotExtendable(IUIDataGrid)

    Indicates that the control can not be extended to take the size of the whole tool boundaries.

    Declaration
    public static IUIDataGrid NotExtendable(this IUIDataGrid element)
    Parameters
    Type Name Description
    IUIDataGrid element
    Returns
    Type Description
    IUIDataGrid

    NotExtendable(IUIDiffTextInput)

    Indicates that the control can not be extended to take the size of the whole tool boundaries.

    Declaration
    public static IUIDiffTextInput NotExtendable(this IUIDiffTextInput element)
    Parameters
    Type Name Description
    IUIDiffTextInput element
    Returns
    Type Description
    IUIDiffTextInput

    NotExtendable(IUIMultiLineTextInput)

    Indicates that the control can not be extended to take the size of the whole tool boundaries.

    Declaration
    public static IUIMultiLineTextInput NotExtendable(this IUIMultiLineTextInput element)
    Parameters
    Type Name Description
    IUIMultiLineTextInput element
    Returns
    Type Description
    IUIMultiLineTextInput

    NumberInput()

    A component that can be used to display or edit numbers on a single line.

    Declaration
    public static IUINumberInput NumberInput()
    Returns
    Type Description
    IUINumberInput

    NumberInput(string?, double, double, double)

    A component that can be used to display or edit numbers on a single line.

    Declaration
    public static IUINumberInput NumberInput(string? id, double min = -2147483648, double max = 2147483647, double step = 1)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    double min

    The minimum value possible.

    double max

    The maximum value possible.

    double step

    The interval between legal numbers.

    Returns
    Type Description
    IUINumberInput

    Off(IUISwitch)

    Sets the IsOn of the switch to off.

    Declaration
    public static IUISwitch Off(this IUISwitch element)
    Parameters
    Type Name Description
    IUISwitch element
    Returns
    Type Description
    IUISwitch

    OffText(IUISwitch, string?)

    Sets the OffText of the switch.

    Declaration
    public static IUISwitch OffText(this IUISwitch element, string? text)
    Parameters
    Type Name Description
    IUISwitch element
    string text
    Returns
    Type Description
    IUISwitch

    On(IUISwitch)

    Sets the IsOn of the switch to true.

    Declaration
    public static IUISwitch On(this IUISwitch element)
    Parameters
    Type Name Description
    IUISwitch element
    Returns
    Type Description
    IUISwitch

    OnClick(IUIButton, Action?)

    Sets the action to run when clicking on the button.

    Declaration
    public static IUIButton OnClick(this IUIButton element, Action? actionOnClick)
    Parameters
    Type Name Description
    IUIButton element

    The IUIButton instance.

    Action actionOnClick

    The action to run when clicking on the button.

    Returns
    Type Description
    IUIButton

    The updated IUIButton instance.

    OnClick(IUIButton, Func<ValueTask>?)

    Sets the action to run when clicking on the button.

    Declaration
    public static IUIButton OnClick(this IUIButton element, Func<ValueTask>? actionOnClick)
    Parameters
    Type Name Description
    IUIButton element

    The IUIButton instance.

    Func<ValueTask> actionOnClick

    The action to run when clicking on the button.

    Returns
    Type Description
    IUIButton

    The updated IUIButton instance.

    OnClick(IUIDropDownMenuItem, Action?)

    Sets the action to run when clicking on the menu item.

    Declaration
    public static IUIDropDownMenuItem OnClick(this IUIDropDownMenuItem element, Action? actionOnClick)
    Parameters
    Type Name Description
    IUIDropDownMenuItem element
    Action actionOnClick
    Returns
    Type Description
    IUIDropDownMenuItem

    OnClick(IUIDropDownMenuItem, Func<ValueTask>?)

    Sets the action to run when clicking on the menu item.

    Declaration
    public static IUIDropDownMenuItem OnClick(this IUIDropDownMenuItem element, Func<ValueTask>? actionOnClick)
    Parameters
    Type Name Description
    IUIDropDownMenuItem element
    Func<ValueTask> actionOnClick
    Returns
    Type Description
    IUIDropDownMenuItem

    OnClose(IUIInfoBar, Action?)

    Sets the action to run when the user clicks the action button.

    Declaration
    public static IUIInfoBar OnClose(this IUIInfoBar element, Action? actionOnClose)
    Parameters
    Type Name Description
    IUIInfoBar element
    Action actionOnClose
    Returns
    Type Description
    IUIInfoBar

    OnClose(IUIInfoBar, Func<ValueTask>?)

    Sets the action to run when the user clicks the action button.

    Declaration
    public static IUIInfoBar OnClose(this IUIInfoBar element, Func<ValueTask>? actionOnClose)
    Parameters
    Type Name Description
    IUIInfoBar element
    Func<ValueTask> actionOnClose
    Returns
    Type Description
    IUIInfoBar

    OnFilesSelected(IUIFileSelector, Action<SandboxedFileReader[]>?)

    Sets the action to run when the user selected file(s).

    Declaration
    public static IUIFileSelector OnFilesSelected(this IUIFileSelector element, Action<SandboxedFileReader[]>? actionOnFilesSelected)
    Parameters
    Type Name Description
    IUIFileSelector element
    Action<SandboxedFileReader[]> actionOnFilesSelected
    Returns
    Type Description
    IUIFileSelector
    Remarks

    The items contain a stream. It won't be disposed automatically. It is important to dispose the stream yourself, when not needed anymore

    OnFilesSelected(IUIFileSelector, Func<SandboxedFileReader[], ValueTask>?)

    Sets the action to run when the user selected file(s).

    Declaration
    public static IUIFileSelector OnFilesSelected(this IUIFileSelector element, Func<SandboxedFileReader[], ValueTask>? actionOnFilesSelected)
    Parameters
    Type Name Description
    IUIFileSelector element
    Func<SandboxedFileReader[], ValueTask> actionOnFilesSelected
    Returns
    Type Description
    IUIFileSelector
    Remarks

    The items contain a stream. It won't be disposed automatically. It is important to dispose the stream yourself, when not needed anymore

    OnItemSelected(IUIList, Action<IUIListItem?>?)

    Sets the action to run when selecting an item in the list.

    Declaration
    public static IUIList OnItemSelected(this IUIList element, Action<IUIListItem?>? onItemSelectedAction)
    Parameters
    Type Name Description
    IUIList element
    Action<IUIListItem> onItemSelectedAction
    Returns
    Type Description
    IUIList

    OnItemSelected(IUIList, Func<IUIListItem?, ValueTask>?)

    Sets the action to run when selecting an item in the list.

    Declaration
    public static IUIList OnItemSelected(this IUIList element, Func<IUIListItem?, ValueTask>? onItemSelectedAction)
    Parameters
    Type Name Description
    IUIList element
    Func<IUIListItem, ValueTask> onItemSelectedAction
    Returns
    Type Description
    IUIList

    OnItemSelected(IUISelectDropDownList, Action<IUIDropDownListItem?>?)

    Sets the action to run when selecting an item in the drop down list.

    Declaration
    public static IUISelectDropDownList OnItemSelected(this IUISelectDropDownList element, Action<IUIDropDownListItem?>? onItemSelectedAction)
    Parameters
    Type Name Description
    IUISelectDropDownList element
    Action<IUIDropDownListItem> onItemSelectedAction
    Returns
    Type Description
    IUISelectDropDownList

    OnItemSelected(IUISelectDropDownList, Func<IUIDropDownListItem?, ValueTask>?)

    Sets the action to run when selecting an item in the drop down list.

    Declaration
    public static IUISelectDropDownList OnItemSelected(this IUISelectDropDownList element, Func<IUIDropDownListItem?, ValueTask>? onItemSelectedAction)
    Parameters
    Type Name Description
    IUISelectDropDownList element
    Func<IUIDropDownListItem, ValueTask> onItemSelectedAction
    Returns
    Type Description
    IUISelectDropDownList

    OnRowSelected(IUIDataGrid, Action<IUIDataGridRow?>?)

    Sets the action to run when selecting an item in the data grid.

    Declaration
    public static IUIDataGrid OnRowSelected(this IUIDataGrid element, Action<IUIDataGridRow?>? onRowSelectedAction)
    Parameters
    Type Name Description
    IUIDataGrid element
    Action<IUIDataGridRow> onRowSelectedAction
    Returns
    Type Description
    IUIDataGrid

    OnRowSelected(IUIDataGrid, Func<IUIDataGridRow?, ValueTask>?)

    Sets the action to run when selecting an item in the data grid.

    Declaration
    public static IUIDataGrid OnRowSelected(this IUIDataGrid element, Func<IUIDataGridRow?, ValueTask>? onRowSelectedAction)
    Parameters
    Type Name Description
    IUIDataGrid element
    Func<IUIDataGridRow, ValueTask> onRowSelectedAction
    Returns
    Type Description
    IUIDataGrid

    OnText(IUISwitch, string?)

    Sets the OnText of the switch.

    Declaration
    public static IUISwitch OnText(this IUISwitch element, string? text)
    Parameters
    Type Name Description
    IUISwitch element
    string text
    Returns
    Type Description
    IUISwitch

    OnTextChanged<T>(T, Action<string>)

    Sets the action to run when the text changed.

    Declaration
    public static T OnTextChanged<T>(this T element, Action<string> actionOnTextChanged) where T : IUISingleLineTextInput
    Parameters
    Type Name Description
    T element
    Action<string> actionOnTextChanged
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    OnTextChanged<T>(T, Func<string, ValueTask>)

    Sets the action to run when the text changed.

    Declaration
    public static T OnTextChanged<T>(this T element, Func<string, ValueTask> actionOnTextChanged) where T : IUISingleLineTextInput
    Parameters
    Type Name Description
    T element
    Func<string, ValueTask> actionOnTextChanged
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    OnToggle(IUISwitch, Action<bool>?)

    Sets the action to run when toggling the switch.

    Declaration
    public static IUISwitch OnToggle(this IUISwitch element, Action<bool>? actionOnToggle)
    Parameters
    Type Name Description
    IUISwitch element
    Action<bool> actionOnToggle
    Returns
    Type Description
    IUISwitch

    OnToggle(IUISwitch, Func<bool, ValueTask>?)

    Sets the action to run when toggling the switch.

    Declaration
    public static IUISwitch OnToggle(this IUISwitch element, Func<bool, ValueTask>? actionOnToggle)
    Parameters
    Type Name Description
    IUISwitch element
    Func<bool, ValueTask> actionOnToggle
    Returns
    Type Description
    IUISwitch

    OnValueChanged(IUINumberInput, Action<double>)

    Sets the action to run when the value changed.

    Declaration
    public static IUINumberInput OnValueChanged(this IUINumberInput element, Action<double> actionOnValueChanged)
    Parameters
    Type Name Description
    IUINumberInput element
    Action<double> actionOnValueChanged
    Returns
    Type Description
    IUINumberInput

    OnValueChanged(IUINumberInput, Func<double, ValueTask>)

    Sets the action to run when the value changed.

    Declaration
    public static IUINumberInput OnValueChanged(this IUINumberInput element, Func<double, ValueTask> actionOnValueChanged)
    Parameters
    Type Name Description
    IUINumberInput element
    Func<double, ValueTask> actionOnValueChanged
    Returns
    Type Description
    IUINumberInput

    Open(IUIInfoBar)

    Opens the bar.

    Declaration
    public static IUIInfoBar Open(this IUIInfoBar element)
    Parameters
    Type Name Description
    IUIInfoBar element
    Returns
    Type Description
    IUIInfoBar

    OriginalText<T>(T, string)

    Sets the unformatted original text of the control to compare with the modified one.

    Declaration
    public static T OriginalText<T>(this T element, string text) where T : IUIDiffTextInput
    Parameters
    Type Name Description
    T element
    string text
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    PasswordInput()

    A component that can be used to display or edit passwords on a single line.

    Declaration
    public static IUIPasswordInput PasswordInput()
    Returns
    Type Description
    IUIPasswordInput

    PasswordInput(string?)

    A component that can be used to display or edit passwords on a single line.

    Declaration
    public static IUIPasswordInput PasswordInput(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUIPasswordInput

    ProgressAsync<T>(T, double)

    Asynchronously set the Value property. This method makes sure to update the progress bar's value without blocking the caller.

    Declaration
    public static ValueTask ProgressAsync<T>(this T element, double percentage) where T : IUIProgressBar
    Parameters
    Type Name Description
    T element

    The IUIProgressBar instance.

    double percentage

    A value between 0 and 100.

    Returns
    Type Description
    ValueTask
    Type Parameters
    Name Description
    T
    Remarks

    It is highly recommended to call this method when being off the UI thread.

    ProgressBar()

    Create a component that indicates the progress of an operation.

    Declaration
    public static IUIProgressBar ProgressBar()
    Returns
    Type Description
    IUIProgressBar

    The created IUIProgressBar instance.

    ProgressBar(string?)

    Create a component that indicates the progress of an operation.

    Declaration
    public static IUIProgressBar ProgressBar(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUIProgressBar

    The created IUIProgressBar instance.

    ProgressRing()

    Create a circular component that indicates the progress of an operation.

    Declaration
    public static IUIProgressRing ProgressRing()
    Returns
    Type Description
    IUIProgressRing

    ProgressRing(string?)

    Create a circular component that indicates the progress of an operation.

    Declaration
    public static IUIProgressRing ProgressRing(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUIProgressRing

    Progress<T>(T, double)

    Synchronously set the Value property.

    Declaration
    public static T Progress<T>(this T element, double percentage) where T : IUIProgressBar
    Parameters
    Type Name Description
    T element

    The IUIProgressBar instance.

    double percentage

    A value between 0 and 100.

    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    Remarks

    It is highly recommended to call this method when being on the UI thread.

    ReadOnly<T>(T)

    Sets the text input control as read-only.

    Declaration
    public static T ReadOnly<T>(this T element) where T : IUISingleLineTextInput
    Parameters
    Type Name Description
    T element
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    RemoveManuallyHandleSaveAs(IUIImageViewer, string)

    Removes the custom action to perform when the user saves the image with a specific file extension.

    Declaration
    public static IUIImageViewer RemoveManuallyHandleSaveAs(this IUIImageViewer element, string fileExtension)
    Parameters
    Type Name Description
    IUIImageViewer element

    The IUIImageViewer instance.

    string fileExtension

    The file extension to remove.

    Returns
    Type Description
    IUIImageViewer

    The updated IUIImageViewer instance.

    RemoveValue(ObservableCollection<IUIListItem>, object?)

    Removes the first occurrence of an IUIListItem where Value match the given value.

    Declaration
    public static void RemoveValue(this ObservableCollection<IUIListItem> listItems, object? value)
    Parameters
    Type Name Description
    ObservableCollection<IUIListItem> listItems
    object value

    RenderHTML(IUIWebView, string)

    Sets the Source from an HTML document.

    Declaration
    public static IUIWebView RenderHTML(this IUIWebView element, string html)
    Parameters
    Type Name Description
    IUIWebView element
    string html
    Returns
    Type Description
    IUIWebView

    RightPaneLength(IUISplitGrid, UIGridLength)

    Set the length of the right pane.

    Declaration
    public static IUISplitGrid RightPaneLength(this IUISplitGrid element, UIGridLength length)
    Parameters
    Type Name Description
    IUISplitGrid element
    UIGridLength length
    Returns
    Type Description
    IUISplitGrid

    Row(IUIGridCell, int)

    Sets the row alignment of the cell.

    Declaration
    public static IUIGridCell Row(this IUIGridCell element, int row)
    Parameters
    Type Name Description
    IUIGridCell element
    int row
    Returns
    Type Description
    IUIGridCell

    Row(object?, params IUIDataGridCell[])

    Create component that represents an item in a list.

    Declaration
    public static IUIDataGridRow Row(object? value, params IUIDataGridCell[] cells)
    Parameters
    Type Name Description
    object value

    The value associated to the item.

    IUIDataGridCell[] cells

    The cells to display in the row.

    Returns
    Type Description
    IUIDataGridRow

    Row(object?, IUIElement?, params IUIDataGridCell[])

    Create component that represents an item in a list.

    Declaration
    public static IUIDataGridRow Row(object? value, IUIElement? details, params IUIDataGridCell[] cells)
    Parameters
    Type Name Description
    object value

    The value associated to the item.

    IUIElement details

    The element to display as detail information in the row.

    IUIDataGridCell[] cells

    The cells to display in the row.

    Returns
    Type Description
    IUIDataGridRow

    Row(object?, IUIElement?, params string[])

    Create component that represents an item in a list.

    Declaration
    public static IUIDataGridRow Row(object? value, IUIElement? details, params string[] cells)
    Parameters
    Type Name Description
    object value

    The value associated to the item.

    IUIElement details

    The element to display as detail information in the row.

    string[] cells

    The cells to display in the row.

    Returns
    Type Description
    IUIDataGridRow

    Row(object?, params string[])

    Create component that represents an item in a list.

    Declaration
    public static IUIDataGridRow Row(object? value, params string[] cells)
    Parameters
    Type Name Description
    object value

    The value associated to the item.

    string[] cells

    The cells to display in the row.

    Returns
    Type Description
    IUIDataGridRow

    RowLargeSpacing(IUIGrid)

    Sets a large spacing between rows.

    Declaration
    public static IUIGrid RowLargeSpacing(this IUIGrid element)
    Parameters
    Type Name Description
    IUIGrid element
    Returns
    Type Description
    IUIGrid

    RowMediumSpacing(IUIGrid)

    Sets a medium spacing between rows.

    Declaration
    public static IUIGrid RowMediumSpacing(this IUIGrid element)
    Parameters
    Type Name Description
    IUIGrid element
    Returns
    Type Description
    IUIGrid

    RowNoSpacing(IUIGrid)

    Sets no spacing between rows.

    Declaration
    public static IUIGrid RowNoSpacing(this IUIGrid element)
    Parameters
    Type Name Description
    IUIGrid element
    Returns
    Type Description
    IUIGrid

    RowSmallSpacing(IUIGrid)

    Sets a small spacing between rows.

    Declaration
    public static IUIGrid RowSmallSpacing(this IUIGrid element)
    Parameters
    Type Name Description
    IUIGrid element
    Returns
    Type Description
    IUIGrid

    RowSpan(IUIGridCell, int)

    Sets a value that indicates the total number of rows that the cell content spans within the parent grid.

    Declaration
    public static IUIGridCell RowSpan(this IUIGridCell element, int rows)
    Parameters
    Type Name Description
    IUIGridCell element
    int rows
    Returns
    Type Description
    IUIGridCell

    Rows(IUIGrid, params UIGridLength[])

    Sets the rows.

    Declaration
    public static IUIGrid Rows(this IUIGrid element, params UIGridLength[] heights)
    Parameters
    Type Name Description
    IUIGrid element
    UIGridLength[] heights
    Returns
    Type Description
    IUIGrid

    Rows<TEnum>(IUIGrid, params (TEnum name, UIGridLength height)[])

    Sets the rows.

    Declaration
    public static IUIGrid Rows<TEnum>(this IUIGrid element, params (TEnum name, UIGridLength height)[] rows) where TEnum : Enum
    Parameters
    Type Name Description
    IUIGrid element
    (TEnum name, UIGridLength height)[] rows
    Returns
    Type Description
    IUIGrid
    Type Parameters
    Name Description
    TEnum

    Select(IUIDataGrid, IUIDataGridRow?)

    Sets the IUIDataGridRow that should be selected in the data grid. If row is null or does not exist in the data grid, no row will be selected.

    Declaration
    public static IUIDataGrid Select(this IUIDataGrid element, IUIDataGridRow? row)
    Parameters
    Type Name Description
    IUIDataGrid element
    IUIDataGridRow row
    Returns
    Type Description
    IUIDataGrid

    Select(IUIDataGrid, int)

    Sets the IUIDataGridRow that should be selected in the data grid, using its index in the data grid. If index smaller or greater than the amount of rows in the data grid, no row will be selected.

    Declaration
    public static IUIDataGrid Select(this IUIDataGrid element, int index)
    Parameters
    Type Name Description
    IUIDataGrid element
    int index
    Returns
    Type Description
    IUIDataGrid

    Select(IUIList, IUIListItem?)

    Sets the IUIList that should be selected in the list. If item is null or does not exist in the list, no item will be selected.

    Declaration
    public static IUIList Select(this IUIList element, IUIListItem? item)
    Parameters
    Type Name Description
    IUIList element
    IUIListItem item
    Returns
    Type Description
    IUIList

    Select(IUIList, int)

    Sets the IUIList that should be selected in the list, using its index in the list. If index smaller or greater than the amount of items in the list, no item will be selected.

    Declaration
    public static IUIList Select(this IUIList element, int index)
    Parameters
    Type Name Description
    IUIList element
    int index
    Returns
    Type Description
    IUIList

    Select(IUIMultiLineTextInput, TextSpan)

    Selects the given span in the text document.

    Declaration
    public static IUIMultiLineTextInput Select(this IUIMultiLineTextInput element, TextSpan span)
    Parameters
    Type Name Description
    IUIMultiLineTextInput element
    TextSpan span
    Returns
    Type Description
    IUIMultiLineTextInput

    Select(IUIMultiLineTextInput, int, int)

    Selects the given span in the text document.

    Declaration
    public static IUIMultiLineTextInput Select(this IUIMultiLineTextInput element, int start, int length)
    Parameters
    Type Name Description
    IUIMultiLineTextInput element
    int start
    int length
    Returns
    Type Description
    IUIMultiLineTextInput

    Select(IUISelectDropDownList, IUIDropDownListItem?)

    Sets the IUIDropDownListItem that should be selected in the drop down list. If item is null or does not exist in the list, no item will be selected.

    Declaration
    public static IUISelectDropDownList Select(this IUISelectDropDownList element, IUIDropDownListItem? item)
    Parameters
    Type Name Description
    IUISelectDropDownList element
    IUIDropDownListItem item
    Returns
    Type Description
    IUISelectDropDownList

    Select(IUISelectDropDownList, int)

    Sets the IUIDropDownListItem that should be selected in the drop down list, using its index in the list. If index smaller or greater than the amount of items in the list, no item will be selected.

    Declaration
    public static IUISelectDropDownList Select(this IUISelectDropDownList element, int index)
    Parameters
    Type Name Description
    IUISelectDropDownList element
    int index
    Returns
    Type Description
    IUISelectDropDownList

    SelectDropDownList()

    A component that represents a drop down list where the user can select one item in it.

    Declaration
    public static IUISelectDropDownList SelectDropDownList()
    Returns
    Type Description
    IUISelectDropDownList

    SelectDropDownList(string?)

    A component that represents a drop down list where the user can select one item in it.

    Declaration
    public static IUISelectDropDownList SelectDropDownList(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUISelectDropDownList

    Setting()

    A component that represents a setting, with a title, description, icon and IUIElement for the option value.

    Declaration
    public static IUISetting Setting()
    Returns
    Type Description
    IUISetting

    The created IUISetting instance.

    Setting(string?)

    A component that represents a setting, with a title, description, icon and IUIElement for the option value.

    Declaration
    public static IUISetting Setting(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUISetting

    The created IUISetting instance.

    SettingGroup()

    A component that represents a group of settings, with a title, description and an icon.

    Declaration
    public static IUISettingGroup SettingGroup()
    Returns
    Type Description
    IUISettingGroup

    SettingGroup(string?)

    A component that represents a group of settings, with a title, description and an icon.

    Declaration
    public static IUISettingGroup SettingGroup(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUISettingGroup

    ShowCommandBar<T>(T)

    Shows the command bar on top of the editor.

    Declaration
    public static T ShowCommandBar<T>(this T element) where T : IUISingleLineTextInput
    Parameters
    Type Name Description
    T element
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    ShowIcon(IUIInfoBar)

    Shows the icon of the bar.

    Declaration
    public static IUIInfoBar ShowIcon(this IUIInfoBar element)
    Parameters
    Type Name Description
    IUIInfoBar element
    Returns
    Type Description
    IUIInfoBar

    Show<T>(T)

    Shows the element.

    Declaration
    public static T Show<T>(this T element) where T : IUIElement
    Parameters
    Type Name Description
    T element
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    SingleLineTextInput()

    Create a component that can be used to display or edit unformatted text on a single line.

    Declaration
    public static IUISingleLineTextInput SingleLineTextInput()
    Returns
    Type Description
    IUISingleLineTextInput

    SingleLineTextInput(string?)

    Create a component that can be used to display or edit unformatted text on a single line.

    Declaration
    public static IUISingleLineTextInput SingleLineTextInput(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUISingleLineTextInput

    Size(IUIIcon, int)

    Sets the Size of the icon.

    Declaration
    public static IUIIcon Size(this IUIIcon element, int size)
    Parameters
    Type Name Description
    IUIIcon element
    int size
    Returns
    Type Description
    IUIIcon

    SmallSpacing(IUIStack)

    Sets a small spacing between children.

    Declaration
    public static IUIStack SmallSpacing(this IUIStack element)
    Parameters
    Type Name Description
    IUIStack element
    Returns
    Type Description
    IUIStack

    SmallSpacing(IUIWrap)

    Sets a small spacing between children.

    Declaration
    public static IUIWrap SmallSpacing(this IUIWrap element)
    Parameters
    Type Name Description
    IUIWrap element
    Returns
    Type Description
    IUIWrap

    SplitGrid()

    Create a component that splits horizontally or vertically an area into two panes. Panes can be resized by the user.

    Declaration
    public static IUISplitGrid SplitGrid()
    Returns
    Type Description
    IUISplitGrid

    SplitGrid(string?)

    Create a component that splits horizontally or vertically an area into two panes. Panes can be resized by the user.

    Declaration
    public static IUISplitGrid SplitGrid(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUISplitGrid

    SplitView(IUIDiffTextInput)

    Sets the InlineMode to false.

    Declaration
    public static IUIDiffTextInput SplitView(this IUIDiffTextInput element)
    Parameters
    Type Name Description
    IUIDiffTextInput element
    Returns
    Type Description
    IUIDiffTextInput

    Stack()

    Create a component that stacks child elements into a single line that can be oriented horizontally or vertically.

    Declaration
    public static IUIStack Stack()
    Returns
    Type Description
    IUIStack

    Stack(string?)

    Create a component that stacks child elements into a single line that can be oriented horizontally or vertically.

    Declaration
    public static IUIStack Stack(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUIStack

    StartIndeterminateProgress<T>(T)

    Indicates the progress bar should a generic, continuous progress feedback.

    Declaration
    public static T StartIndeterminateProgress<T>(this T element) where T : IUIProgressBar
    Parameters
    Type Name Description
    T element

    The IUIProgressBar instance.

    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    StateDescription(IUISetting, string?)

    Sets the StateDescription of the setting.

    Declaration
    public static IUISetting StateDescription(this IUISetting element, string? text)
    Parameters
    Type Name Description
    IUISetting element

    The IUISetting instance.

    string text

    The state description text.

    Returns
    Type Description
    IUISetting

    The updated IUISetting instance.

    Step(IUINumberInput, double)

    Sets the interval between legal numbers.

    Declaration
    public static IUINumberInput Step(this IUINumberInput element, double step)
    Parameters
    Type Name Description
    IUINumberInput element
    double step
    Returns
    Type Description
    IUINumberInput

    StopIndeterminateProgress<T>(T)

    Indicates the progress bar should show actual values.

    Declaration
    public static T StopIndeterminateProgress<T>(this T element) where T : IUIProgressBar
    Parameters
    Type Name Description
    T element

    The IUIProgressBar instance.

    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    Style(IUILabel, UILabelStyle)

    Sets the text style.

    Declaration
    public static IUILabel Style(this IUILabel element, UILabelStyle style)
    Parameters
    Type Name Description
    IUILabel element
    UILabelStyle style
    Returns
    Type Description
    IUILabel

    Success(IUIInfoBar)

    Sets the Severity to Success.

    Declaration
    public static IUIInfoBar Success(this IUIInfoBar element)
    Parameters
    Type Name Description
    IUIInfoBar element
    Returns
    Type Description
    IUIInfoBar

    Switch()

    A component that represents a changeable boolean value.

    Declaration
    public static IUISwitch Switch()
    Returns
    Type Description
    IUISwitch

    Switch(string?)

    A component that represents a changeable boolean value.

    Declaration
    public static IUISwitch Switch(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUISwitch

    SynchronizeScrollBarWith(IUIMultiLineTextInput, IUIMultiLineTextInput?)

    Synchronizes the scroll bars of the given element with the scroll bars of the other element.

    Declaration
    public static IUIMultiLineTextInput SynchronizeScrollBarWith(this IUIMultiLineTextInput element, IUIMultiLineTextInput? otherElement)
    Parameters
    Type Name Description
    IUIMultiLineTextInput element
    IUIMultiLineTextInput otherElement
    Returns
    Type Description
    IUIMultiLineTextInput
    Remarks

    Many languages are supported by default, such as JSON or XML. You can create a custom language support using ILanguageService.

    Text(IUIButton, string?)

    Sets the Text of the button.

    Declaration
    public static IUIButton Text(this IUIButton element, string? text)
    Parameters
    Type Name Description
    IUIButton element

    The IUIButton instance.

    string text

    The text to display in the button.

    Returns
    Type Description
    IUIButton

    The updated IUIButton instance.

    Text(IUIDropDownButton, string?)

    Sets the Text of the drop down button.

    Declaration
    public static IUIDropDownButton Text(this IUIDropDownButton element, string? text)
    Parameters
    Type Name Description
    IUIDropDownButton element
    string text
    Returns
    Type Description
    IUIDropDownButton

    Text(IUIDropDownMenuItem, string?)

    Sets the Text of the menu item.

    Declaration
    public static IUIDropDownMenuItem Text(this IUIDropDownMenuItem element, string? text)
    Parameters
    Type Name Description
    IUIDropDownMenuItem element
    string text
    Returns
    Type Description
    IUIDropDownMenuItem

    Text(IUILabel, string?)

    Sets the Text.

    Declaration
    public static IUILabel Text(this IUILabel element, string? text)
    Parameters
    Type Name Description
    IUILabel element
    string text
    Returns
    Type Description
    IUILabel

    Text<T>(T, string)

    Sets the unformatted text of the control.

    Declaration
    public static T Text<T>(this T element, string text) where T : IUISingleLineTextInput
    Parameters
    Type Name Description
    T element
    string text
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    Title(IUIInfoBar, string?)

    Sets the Title of the bar.

    Declaration
    public static IUIInfoBar Title(this IUIInfoBar element, string? title)
    Parameters
    Type Name Description
    IUIInfoBar element
    string title
    Returns
    Type Description
    IUIInfoBar

    Title<T>(T, string?)

    Sets the title of the element.

    Declaration
    public static T Title<T>(this T element, string? title) where T : IUITitledElement
    Parameters
    Type Name Description
    T element
    string title
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    TopPaneLength(IUISplitGrid, UIGridLength)

    Set the length of the top pane.

    Declaration
    public static IUISplitGrid TopPaneLength(this IUISplitGrid element, UIGridLength length)
    Parameters
    Type Name Description
    IUISplitGrid element
    UIGridLength length
    Returns
    Type Description
    IUISplitGrid

    Value(IUINumberInput, double)

    Sets the Text property of the IUINumberInput.

    Declaration
    public static IUINumberInput Value(this IUINumberInput element, double value)
    Parameters
    Type Name Description
    IUINumberInput element
    double value
    Returns
    Type Description
    IUINumberInput

    Vertical(IUISplitGrid)

    Split the IUISplitGrid vertically.

    Declaration
    public static IUISplitGrid Vertical(this IUISplitGrid element)
    Parameters
    Type Name Description
    IUISplitGrid element
    Returns
    Type Description
    IUISplitGrid

    Vertical(IUIStack)

    Organize the Children vertically.

    Declaration
    public static IUIStack Vertical(this IUIStack element)
    Parameters
    Type Name Description
    IUIStack element
    Returns
    Type Description
    IUIStack

    Warning(IUIInfoBar)

    Sets the Severity to Warning.

    Declaration
    public static IUIInfoBar Warning(this IUIInfoBar element)
    Parameters
    Type Name Description
    IUIInfoBar element
    Returns
    Type Description
    IUIInfoBar

    WebView()

    A component that displays a web page.

    Declaration
    public static IUIWebView WebView()
    Returns
    Type Description
    IUIWebView

    WebView(string?)

    A component that displays a web page.

    Declaration
    public static IUIWebView WebView(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUIWebView

    WithActionButton(IUIInfoBar, string, bool, Action)

    Sets the optional action button of the bar. The bar closes when the user click on the button.

    Declaration
    public static IUIInfoBar WithActionButton(this IUIInfoBar element, string text, bool isAccent, Action actionOnClick)
    Parameters
    Type Name Description
    IUIInfoBar element
    string text
    bool isAccent
    Action actionOnClick
    Returns
    Type Description
    IUIInfoBar

    WithActionButton(IUIInfoBar, string, bool, Func<ValueTask>)

    Sets the optional action button of the bar. The bar closes when the user click on the button.

    Declaration
    public static IUIInfoBar WithActionButton(this IUIInfoBar element, string text, bool isAccent, Func<ValueTask> actionOnClick)
    Parameters
    Type Name Description
    IUIInfoBar element
    string text
    bool isAccent
    Func<ValueTask> actionOnClick
    Returns
    Type Description
    IUIInfoBar

    WithBottomPaneChild(IUISplitGrid, IUIElement?)

    Set the element to display in the bottom pane.

    Declaration
    public static IUISplitGrid WithBottomPaneChild(this IUISplitGrid element, IUIElement? child)
    Parameters
    Type Name Description
    IUISplitGrid element
    IUIElement child
    Returns
    Type Description
    IUISplitGrid

    WithChild(IUIGridCell, IUIElement?)

    Sets the child element to display in the cell.

    Declaration
    public static IUIGridCell WithChild(this IUIGridCell element, IUIElement? child)
    Parameters
    Type Name Description
    IUIGridCell element
    IUIElement child
    Returns
    Type Description
    IUIGridCell

    WithChildren(IUISettingGroup, params IUIElement[])

    Sets the children to be displayed in the group.

    Declaration
    public static IUISettingGroup WithChildren(this IUISettingGroup element, params IUIElement[] children)
    Parameters
    Type Name Description
    IUISettingGroup element

    The IUISettingGroup element.

    IUIElement[] children

    The child elements.

    Returns
    Type Description
    IUISettingGroup

    The updated IUISettingGroup element.

    WithChildren(IUIStack, params IUIElement[])

    Sets the children to be displayed in the stack.

    Declaration
    public static IUIStack WithChildren(this IUIStack element, params IUIElement[] children)
    Parameters
    Type Name Description
    IUIStack element
    IUIElement[] children
    Returns
    Type Description
    IUIStack

    WithChildren(IUIWrap, params IUIElement[])

    Sets the children to be displayed in the stack.

    Declaration
    public static IUIWrap WithChildren(this IUIWrap element, params IUIElement[] children)
    Parameters
    Type Name Description
    IUIWrap element
    IUIElement[] children
    Returns
    Type Description
    IUIWrap

    WithColumns(IUIDataGrid, params string[])

    Sets the title of each column in the data grid.

    Declaration
    public static IUIDataGrid WithColumns(this IUIDataGrid element, params string[] columns)
    Parameters
    Type Name Description
    IUIDataGrid element
    string[] columns
    Returns
    Type Description
    IUIDataGrid

    WithFile(IUIImageViewer, FileInfo)

    Sets the ImageSource from a FileInfo.

    Declaration
    public static IUIImageViewer WithFile(this IUIImageViewer element, FileInfo imageFile)
    Parameters
    Type Name Description
    IUIImageViewer element

    The IUIImageViewer instance.

    FileInfo imageFile

    The FileInfo representing the image file.

    Returns
    Type Description
    IUIImageViewer

    The updated IUIImageViewer instance.

    WithFiles(IUIFileSelector, params SandboxedFileReader[])

    Sets selected files.

    Declaration
    public static IUIFileSelector WithFiles(this IUIFileSelector element, params SandboxedFileReader[] files)
    Parameters
    Type Name Description
    IUIFileSelector element
    SandboxedFileReader[] files
    Returns
    Type Description
    IUIFileSelector
    Remarks

    The items contain a stream. It won't be disposed automatically. It is important to dispose the stream yourself, when not needed anymore

    WithImage(IUIImageViewer, Image, bool)

    Sets the ImageSource from an Image.

    Declaration
    public static IUIImageViewer WithImage(this IUIImageViewer element, Image image, bool disposeAutomatically)
    Parameters
    Type Name Description
    IUIImageViewer element

    The IUIImageViewer instance.

    Image image

    The Image to display.

    bool disposeAutomatically

    Indicates whether the image should be disposed when not displayed in the UI anymore.

    Returns
    Type Description
    IUIImageViewer

    The updated IUIImageViewer instance.

    WithItems(IUIList, params IUIListItem[])

    Sets the Items of the list.

    Declaration
    public static IUIList WithItems(this IUIList element, params IUIListItem[] items)
    Parameters
    Type Name Description
    IUIList element
    IUIListItem[] items
    Returns
    Type Description
    IUIList

    WithItems(IUISelectDropDownList, params IUIDropDownListItem[])

    Sets the Items of the drop down list.

    Declaration
    public static IUISelectDropDownList WithItems(this IUISelectDropDownList element, params IUIDropDownListItem[] items)
    Parameters
    Type Name Description
    IUISelectDropDownList element
    IUIDropDownListItem[] items
    Returns
    Type Description
    IUISelectDropDownList

    WithLeftPaneChild(IUISplitGrid, IUIElement?)

    Set the element to display in the left pane.

    Declaration
    public static IUISplitGrid WithLeftPaneChild(this IUISplitGrid element, IUIElement? child)
    Parameters
    Type Name Description
    IUISplitGrid element
    IUIElement child
    Returns
    Type Description
    IUISplitGrid

    WithMenuItems(IUIDropDownButton, params IUIDropDownMenuItem[])

    Sets the MenuItems in the drop down button.

    Declaration
    public static IUIDropDownButton WithMenuItems(this IUIDropDownButton element, params IUIDropDownMenuItem[] menuItems)
    Parameters
    Type Name Description
    IUIDropDownButton element
    IUIDropDownMenuItem[] menuItems
    Returns
    Type Description
    IUIDropDownButton

    WithPickedFile(IUIImageViewer, SandboxedFileReader, bool)

    Sets the ImageSource from a SandboxedFileReader.

    Declaration
    public static IUIImageViewer WithPickedFile(this IUIImageViewer element, SandboxedFileReader pickedFile, bool disposeAutomatically)
    Parameters
    Type Name Description
    IUIImageViewer element

    The IUIImageViewer instance.

    SandboxedFileReader pickedFile

    The SandboxedFileReader representing the picked file.

    bool disposeAutomatically

    Indicates whether the pickedFile should be disposed when not displayed in the UI anymore.

    Returns
    Type Description
    IUIImageViewer

    The updated IUIImageViewer instance.

    WithRightPaneChild(IUISplitGrid, IUIElement?)

    Set the element to display in the right pane.

    Declaration
    public static IUISplitGrid WithRightPaneChild(this IUISplitGrid element, IUIElement? child)
    Parameters
    Type Name Description
    IUISplitGrid element
    IUIElement child
    Returns
    Type Description
    IUISplitGrid

    WithRootElement(UIToolView, IUIElement?)

    Sets the element to be displayed in the view.

    Declaration
    public static UIToolView WithRootElement(this UIToolView toolView, IUIElement? rootElement)
    Parameters
    Type Name Description
    UIToolView toolView
    IUIElement rootElement
    Returns
    Type Description
    UIToolView

    WithRows(IUIDataGrid, params IUIDataGridRow[])

    Sets the Rows of the data grid.

    Declaration
    public static IUIDataGrid WithRows(this IUIDataGrid element, params IUIDataGridRow[] rows)
    Parameters
    Type Name Description
    IUIDataGrid element
    IUIDataGridRow[] rows
    Returns
    Type Description
    IUIDataGrid

    WithSettings(IUISettingGroup, params IUISetting[])

    Sets the children to be displayed in the group.

    Declaration
    public static IUISettingGroup WithSettings(this IUISettingGroup element, params IUISetting[] settings)
    Parameters
    Type Name Description
    IUISettingGroup element

    The IUISettingGroup element.

    IUISetting[] settings

    The settings to be displayed in the group.

    Returns
    Type Description
    IUISettingGroup

    The updated IUISettingGroup element.

    WithTopPaneChild(IUISplitGrid, IUIElement?)

    Set the element to display in the top pane.

    Declaration
    public static IUISplitGrid WithTopPaneChild(this IUISplitGrid element, IUIElement? child)
    Parameters
    Type Name Description
    IUISplitGrid element
    IUIElement child
    Returns
    Type Description
    IUISplitGrid

    Wrap()

    Create a component that stacks child elements horizontally and stack them into multiple lines if there's not enough space to keep everything on a single line.

    Declaration
    public static IUIWrap Wrap()
    Returns
    Type Description
    IUIWrap

    Wrap(string?)

    Create a component that stacks child elements horizontally and stack them into multiple lines if there's not enough space to keep everything on a single line.

    Declaration
    public static IUIWrap Wrap(string? id)
    Parameters
    Type Name Description
    string id

    An optional unique identifier for this UI element.

    Returns
    Type Description
    IUIWrap

    WrapIfNeeded(IUILabel)

    Sets the AutoWrap to true.

    Declaration
    public static IUILabel WrapIfNeeded(this IUILabel element)
    Parameters
    Type Name Description
    IUILabel element
    Returns
    Type Description
    IUILabel
    In this article
    DevToys logo © 2024 DevToys