Share via


AppBarTemplateSettings 类

定义

提供在为 AppBar 控件定义模板时可以引用为 TemplatedParent 源的计算值。 不适合一般用途。

public ref class AppBarTemplateSettings sealed : DependencyObject
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AppBarTemplateSettings final : DependencyObject
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AppBarTemplateSettings : DependencyObject
Public NotInheritable Class AppBarTemplateSettings
Inherits DependencyObject
继承
Object Platform::Object IInspectable DependencyObject AppBarTemplateSettings
属性

属性

ClipRect

获取描述 AppBar 的剪切区域的 Rect

CompactRootMargin

获取处于紧凑状态的 AppBar 根的边距。

CompactVerticalDelta

获取处于紧凑状态的 AppBar 的垂直增量。

Dispatcher

始终在Windows 应用 SDK应用中返回 null 。 请改用 DispatcherQueue

(继承自 DependencyObject)
DispatcherQueue

DispatcherQueue获取与此对象关联的 。 表示 DispatcherQueue 一个可以在 UI 线程上访问 DependencyObject 的设施,即使代码是由非 UI 线程启动的。

(继承自 DependencyObject)
HiddenRootMargin

获取处于隐藏状态的 AppBar 根的边距。

HiddenVerticalDelta

获取处于隐藏状态的 AppBar 的垂直增量。

MinimalRootMargin

获取处于最小状态的 AppBar 根的边距。

MinimalVerticalDelta

获取处于最小状态的 AppBar 的垂直增量。

NegativeCompactVerticalDelta

获取处于紧凑状态的 AppBar 的负垂直增量。

NegativeHiddenVerticalDelta

获取处于隐藏状态的 AppBar 的负垂直增量。

NegativeMinimalVerticalDelta

获取处于最小状态的 AppBar 的负垂直增量。

方法

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)

适用于

另请参阅