Surface wpf:将椭圆移动到窗口中的任意位置

发布于 2024-09-17 18:23:09 字数 102 浏览 1 评论 0原文

我想创建一个椭圆,它在窗口的任何位置不可预测地移动,同时知道他的位置。就像一个球在表面上到处移动,如果遇到一个角落,他就会改变方向。

感谢您的帮助。 抱歉,如果我的解释不具体

I want to create an ellipse who move unpredictable wherever in the window and know in the same time his postion. Like a ball who are going everywhere in the surface and if his meet a corner he changes his direction.

Thanks for your help.
Sorry if my explication is not specific

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

白昼 2024-09-24 18:23:09

查看 Surface SDK 中的“paddleball”示例。它完全符合你的描述

look at the "paddleball" sample in the Surface SDK. it does exactly what you describe

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文