[UWP] XAML动画剪辑 [英] [UWP] XAML Animation Clipping

查看:54
本文介绍了[UWP] XAML动画剪辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个颜色填充的矩形。 我希望为在矩形区域内移动的形状设置动画,使其在矩形边界之外不可见,但仍然显示为进入和离开矩形。
$


在WPF中这可以通过将ClipToBounds属性设置为true来轻松实现,但这在UWP中不存在:(
$


任何想法?

I have a color filled rectangle.  I want to animate a shape travelling across the rectangle such that it is not visible beyond the rectangle's bounds, but still appears to be entering and leaving the rectangle.

In WPF this could be easily accomplished by setting the ClipToBounds property to true, but this doesn't exist in UWP :(

Any ideas ?

推荐答案

你好,theresonlyonefinmaf,

Hi theresonlyonefinmaf,

这是一个关于在WinRT中实现ClipToBounds效果的类似线程,我想你可以从中获得一些很棒的想法请参考

Here is a similar thread about implement the ClipToBounds effect in WinRT, I think you can get some great ideas form it. Please have a reference to

https://social.msdn.microsoft.com/Forums/en-US/0e80a0ed -bf4d-479f-bbf1-9fefc1db0857 / how-to-clip-content-of-a-panel-at-bound-bound -bounds-in-metro?forum = winappswithcsharp

祝你好运,

Breeze


这篇关于[UWP] XAML动画剪辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆