如何在WPF(UI设计)应用程序中嵌入C#文件? [英] How to embed C# file in WPF(UI design) application?

查看:194
本文介绍了如何在WPF(UI设计)应用程序中嵌入C#文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用WPF创建了UI设计& C#中的标记OCR。现在我需要在UI设计中嵌入这个C#代码。这该怎么做?





当我点击一个按钮时,标记表OCR C#代码应该运行。



我尝试过的事情:



有可能吗?我没有找到任何方法来执行此操作。

I have Created UI design using WPF & Marksheet OCR in C#. Now i need to embed this C# code in UI design. How to do this?


when i click a button, marksheet OCR C# code should run.

What I have tried:

Is it possible to do that? i did not find any methods to do this.

推荐答案

查看Process类: Process Class(System.Diagnostics) [ ^ ]



并且不要大喊大叫。使用所有大写字母被认为是在互联网上大喊大叫,粗鲁(使用所有小写字母被认为是幼稚的)。如果你想认真对待,请使用适当的大写字母。
Look at the Process class: Process Class (System.Diagnostics)[^]

And DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalization if you want to be taken seriously.


你不需要进行任何嵌入。只需将所有必需的C#类添加到WPF应用程序中。
You don't need to do any embedding. Just add all the necessary C# classes to your WPF application.


这篇关于如何在WPF(UI设计)应用程序中嵌入C#文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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