本文整理汇总了C#中Windows.UI.Xaml.UIElement.GetContainerVisual方法的典型用法代码示例。如果您正苦于以下问题:C# UIElement.GetContainerVisual方法的具体用法?C# UIElement.GetContainerVisual怎么用?C# UIElement.GetContainerVisual使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Windows.UI.Xaml.UIElement
的用法示例。
在下文中一共展示了UIElement.GetContainerVisual方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DisappearEffectComposition
public DisappearEffectComposition(UIElement element)
{
ContainerVisual = element.GetContainerVisual();
Compositor = ContainerVisual.Compositor;
Element = element as UIElement;
CheckParameters();
}
示例2: BlendEffectComposition
public BlendEffectComposition(UIElement element, String uri)
{
Compositor = element.GetContainerVisual().Compositor;
InitializeAnimations();
Initialize(element, uri);
InitializeVisuals(element);
}
示例3: AppearEffectComposition
public AppearEffectComposition(UIElement element)
{
ContainerVisual = element.GetContainerVisual();
Compositor = ContainerVisual.Compositor;
Element = element as UIElement;
CheckParameters();
InitializeAnimations();
Animate();
}
示例4: GradientEffectComposition
public GradientEffectComposition(UIElement element, LinearGradientBrush gradient)
{
Element = element as Panel;
Gradient = gradient;
ContainerVisual = element.GetContainerVisual();
Compositor = ContainerVisual.Compositor;
InitializeAnimations();
SetGradient(gradient);
}
示例5: FallEffectComposition
public FallEffectComposition(UIElement element, bool newvalue)
{
ContainerVisual = element.GetContainerVisual();
Compositor = ContainerVisual.Compositor;
Element = element;
InitializeAnimations();
Animate(newvalue);
}
示例6: DropEffectComposition
public DropEffectComposition(UIElement element)
{
ContainerVisual = element.GetContainerVisual();
Compositor = ContainerVisual.Compositor;
Element = element as TextBlock;
InitializeAnimations();
}
示例7: SquaresEffectComposition
public SquaresEffectComposition(UIElement element, bool newvalue)
{
ContainerVisual = element.GetContainerVisual();
Compositor = ContainerVisual.Compositor;
Element = element;
SquaresVisual = Compositor.CreateChildContainer(Element);
CreateSquares();
InitializeAnimations();
Animate(newvalue);
}