我将使用WPF开发一个应用程序,我需要一些输入来使用架构和模式 [英] I will be developing an app using WPF.I need some inputs for architecture and patterns to be used

查看:76
本文介绍了我将使用WPF开发一个应用程序,我需要一些输入来使用架构和模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将使用WPF开发一个应用程序.我需要一些输入来使用体系结构和模式.
1.应用程序从硬件连续读取数据(有第三方DLL可以读取数据)
3.根据ID读取数据,这些ID会有所不同.
像ID = 230一样,Data = Value来显示档位指示.
2.应用程序有一个主页,其中包含齿轮指示器,进度条,模式显示等元素,必须更新数据(解码值并将相应的值分配给UI).
3.根据ID的要求,有一些子表单必须在文本框中显示数据
4.应用程序中唯一的用户输入是单击按钮以导航到子表单.
请建议有关如何进行操作的任何方法.

I will be developing an app using WPF.I need some inputs for architecture and patterns to be used .
1.Application reads data continously from an hardware(3rd party DLL''s are there to read data)
3.Data is read based on ID''s which will diff .
Like ID=230 ,Data=Value to display gear indication.
2.Application has a main page which has elements like gear indicator,progress bar ,modes display etc to which data(decode the value and assign corresponding values to UI) has to be updated.
3.There are sub forms which has to be display data in textbox based on the ID''s
4.The only user input in the application is button click to navigate to sub forms.
Please suggest any approaches on how to proceed

推荐答案

您可以使用MVVM或PRISM.对于要在多个视图上共享的状态栏或进度条,Sigleton的方法将非常有用.
You can use MVVM or PRISM. For status bar or progress bar that are being shared over multiple views, Sigleton approach will be great.


这篇关于我将使用WPF开发一个应用程序,我需要一些输入来使用架构和模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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