- Declarative UI
- Intelligent Layout
- Scalable Graphics
- Templates
WPF makes it very easy to create reusable elements for your user interfaces. - Binding
- Styling
- Triggers
Both templates and styles in WPF support the notion of triggers - Animation
The animation framework in WPF is very impressive - 3D
Finally, WPF allows for some basic 3D modeling and animation.
CLR版本,C#版本,VB.net版本, .Net Framework版本之间是独立的。
You’ll also hear about the Base Class Library (BCL) and the Framework
(FCL). The BCL is a set of classes available to any language in the .NET
These classes mostly live in the System namespace. The FCL is a term t
both the BCL and the common libraries in the Microsoft namespace.
Tools for WPF
- Visual Studio 2008
- Visual Studio 2005, you need to install the WPF extensions for Visual Studio
- You can also use SharpDevelop (also known as #develop). It is an open-source IDE
for .NET, and it has support for building WPF applications in .NET 3.0. - The second primary tool for creating WPF applications from Microsoft is Expression
Blend. Blend targets designers rather than developers. Blend is somewhat comparable
to the IDE for Adobe Flash. - A third-party product exists for designing WPF interfaces—Aurora, by Mobiform Software. It provides a similar set of features as Expression Blend
- Expression Design is another Microsoft product. It is for authoring vector-based
graphical content, similar to Adobe Illustrator or Inkscape. - Many other applications for producing 2D and 3D art now have plug-ins available
for exporting assets in XAML - Aside from the 3D tools just mentioned, at least one WPF-specific 3D content editor
is available—ZAM 3D by Electric Rain. ZAM 3D is very similar to the Swift 3D prod-
uct for Flash
Always keep in mind that
the runtime for Silverlight is different from the CLR.
WPF is part of the .NET Framework, and it is intended for building graphical
user interfaces for desktop applications. Silverlight targets Rich Internet
Applications that are hosted in a web browser. Silverlight’s runtime is different
from the standard .NET runtime. Both Silverlight and WPF use XAML for
defining interfaces.
WPF developers should be at least somewhat familiar with Microsoft’s
Expression Blend.
HOUR 2
Understanding XAML
As a general rule, an element in XAML is an instance of an object and attributes are
properties on that object.
In those cases we can use property element syntax. Property element syntax
is an alternative syntax used for providing values for complex types.
The child element is referred to as a property element. Property elements take the
form of
Markup extensions are indentified by the presence of curly brackets ({})
{ExtensionName Param1=Value1, Param2=Value2, Param3=Value3}
Partial Classes
The concept of partial classes was introduced with .NET 2.0. The essential idea is
that a single class can be defined across multiple files.