PlaneProjection 類別

定義

表示檢視方塊轉換 (對象上類似 3D 的效果) 。

public ref class PlaneProjection sealed : Projection
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.UI.Xaml.WinUIContract")]
/// [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 PlaneProjection final : Projection
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.UI.Xaml.WinUIContract")]
[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 PlaneProjection : Projection
Public NotInheritable Class PlaneProjection
Inherits Projection
<PlaneProjection .../>
繼承
Object Platform::Object IInspectable DependencyObject Projection PlaneProjection
屬性

範例

若要將檢視方塊轉換套用至 UIElement,請將 UIElement 物件的 Projection 屬性設定為 PlaneProjection。 PlaneProjection 定義如何在空間中呈現轉換。 此範例顯示簡單的案例。

<StackPanel Margin="35" Background="Gray">
    <StackPanel.Projection>
        <PlaneProjection RotationX="-35" RotationY="-35" RotationZ="15"  />
    </StackPanel.Projection>
    <TextBlock Margin="10">Type Something Below</TextBlock>
    <TextBox Margin="10"></TextBox>
    <Button Margin="10" Content="Click" Width="100" />
</StackPanel>

建構函式

PlaneProjection()

初始化 PlaneProjection 類別的新實例。

屬性

CenterOfRotationX

取得或設定旋轉之物件旋轉中心的 X 座標。

CenterOfRotationXProperty

識別 CenterOfRotationX 相依性屬性。

CenterOfRotationY

取得或設定旋轉之物件旋轉中心的 Y 座標。

CenterOfRotationYProperty

識別 CenterOfRotationY 相依性屬性。

CenterOfRotationZ

取得或設定旋轉之物件旋轉中心的 Z 座標。

CenterOfRotationZProperty

識別 CenterOfRotationZ 相依性屬性。

Dispatcher

一律會在 Windows 應用程式 SDK 應用程式中傳null回。 請改用 DispatcherQueue

(繼承來源 DependencyObject)
DispatcherQueue

DispatcherQueue取得與這個 物件相關聯的 。 DispatcherQueue表示即使程式代碼是由非 UI 線程起始,也可以存取 DependencyObject UI 線程上的 。

(繼承來源 DependencyObject)
GlobalOffsetX

取得或設定物件沿著螢幕 X 軸轉譯的距離。

GlobalOffsetXProperty

識別 GlobalOffsetX 相依性屬性。

GlobalOffsetY

取得或設定物件沿著螢幕 Y 軸轉譯的距離。

GlobalOffsetYProperty

識別 GlobalOffsetY 相依性屬性。

GlobalOffsetZ

取得或設定物件沿著螢幕 Z 軸轉譯的距離。

GlobalOffsetZProperty

識別 GlobalOffsetZ 相依性屬性。

LocalOffsetX

取得或設定物件沿著物件平面 X 軸轉譯的距離。

LocalOffsetXProperty

識別 LocalOffsetX 相依性屬性。

LocalOffsetY

取得或設定物件沿著物件平面的 Y 軸轉譯的距離。

LocalOffsetYProperty

識別 LocalOffsetY 相依性屬性。

LocalOffsetZ

取得或設定物件沿著物件平面 Z 軸轉譯的距離。

LocalOffsetZProperty

識別 LocalOffsetZ 相依性屬性。

ProjectionMatrix

取得 PlaneProjection 的投影矩陣。

ProjectionMatrixProperty

識別 ProjectionMatrix 相依性屬性。

RotationX

取得或設定在旋轉 X 軸周圍旋轉物件的度數。

RotationXProperty

識別 RotationX 相依性屬性。

RotationY

取得或設定繞旋轉 Y 軸旋轉物件的度數。

RotationYProperty

識別 RotationY 相依性屬性。

RotationZ

取得或設定在旋轉 Z 軸周圍旋轉物件的度數。

RotationZProperty

識別 RotationZ 相依性屬性。

方法

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)

適用於

另請參閱