CommandBarTemplateSettings 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供在为 CommandBar 控件定义模板时可以作为 TemplatedParent 源引用的计算值。 不适用于一般用途。
public ref class CommandBarTemplateSettings sealed : DependencyObject
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CommandBarTemplateSettings final : DependencyObject
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CommandBarTemplateSettings : DependencyObject
Public NotInheritable Class CommandBarTemplateSettings
Inherits DependencyObject
- 继承
- 属性
Windows 要求
| 设备系列 |
Windows 10 (在 10.0.10240.0 中引入)
|
| API contract |
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
|
注解
版本历史记录
| Windows 版本 | SDK 版本 | 增值 |
|---|---|---|
| 1511 | 10586 | OverflowContentMaxWidth |
| 1607 | 14393 | EffectiveOverflowButtonVisibility |
| 1903 | 18362 | OverflowContentCompactYTranslation |
| 1903 | 18362 | OverflowContentHiddenYTranslation |
| 1903 | 18362 | OverflowContentMinimalYTranslation |
属性
| ContentHeight |
获取 CommandBar 内容的高度。 |
| Dispatcher |
获取与此 对象关联的 CoreDispatcher 。 CoreDispatcher 表示可以访问 UI 线程上的 DependencyObject 的工具,即使代码是由非 UI 线程启动的。 (继承自 DependencyObject) |
| EffectiveOverflowButtonVisibility |
获取命令栏的溢出按钮的有效可见性。 |
| NegativeOverflowContentHeight |
获取溢出方向为负时溢出内容的高度。 |
| OverflowContentClipRect |
获取描述溢出内容的剪切区域的 Rect 。 |
| OverflowContentCompactYTranslation |
获取 Y 轴上处于压缩状态的溢出内容的平移。 |
| OverflowContentHeight |
获取溢出内容的高度。 |
| OverflowContentHiddenYTranslation |
获取处于隐藏状态的 Y 轴上溢出内容的平移。 |
| OverflowContentHorizontalOffset |
获取溢出内容的水平偏移量值。 |
| OverflowContentMaxHeight |
获取溢出内容的最大高度值。 |
| OverflowContentMaxWidth |
获取溢出内容的最大宽度值。 |
| OverflowContentMinimalYTranslation |
获取 Y 轴上处于最小状态的溢出内容的平移。 |
| OverflowContentMinWidth |
获取溢出内容的最小宽度值。 |
方法
| ClearValue(DependencyProperty) |
清除依赖属性的本地值。 (继承自 DependencyObject) |
| GetAnimationBaseValue(DependencyProperty) |
返回为依赖属性建立的任何基值,该基值适用于动画未处于活动状态的情况。 (继承自 DependencyObject) |
| GetValue(DependencyProperty) |
从 DependencyObject 返回依赖属性的当前有效值。 (继承自 DependencyObject) |
| ReadLocalValue(DependencyProperty) |
如果设置了本地值,则返回依赖属性的本地值。 (继承自 DependencyObject) |
| RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback) |
注册一个通知函数,用于侦听此 DependencyObject 实例上特定 DependencyProperty 的更改。 (继承自 DependencyObject) |
| SetValue(DependencyProperty, Object) |
设置 DependencyObject 上依赖属性的本地值。 (继承自 DependencyObject) |
| UnregisterPropertyChangedCallback(DependencyProperty, Int64) |
取消以前通过调用 RegisterPropertyChangedCallback 注册的更改通知。 (继承自 DependencyObject) |