Table of Contents

Interface IVariantViewModel

Namespace
Whim.CommandPalette
Assembly
Whim.CommandPalette.dll
Base interface for all variants of palette view models.
public interface IVariantViewModel : INotifyPropertyChanged
Inherited Members

Properties

ConfirmButtonText

The text for the confirm button. Typically "Save" or "Execute".
string? ConfirmButtonText { get; }

Property Value

string

Methods

Activate(BaseVariantConfig)

Activate this variant.
void Activate(BaseVariantConfig activationConfig)

Parameters

activationConfig BaseVariantConfig

Confirm()

Handle the confirm button being pressed.
void Confirm()

OnKeyDown(VirtualKey)

Handle a key down event.
void OnKeyDown(VirtualKey key)

Parameters

key VirtualKey

Update()

Update what is displayed in the palette.
void Update()