当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] 视图控件的 CustomItem 的 ExpressionBinding 元素

作者:精品下载站 日期:2024-12-14 02:41:19 浏览:12 分类:玩电脑

视图控件的 CustomItem 的 ExpressionBinding 元素


定义控件显示的数据。在定义可由视图使用的控件时使用此元素。

模式

  • 配置元素
  • 视图定义元素
  • 查看元素
  • 控制元件
  • 控制元件
  • 自定义控制元素
  • 自定义条目元素
  • 自定义条目元素
  • 自定义项目元素
  • 表达式绑定元素

句法

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

属性和元素

以下各节介绍 ExpressionBinding 元素的属性、子元素和父元素。

属性

没有任何。

子元素

CustomControl Element

可选元素。

定义此控件使用的控件。

CustomControlName Element for ExpressionBinding for Controls for View

可选元素。

指定公共控件或视图控件的名称。

EnumerateCollection Element for ExpressionBinding for Controls for View

可选元素。

指定显示集合的元素。

ItemSelectionCondition Element of ExpressionBinding for Controls for View

可选元素。

定义使用此控件必须存在的条件。

PropertyName Element for ExpressionBinding for Controls for View

可选元素。

指定其值由控件显示的 .NET 属性。

ScriptBlock Element for ExpressionBinding for Controls for View

可选元素。

指定控件显示其值的脚本。

父元素

CustomItem Element for CustomEntry for Controls for View

定义控件显示哪些数据以及如何显示。

评论

参见

视图控件的 CustomEntry 的 CustomItem 元素

用于视图控件的 ExpressionBinding 的 CustomControlName 元素

用于视图控件的 ExpressionBinding 的 EnumerateCollection 元素

视图控件的 ExpressionBinding 的 ItemSelectionCondition 元素

视图控件的 ExpressionBinding 的 PropertyName 元素

用于视图控件的表达式绑定的 ScriptBlock 元素

编写 PowerShell 格式化文件

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯