The first day, wpf need to know (2)

sponsored links
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.

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


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.

High-customizability


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.
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of The first day, wpf need to know (2)

  • Beginners MVC

    MVC (Model-View-Control), in my opinion is a design idea can help us to design a structured and ordered. And I also believe that since it is an idea, it can also be used for more other areas. MVC will be able to understand its English name from the t ...

  • flash picture under the Carousel

    Carousel picture to achieve the way there are many, have a direct HTML, with the JS, as well as the FLASH. FLASH I prefer because it is better to achieve the function of packaging, only in the interface will be able to put a label <embed> to so ...

  • Of the Matz's Ruby!

    Ruby's primary focus is productivity of program development, and users will find that programming in Ruby is productive and even fun. Ruby is well suited for the problem domains such as these: Text processing -Ruby 's File, String, and Regexp ...

  • Rails Paperclip and ImageMagick

    On the Web to find the paperclip on the plug-in, found by they said, there is no set size effects, was found to need to install an image-editing software do: ImageMagick Introduce the following simple: Environment: Windows + Cygwin + Rails Person to the p

  • Of rights management and the realization of the object model

    Module title <!--== S -> <!--== S to vote polling --><!--== E article --><!-- S (which will increase only to see the effect of style, performance is basically set by the Editor Control) -- > Contents: 1. Rights Management Analysis

  • The essence of agile behind the fog

    I would like to say is that "Agile" includes the meaning of the word too much. Understanding of each person is different, in the end it means. I can describe a dog is very agile. Agile has been degraded as a symbol, but when people talk abo ...

  • Best Open Source Software List

    7-Zip 4.32 : File compression tool with Windows Explorer integration A Note 4.2.1 : Can be placed in the Windows desktop memo, alarm clock and provides alerts Abakt 0.9 : To be able to compression of the documents to back up Abiword 2.27 : Windows WordPad

  • Role-Based Access Control System Design

    Role-Based Access Control System Design (2004-7-23 17:06:00) Source: CCW Authors: Wang Jiuhui Access Control Policy are the majority of the application system must be taken into account. In this paper, role-based access control is a new access contro ...

  • 50 Practical JavaScript tools

    http://www.javaeye.com/news/5846-50-practical-javascript-tools # comments JavaScript is a powerful client-side scripting language, many modern web sites and Web applications are used to it. JavaScript can enhance the user experience and to provide a wealt

  • hibernate how to store binary, image and other major fields.

    model categories: reportByte binary type for the database fields. public class PfReportStyle implements java.io.Serializable , Cloneable { // Fields /** * */ private static final long serialVersionUID = 1L; private Long id; private byte[] reportByte; // C

blog comments powered by Disqus
Recent
Recent Entries
Tag Cloud
Random Entries