The first day, wpf need to know (2)

wpf is Microsoft's next generation of rich user interface design framework, included in the. net framework 3.0 and above versions. wpf contains the user interface, 2d, 3d, and multimedia in the same framework. It is based on the performance of vector graphics engines and can use hardware acceleration. This design makes the interface more quickly and solve the resolution of the display problems. The following chart will see the wpf new features, or in English, free painting a Chinese.

The first day, wpf need to know (2)

The separation performance and code

wpf performance and code will be open points, interfaces with the xaml, code control using c #. or vb used these two data binding (databinding), events (events) and commands (commands) together. code separation will take to the following benefits, in fact, this concept has long separated the code. Not wpf original.

  • Appearance and behaviour are loosely coupled (do not know how to explain the low coupling?)
  • Designers and developers can work on separate models. (Designers and code writers can separate the good cooperation)
  • Graphical design tools can work on simple XML documents instead of parsing code. (Graphic design work can be used instead of xml parsing code)

In fact, a better division of labor is for everyone to meet. All for all things.

Richer mix

In control in wpf is very easy to mix, you can almost define a control as any other control of the content. This of course sounds too scary for the designer's

But as long as you use it, but very appropriate land. Button becomes the picture into the image button, the video list into the multi-line text box can be changed since the video file. Let your imagination play. Changed because of you (like advertising)

The following code reproduces this I can not translate.

    <StackPanel Orientation="Horizontal">
        <Image Source="speaker.png" Stretch="Uniform"/>
        <TextBlock Text="Play Sound" />

The first day, wpf need to know (2)

Translation can not explain the definition of a button, and placed inside a StackPanel container, stackpanel is to control emissions by horizontal or vertical container in this container into a picture control, a text control.


Because the separation of code you can more easily change a control, style to use as html in the css as easy, templates can also change the controls. Here is a standard and a custom button wpfbutton

The first day, wpf need to know (2)

Resolution independent

In wpf is vector-based rather than pixel, wpf are described with vectors.

The first day, wpf need to know (2)

That would not be blocks of pixels to enlarge.

分类:DotNet 时间:2010-03-27 人气:277
blog comments powered by Disqus


  • 100 Excellent site design and development abroad, covering Web design, graphic design, Flash and Flex, design resources and other sites 2010-10-12

    Common design site Spunk United is an excellent magazine, which offered an interview are the world's top designers, inspiration, and articles and more. FreeLance Switch all the resources on this site is open free of charge, you must know:) Computer A

  • web2.0 graphic design style guide 2010-05-07 3D6 web2.0 graphic design style guide to common property Simple design simple design What is blocking you design? Perhaps too many useless elements? Carrying out a design, I often find myself u

  • Jolicloud trial record - Multimedia (audio / video) file playback 2010-07-30

    Similarly, the title of the blog in baidu has been written to one, but then think about it, since it is necessary to try to write some of the feelings of trial, not the same as the tutorial, just to talk about how to install or use. So think on this

  • Graphic Design Schools - Everything You Need To Know - FREE Articles Directory 2010-11-24

    A successful future in the new media industry (and specifically, graphic design) depends on choosing the right school. As a graduate student in this field myself, I will be able to provide you with the absolute best advice one can get in regards to t

  • Data ink and graphic design 2010-12-20

    The application of the chart has been for thousands of years. In recent decades, there are a lot of depth. Such as Bell Labs, Cleveland began in the seventies a series of works on the chart and its different aspects involved in doing a very detailed

  • java graphic design volume 1AWT volume 2swing 2010-03-29

    java graphic design volume 1AWT volume 2swing

  • [Multi-threading] a video file larger than 200M, with 4 threads go copy to another directory 2010-10-09

    This is the key issue is to a video file into an average of four, with four threads each copy, Each thread reads the file written to the file starting position and the starting position (two positions are the same) are not the same Two locations is t

  • 2D/3D图形引擎库 SoftPixel Engine 2011-09-14

    SoftPixel Engine 网站 : SoftPixel Engine是一个跨平台的C++ 2D/3D图形引擎库.该引擎的一个特性是使用不同的渲染引擎(OpenGL或Direct3D9,GLSL或HLSL)以一种非常易用的方式支持现代化的图形效果. 授权协议: 未知 开发语言: C/C++ 操作系统: 跨平台

  • Mouse 2D, 3D, 4D, and the interface is what does that mean? 2011-08-24

    2D, is the only left-right. 3D mouse that is Microsoft IntelliMouse (Microsoft IntelliMouse), except that the mouse has two basic keys, there is a wheel and wheel button. 4D mouse that has a horizontal and vertical directions of the pulley, and a sid

  • Select Apache web server with Tomcat's division of labor 2010-12-17

    A reality as the Web site uses an Apache server, a static page requests for the site to provide services; and use the Tomcat server as a Servlet / JSP plug-in, display the dynamic web pages. Web site address:

iOS 开发

Android 开发

Python 开发



PHP 开发

Ruby 开发






Javascript 开发

.NET 开发



Copyright (C), All Rights Reserved. 版权所有 闽ICP备15018612号

processed in 0.934 (s). 10 q(s)