样本解决方案“坐标映射基础-XAML”锁定UI [英] Sample Solution "Coordinate Mapping Basics-XAML" locks UI

查看:87
本文介绍了样本解决方案“坐标映射基础-XAML”锁定UI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

无法在示例解决方案(Coordinate Mappings-XAML)上放置可点击按钮。我认为该示例锁定了UI线程,因此无法放置"打印按钮"。 (比如C ++)解决方案。

It isn't possible to put an clickable button on the sample solution (Coordinate Mappings-XAML). I think the sample locks UI thread, so it's not possible to put an "Print Button" (like the C++) solution on it.

对于这个问题,有人有想法或有解决方案吗?

Anybody an idea or has an working solution for this issue?

最好,

Helmut

推荐答案

你看到了什么问题?按钮事件是否触发?如果是这样,那么你对事件回调函数有什么逻辑,因为这将发生在引起问题的UI线程上。这不是一个特别的Kinect问题,而是你如何编写
商店应用程序的代码。您可能需要创建一个异步函数,您可以在其自己的线程上运行以防止这种情况发生。
What issue are you seeing? Is the button event firing? If so, then what logic do you have on event callback function since that will happen on the UI thread which is causing the issue. This is not specifically a Kinect issue but how you may be writing the code for store applications. You may need to create an async function that you can run on its own thread to prevent that from happening.


这篇关于样本解决方案“坐标映射基础-XAML”锁定UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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