InfoBarPanel 類別

定義

表示面板,如果有可用的空間,則表示水準排列其專案的面板,否則為垂直排列。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

/// [Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Version(1)]
class InfoBarPanel : Panel
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 65536)]
class InfoBarPanel : Panel
[Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Version(1)]
public class InfoBarPanel : Panel
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
public class InfoBarPanel : Panel
Public Class InfoBarPanel
Inherits Panel
繼承
InfoBarPanel
屬性
Microsoft.UI.Xaml.CustomAttributes.MUXContractPropertyAttribute MarshalingBehaviorAttribute ThreadingAttribute VersionAttribute ContractVersionAttribute

備註

InfoBarPanel 元素是 InfoBar預設範本 XAML 中的主要內容區域。 InfoBarPanel 通常不會用於一般 XAML UI 組合。

建構函式

InfoBarPanel()

初始化 InfoBarPanel 類別的新實例。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

屬性

HorizontalOrientationMarginProperty

取得 InfoBarPanel.HorizontalOrientationMargin 相依性屬性的識別碼。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

HorizontalOrientationPadding

取得並設定當面板水準方向時 ,InfoBarPanel 的邊緣與其子系之間的距離。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

HorizontalOrientationPaddingProperty

取得 InfoBarPanel.HorizontalOrientationPadding 相依性屬性的識別碼。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

VerticalOrientationMarginProperty

取得 InfoBarPanel.VerticalOrientationMargin 相依性屬性的識別碼。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

VerticalOrientationPadding

取得並設定當面板垂直方向時 ,InfoBarPanel 的邊緣與其子系之間的距離。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

VerticalOrientationPaddingProperty

取得 InfoBarPanel.VerticalOrientationPadding 相依性屬性的識別碼。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

附加屬性

HorizontalOrientationMargin

當 InfoBarPanel的專案水準對齊時,InfoBarPanel 的邊界。 這個屬性會保留供內部使用,不適用於您的程式碼。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

VerticalOrientationMargin

當 InfoBarPanel的專案垂直對齊時,InfoBarPanel 的邊界。 這個屬性會保留供內部使用,不適用於您的程式碼。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

方法

GetHorizontalOrientationMargin(DependencyObject)

從 物件取得 HorizontalOrientationMargin本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

GetVerticalOrientationMargin(DependencyObject)

從 物件取得 VerticalOrientationMargin本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

SetHorizontalOrientationMargin(DependencyObject, Thickness)

HorizontalOrientationMargin 設定為 物件。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

SetVerticalOrientationMargin(DependencyObject, Thickness)

VerticalOrientationMargin 設定為 物件。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

適用於

另請參閱