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

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

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

视图的 CustomControl 的 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 CustomControl for View

可选元素。

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

EnumerateCollection Element for ExpressionBinding for CustomControl for View

可选元素。

指定显示集合的元素。

ItemSelectionCondition Element for ExpressionBinding for CustomControl for View

可选元素。

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

PropertyName Element for ExpressionBinding for CustomControl for View

可选元素。

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

ScriptBlock Element for ExpressionBinding for CustomCustomControl for View

可选元素。

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

父元素

CustomItem Element for CustomEntry for CustomControl for View

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

评论

参见

View 的 CustomControl 的 ExpressionBinding 的 CustomControlName 元素

用于 View 的 CustomControl 的 ExpressionBinding 的 EnumerateCollection 元素

View 的 CustomControl 的 ExpressionBinding 的 ItemSelectionCondition 元素

View 的 CustomControl 的 ExpressionBinding 的 PropertyName 元素

用于 View 的 CustomControl 的 ExpressionBinding 的 ScriptBlock 元素

CustomItem 元素 用于 CustomEntry 用于 CustomControl 用于视图

编写 PowerShell 格式化文件

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

取消回复欢迎 发表评论:

关灯