ASP.NET + Windows Presentation Foundation = WebXaml
WebXaml is a framework allowing you to use Windows Presentation Foundation into ASP.NET.
WebXaml aim to create images in different formats using XAML so you can exploit the WPF power, easier than GDI+, for elaborated images such as 3D, charts and so on.
WebXaml library contains:
- A Dispatcher pool (default 10 threads), one for Window. Each thread satisfies one request in the ASP.NET context;
- A build provider compiling .wxaml files and code file (if needed), and transforming XAML code into BAML persisted into assembly resources;
- An HTTP Handler factory (XamlPageHandlerFactory) to give the appropriate IHttpHandler for any path;
- An async HTTP Handler that inherits by XamlPage to process the request.
To use it you have to create a .wxaml file containing a new directive followed by XAML code:
1
2
3
|
<%@ XamlPage ImageType="Png" Width="700" Height="600" %>
<!-- Xaml code --> |
If you call the path using a browser you will receive an image as answer like this:

Documentation and samples here.
[WebXaml comes courtesy of Cristian "Ricciolo" Civera]
Featured Item
Control Info
Posted:
05-10-2007
Views:
7,224
Downloads:
17,453
Download