Skip to main content
Version: 4.2

CommandQueryEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Supplies a query and the results to display for server filtering.

public class CommandQueryEventArgs : EventArgs

Set Results during QueryChanged; asynchronous event handlers are not supported. In Client mode Results is ignored. In Server mode null uses built-in filtering of Commands; an empty sequence deliberately displays no matches. Returned objects are snapshotted after the handler.

Example:

palette.QueryChanged += (s, e) => e.Results = FindCommands(e.Query);

Constructors​

Instance member CommandQueryEventArgs(query)​

Creates query event data.

NameTypeDescription
queryStringThe normalized query.

Properties​

Instance member Query​

String: Gets the query entered by the user or passed to Show.

Instance member Results​

IEnumerable<PaletteCommand>: Gets or sets results for this query, preserving application ordering within each category.