winform and WPF that something - use WPF controls in Winform form

First, the definition

1, Winform definition:

  · Net WinForm development platform is the title of one of the Windows Form.

2, WPF definition:

  WPF (Windows Presentation Foundation) is Microsoft's Windows-based user interface framework that is part of the .NET Framework 3.0. It provides a unified programming model, language and framework, truly separate interface design staff and developers; at the same time it provides a new multimedia interactive graphical user interface

Second, characteristics

1, Winform features:

  • Powerful: Windows Forms can be used to design the forms and visual controls to create rich Windows-based applications
  • Use security: Windows Forms full advantage of the security features of the common language runtime.
  • Easy to operate: to provide easy connection OLEDB and ODBC data source data controls, including Microsoft SQL Server, Microsoft Access, Jet , DB2 and Oracle, etc.
  • Flexible controls: Windows Forms provides a rich set of controls, and developers can define their own distinctive new controls.
  • Data management: data display and convenient operation: one of the most common application development scenario is in the form of display data on. Windows Forms provides full support for database processing. You can access the data in the database, and displays the data on the form and operation.
  • Wizard clear: to provide a user create a form distributed guidance, data processing, packaging, and deployment of.
 

2, WPF features:

  • Separation of functions and interfaces: programmers and artists a clear division of labor, artists can use the Expression Studio suite of tools visual design interface. Then to program development group XAML can be. Let program staff directly applied to the development environment, how to avoid having to cut the page.
  • Super support vector: Compatible with 2D graphics, such as rectangles, custom path, bitmaps. Enhanced text display, XPS and antialiasing. Three-dimensional strong support. Including 3D controls, and events, and 2D and video merge to create a more three-dimensional effect. Gradient, using high-precision (an ARGB) color, the pixel coordinates of the floating-point support type.
  • Flexible, easy to expand the animation mechanism: .Net Framework 3.0 class library provides a powerful base class, just inherit custom program can be achieved using the drawing. Interface design is intuitive and fully object-oriented object model.
  • You can use any .Net programming language: XAML mainly for visual control interface description, as students will enter into a .cs or .vb file analysis, and finally compiled into an intermediate language CLR running.

Third, how to choose

To consider the question:

  • Our target audience as well as the machine configuration system
  • According to the program interface requirements
  • What type of project, appearance or technical
  • The target groups are the kind of person
  • Developers is what kind of person
  • Developers familiar with the extent of how WPF and Winform

-------------------------------------------------------------------------------------------

Procedurally, calls are handled in the form of events:

  • Winform slightly easier than the development of WPF point, but said that on the whole actually not much difference.
  • WPF based directX, it is better for 3D processing, the picture is more cool.
  • winform screen design uses the same language and the development of language, and stored in the same file type in the code, portability is not good. WPF an XML written in the form of a screen, stored in xml, more portable, and more intuitive.
  • Another little nuances that winform controls can be stacked, such as two button coordinates can be exactly the same, only to see a top. The WPF controls can not be stacked, so if there are two identical button position, you have to hide one or two will be seen.
  • MVVM pattern with WPF
  • winform with event-driven applications WPF has three modes: applications, browser applications, document application.
  • Application is the general window applications, web browsing application is the same as the one page application, document application is a browser application subset of the functionality to display the contents, not the MVC model.
  • In fact, that is the general application of each page has a separate window.

in conclusion:

WinForm: + interface can program a person finished out
WPF: we'll give you a bunch of code farmers with an artist, of course, if you are good at art itself, then a person is not a problem.

 

winform form design, enterprise management system interface design Reference: https://blog.csdn.net/qq_36482772/article/details/78008531

WPF form design, simulation TIM QQ interface design, reference: https://www.jianshu.com/p/d105e40a90d4

Use WPF controls in Winform form , please go to achieve specific  https://www.cnblogs.com/DebugLZQ/archive/2012/05/19/2508846.html

 

Note: The above article describes some excerpts online, if told wrong, please point out, thanks! ! !

Guess you like

Origin www.cnblogs.com/guhuazhen/p/11447634.html