Wednesday, June 10, 2009

Text-Features of WPF

  • WPF includes a number of typographic and text rendering features that were not available in GDI. This is the first Windows programming interface to expose OpenType features to software developers, supporting OpenType, TrueType, and OpenType CFF (Compact Font Format) fonts.
  • Support for OpenType typographic features includes:
  • Ligatures Old-style numerals (for example, parts of the glyph hang below the text baseline)
  • Swash variants Fractions
  • Superscript and Subscript
  • Small caps
  • Line-level justification
  • Ruby characters
  • Glyph substitution
  • Multiple baselines
  • Contextual and Stylistic Alternates
  • Kerning

WPF handles texts in Unicode, and handles texts independent of global settings, such as system locale. In addition, fallback mechanisms are provided to allow writing direction (horizontal versus vertical) handled independent of font name; building international fonts from composite fonts, using a group of single-language fonts; composite fonts embedding.

Tuesday, June 9, 2009

Documents-Features Of WPF

  • WPF natively supports paginated documents. It provides the DocumentReader class, which is for reading fixed layout documents. The FlowDocumentReader class offers different view modes such as per-page or scrollable and also reflows text if the viewing area is re sized.
  • Natively supports XML Page Specification documents.
  • Supports reading and writing paginated documents using Open Packaging Convention.

Effects-Features Of WPF

  • WPF provides for BitmapEffects, which are raster effects applied to a Visual. These raster effects are written unmanaged code and therefore force rendering of the Visual to be performed on the CPU and not hardware accelerated.
  • In .NET Framework 3.5 SP1, one of the new additions was the Effect class, which is a Pixel-Shader 2.0 effect that can be applied to a visual, which allows all rendering to remain on the GPU .

Imaging-Feature Of WPF

  • WPF can natively access Windows Imaging Component(WIC) code and APIs allowing developers to write image codecs for their specific image file formats.

Annotations-Features of WPF

  • Annotations can be applied on a per-object basis, for objects in a Document or FlowDocument.
  • WPF only provides the capability for creating, storing and managing annotations; each application must expose the UI on their own.

Data binding-Features of WPF

  • WPF has a built-in set of data services to enable application developers to bind and manipulate data within applications.
  • There exists support for three types of data binding:
  • one time: where the client ignores updates on the server.
  • one way: where the client has read-only access to data.
  • two way: where client can read from and write data to the server.
  • A set of built-in controls is provided as part of WPF, containing items such as button, menu, grids and list box.
  • A powerful concept in the WPF is the logical separation of a control from its appearance.
  • A control's template can be overridden to completely change its visual appearance.
    and a control can contain any other control or layout, allowing for unprecedented control over composition.
  • Features retained mode graphics, so that applications do not have to be bothered with repainting the display.

Animations-Feature of Silverlight

  • Time-based animation. Scene redraws are time triggered.
  • Presentation timers are initialized and managed by WPF.
  • Scene changes co-ordinated by using a Storyboard.
  • Animations can be triggered by other external events, including user action.
  • Animation effects can be defined on a per-object basis, which can be accessed directly from XAML markup.
  • Ships with a set of predefined effects, such as fade out for all controls.