CustomControl for View 的 CustomItem ExpressionBinding 元素

定義控制項所顯示的資料。 定義自訂控制項視圖時,會使用這個元素。

結構描述

  • 組態元素
  • ViewDefinitions 元素
  • View 元素
  • CustomControl 元素
  • CustomEntries 元素
  • CustomEntry 元素
  • CustomItem 元素
  • ExpressionBinding 元素

Syntax

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

屬性和項目

下列各節說明屬性、子專案和元素的父元素 ExpressionBinding

屬性

無。

子元素

元素 描述
CustomControl Element 選擇性項目。

定義這個控制項所使用的控制項。
CustomControl for View 的 ExpressionBinding CustomControlName 元素 選擇性項目。

指定通用控制項或 view 控制項的名稱。
CustomControl for View 的 ExpressionBinding EnumerateCollection 元素 選擇性項目。

指定會顯示集合的元素。
CustomControl for View 的 ExpressionBinding ItemSelectionCondition 元素 選擇性項目。

定義必須存在才能使用此控制項的條件。
適用于 CustomControl 的 ExpressionBinding 的 PropertyName 元素(用於 View) 選擇性項目。

指定控制項顯示其值的 .NET 屬性。
ExpressionBinding for CustomCustomControl for View 的 ScriptBlock 元素 選擇性項目。

指定控制項顯示其值的腳本。

父項目

元素 描述
CustomControl for View 的 CustomEntry CustomItem 元素 定義自訂控制項視圖所顯示的資料,以及其顯示方式。

備註

另請參閱

CustomControl for View 的 ExpressionBinding CustomControlName 元素

CustomControl for View 的 ExpressionBinding EnumerateCollection 元素

CustomControl for View 的 ExpressionBinding ItemSelectionCondition 元素

適用于 CustomControl 的 ExpressionBinding 的 PropertyName 元素(用於 View)

ExpressionBinding for CustomControl for View 的 ScriptBlock 元素

CustomControl for View 的 CustomEntry CustomItem 元素

撰寫 PowerShell 格式設定檔案