ExpressionBinding, element , CustomItem, CustomControl, View

Definiuje dane wyświetlane przez kontrolkę. Ten element jest używany podczas definiowania niestandardowego widoku kontrolki.

Schemat

  • Configuration, element
  • ViewDefinitions, element
  • View, element
  • CustomControl, element
  • CustomEntries, element
  • CustomEntry, element
  • CustomItem, element
  • ExpressionBinding, element

Składnia

<ExpressionBinding>
  <CustomControl>...</CustomControl>
  <CustomControlName>NameofCommonCustomControl</CustomControlName>
  <EnumerateCollection/>
  <ItemSelectionCondition>...</ItemSelectionCondition>
  <PropertyName>Nameof.NetTypeProperty</PropertyName>
  <ScriptBlock>ScriptToEvaluate></ScriptBlock>
</ExpressionBinding>

Atrybuty i elementy

W poniższych sekcjach opisano atrybuty, elementy podrzędne i element nadrzędny ExpressionBinding elementu .

Atrybuty

Brak.

Elementy podrzędne

Element Opis
CustomControl Element Element opcjonalny.

Definiuje kontrolkę używaną przez tę kontrolkę.
CustomControlName, element dla ExpressionBinding, CustomControl, View Element opcjonalny.

Określa nazwę wspólnej kontrolki lub kontrolki widoku.
EnumerateCollection, element dla ExpressionBinding, CustomControl, View Element opcjonalny.

Określono, że elementy kolekcji są wyświetlane.
ItemSelectionCondition, element dla ExpressionBinding, CustomControl, View Element opcjonalny.

Definiuje warunek, który musi istnieć, aby można było używać tej kontrolki.
PropertyName, element dla ExpressionBinding, CustomControl, View Element opcjonalny.

Określa właściwość .NET, której wartość jest wyświetlana przez kontrolkę.
ScriptBlock, element — ExpressionBinding, CustomCustomControl, View Element opcjonalny.

Określa skrypt, którego wartość jest wyświetlana przez kontrolkę.

Elementy nadrzędne

Element Opis
CustomItem, element , CustomEntry, CustomControl, View Definiuje, jakie dane są wyświetlane w niestandardowym widoku kontrolki i jak są wyświetlane.

Uwagi

Zobacz też

CustomControlName, element dla ExpressionBinding, CustomControl, View

EnumerateCollection, element dla ExpressionBinding, CustomControl, View

ItemSelectionCondition, element dla ExpressionBinding, CustomControl, View

PropertyName, element dla ExpressionBinding, CustomControl, View

ScriptBlock, element — ExpressionBinding, CustomControl, View

CustomItem, element , CustomEntry, CustomControl, View

Pisanie pliku formatującego programu PowerShell