ManipulationInertiaStarting使对象从边界反弹 [英] ManipulationInertiaStarting let the object rebound from the border

查看:64
本文介绍了ManipulationInertiaStarting使对象从边界反弹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用ManipulationInertiaStarting时,如何让物体从边界反弹而不是飞出屏幕?

When I use ManipulationInertiaStarting,How can I let the object rebound from the border otherthan fly out the screen?

推荐答案

您好peiyangzhang,

Hi peiyangzhang,

根据您的描述,您的问题不清楚.您能否提供有关它的更多信息?它是通用Windows平台(UWP)应用吗?

Based on your description, your question is not clear. Could you provide more information about it? Is it an Universal Windows Platform (UWP) app?

>> "

>> "How can I let the object rebound from the border otherthan fly out the screen?"

如果要反弹控件的某些属性,可以使用SetBinding方法.以下代码供您参考,并重置其DataContext属性.

If you want to rebound some properties of your controls, you could use SetBinding method. Code below is for your reference and reset its DataContext property.

button1.SetBinding(Button.ContentProperty, new Binding(path));
button1.DataContext = objContext;

最好的问候,
王丽

Best Regards,
Li Wang


这篇关于ManipulationInertiaStarting使对象从边界反弹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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