UIElement.Projection Propriété
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient ou définit la projection de perspective (effet 3D) à appliquer lors du rendu de cet élément.
public:
property Projection ^ Projection { Projection ^ get(); void set(Projection ^ value); };
Projection Projection();
void Projection(Projection value);
public Projection Projection { get; set; }
var projection = uIElement.projection;
uIElement.projection = projection;
Public Property Projection As Projection
<uiElement>
<uiElement.Projection>
singleProjection
</uiElement.Projection>
</uiElement>
Effet de projection 3D appliqué à l’élément .
Cet exemple montre comment appliquer un PlanProjection de base dans le code XAML de la page initiale.
<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>
Projection et RenderTransform avec skewTransform peuvent obtenir des résultats similaires, une projection est probablement plus polyvalente, en particulier si vous souhaitez qu’un sens de changement de perspective soit appliqué à l’élément.
Projection est le type de classe de base utilisé par cette propriété, mais Projection n’implémente pas de comportement pratique. Utilisez Matrix3DProjection ou PlaneProjection.
La valeur de Projection est remplacée par PointerDownThemeAnimation et PointerUpThemeAnimation.
Produit | Versions |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |