WPF | Sciter | |
---|---|---|
Definition | Windows Presentation Foundation (or WPF) is a graphical subsystem for rendering user interfaces in Windows-based applications by Microsoft. | Is an embeddable graphical user interface engine (dynamic or static library) by Terra Informatica Software. |
Released | 2007 as part of Windows Vista. | 2006 – h-smile core release date (HTMLayout, Sciter1, Sciter2 and Sciter3). |
OSes | Microsoft Windows | Microsoft Windows, Mac OS X, Linux/GTK. |
Technology | .NET Framework 3.0 and above. Only managed API. | Native code with native plain C API. |
Distribution | WindowsBase.dll, PresentationCore.dll, PresentationFoundation.dll (without .NET core) ~ 5 Mb | Single sciter32/64.dll ~ 4 Mb |
UI Architecture | XAML DOM tree | W3C compatible DOM tree. |
Markup language | XAML | HTML5 and SVG. |
Style language | XAML, no cascading | CSS – cascading style sheets. |
Code behind UI | .NET languages | tiscript (JavaScript alike, built-in), C, C++, Delphi |
Data Binding | XAML data binding: one-time/one-way and two way |
|
Media services | vector and raster images, audio, video | vector (SVG) and raster images, video with audio. |
Graphics | WPF rasterizer on top of DirectX. |
Platform graphics:
|
Graphic primitives | 2D graphics along with brushes, pens, geometries, and transforms. |
|
Templates | Look of an element can be defined directly, via its properties, or indirectly with a Template or Style. | Look of an element can be defined directly, via its style properties, or indirectly via style sheets. Structure of elements can be "templated" by Behavior classes (native or in script) and Aspect functions and applied to elements via CSS – properties: behavior, prototype and aspect. |
Animations | low level animation via timers and higher level abstractions of animations via the Animation classes. | CSS transform property based animations, timeline (TweenLite alike) animation engine, low level animations via Element.animate(). |
Printing | Supports paginated documents via DocumentViewer class. | <frame type="pager"> supports print preview and printing of paginated HTML documents. Supports CSS page-break-after/before/inside properties. |
Accessibility | Microsoft UI Automation | Microsoft UI Automation on Windows. |
WPF vs Sciter
Posted on