XML-based user interface marker language - xul and xaml (2)

xiaoxiao2021-03-06  149

4.xaml Brief Reproduction Microsoft's XAML is a new member who enters XML-GUI competition, because Microsoft's strong publicity of its own product technology, still has caused numerous attention and comments. Since Microsoft's Longhorn will be released until 2006, XAML may change during this period. XAML uses Microsoft's new vector graphics (Vector-based Drawing Library Avalon) through XML syntax. For Mac programmers, Avalon and Apple's Quartz (PDF and OpenGL) are very similar, and for Linux programmers, this XML VECTORS will feel from KDE and GNOME desktop environment. It can therefore be said that XAML does not have any new or unique technologies. Compared with new things, the original XAML file can be browsed through the LONGHORN version of IE, this and XUL can be viewed by Mozilla browser browsing. XAML is used to create canvas (canvastes, an entity used to display images, text, and widgets), Widgets, such as a Button or Menu, and Shapes, such elements, these elements, etc. The initial appearance is defined by their attributes (just like XUL and SVG), or uses an XAML unique 'style' element (Element). Elements The behavior can be defined using any .NET compatible language (currently supporting C #, VisualBasic.net or JScript.net), there are two ways to bind behavior and interface elements, one is definition (code) of behavior (code) In addition to the CDATA paragraphs in the XAML file, the other is to access the Widget by a tree structure similar to the W3C. The following example is a XAML file content, which contains a C # code, which can see the code is

In the label, and by

Enclosed, such a parser can ignore the code segment when parsing the XAML file.

转载请注明原文地址:https://www.9cbs.com/read-127608.html

New Post(0)