Table of Contents

Class CommandPaletteConfig

Namespace
Whim.CommandPalette
Assembly
Whim.CommandPalette.dll
The configuration for the command palette plugin.
public class CommandPaletteConfig
Inheritance
CommandPaletteConfig
Inherited Members

Constructors

CommandPaletteConfig(IContext)

Creates a new instance of CommandPaletteConfig.
public CommandPaletteConfig(IContext context)

Parameters

context IContext

Properties

ActivationConfig

The configuration for command palette activation.
Defaults to a MenuVariantConfig where Commands are set to CommandManager, and the matcher is the MostRecentlyUsedMatcher<T>.
public MenuVariantConfig ActivationConfig { get; }

Property Value

MenuVariantConfig

Backdrop

The backdrop/material to use for the command palette. Changes to this property during runtime will not be reflected in the UI - any changes must be done in the csx config prior to initializing Whim. Switching between different backdrops can influence the transparency - for more see BackdropType. Defaults to Mica, and to always show the backdrop.
public WindowBackdropConfig Backdrop { get; set; }

Property Value

WindowBackdropConfig

MaxHeightPercent

The maximum height of the command palette window, as a percentage of the monitor height.
public int MaxHeightPercent { get; set; }

Property Value

int

MaxWidthPixels

The maximum width of the command palette window, in pixels.
public int MaxWidthPixels { get; set; }

Property Value

int

YPositionPercent

The top of the command palette window, as a percentage of the monitor height.
public int YPositionPercent { get; set; }

Property Value

int