Skip to content

NodePicker

Class in Oadm.Sdk.Client.Controls · Oadm.Sdk.Client.dll

The node list of a node canvas (Vision Center’s pipelines, Provisioning’s profiles): a popup on the canvas with a search at the top and the kinds below, grouped, each with its coloured icon, its name and its line. Its data context is a NodePickerModel; put it into a Canvas over the canvas control, it places itself at the model’s NodePickerModel.Left and NodePickerModel.Top and shows while it is open. The search takes the keys when it opens: Enter adds the first kind shown, Esc closes it; a click on a kind adds it. Afterwards the keys go back to NodePicker.FocusAfter (the canvas).

public sealed class NodePicker : Border

Inherits Border

Set them in XAML (<ui:NodePicker Name="..." />) or bind them.

Name Type Description
EmptyText string? The line shown when no kind matches the search (“No node matches.”).
FocusAfter IInputElement? What takes the keys after a kind was chosen or Esc closed the list (the canvas control); null: nothing.
Placeholder string? The placeholder of the search (“Search nodes”).
NodePicker()

Builds the list; bind its data context to a NodePickerModel.

ListBox List { get; }

The list of groups and kinds (tests).

SearchBox Search { get; }

The search field (tests).

const double TallestHeight = 400

The height of the list with its search when it shows as many kinds as it can (the theme’s list height plus the search).