更新时间:2023-11-03 23:30:04
您好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