用于Windows嵌入式线程的XAML [英] XAML for windows embedded threading

查看:86
本文介绍了用于Windows嵌入式线程的XAML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



如何使用GUI线程连接工作线程CreateThread()

我正在使用Blend来创建XAML代码。之后,项目将导入Visual Studio Project(嵌入式紧凑项目)。我可以毫无失败地运行项目。



在我的MainPage类(XRCustomUserControlImpl)中,我可以看到按钮实现和事件处理程序,我可以为特定按钮事件创建一个线程,但我怎么能够中断GUI更新一些元素?



我没有找到任何有关XAML和Embedded Compact(一些示例代码)的信息,我发现只有C#。 />


如果有人可以帮助我会很好。



最好的问候



我的尝试:



- > BEGIN_MESSAGE_MAP,错误消息

- >发布消息,不清楚如何在GUI线程中实现GetMessage()。

Hello,

how can i connect a worker thread "CreateThread()" with the "GUI Thread"
I'm using Blend to create the XAML code. After that the project is imported to Visual Studio Project (Embedded Compact Project). I can run the project without failure.

In my MainPage Class (XRCustomUserControlImpl) i can see the button implementation and event handlers and i can create a thread for a specific button event, but how can i can i interrupt the GUI to update some element?

I haven't found any information for XAML and Embedded Compact (some example code) all i found was for C#.

It would be nice if someone can help me.

best regards

What I have tried:

-> BEGIN_MESSAGE_MAP, error message
-> Post Message, not clear how to implement GetMessage() in GUI Thread.

推荐答案

这些都没有意义。您询问如何在 XAML 中创建线程,这是不可能的, XAML 是Window UI结构的声明性语言。然后你提到 BEGIN_MESSAGE_MAP ,这是一个MFC宏。最后 PostMessage 这是一个Win32 API调用。
None of this makes sense. You ask how to create threads in XAML, which is impossible, XAML is a declarative language for a Window UI structure. You then mention BEGIN_MESSAGE_MAP, which is an MFC macro. And finally PostMessage which is a Win32 API call.


这篇关于用于Windows嵌入式线程的XAML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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