What XAMLtoMVC is for

XAMLtoMVC was created to ease tasks in web development when you have something to display that is impossible (or nearly impossible) with html. And especially with images you want to use, but you realize you can't because they are too static to reflect even the smallest changes.
The solution is based on MVC actions and Html helper methods creating images ondemand.

Let’s see some example problems and the extension methods that cure the pain.

Problems that can be solved with XAMLtoMVC

Problem 1. Your web page is designed with glossy buttons that have custom typefaces.

tacepaosamples.png
Html.Tacepao(..) solves it.

Problem 2. You'd like to display user-uploaded images on your webpage in a polaroid-like frame with a soft shadow and a watermark on it.

xamltopngsamples.png
Html.SqlImage(…) solves it.

Problem 3. You'd like user avatars to look like the Vista logon picture, but also include your user's rank and an online status bar.

avatar.png
Html.XamlToPng(…) solves it.

Actually the last extension can solve all three problems alone, but it requires you to know and be able to create your own XAML while the first two extensions do not.

How to reach the medicine

 
xamltomvcnuget.png You can install it into your MVC project with NuGet. Just select the project node in VisualStudio and in its context menu click the "Add Package Library Reference…" The package id is XAMLtoMVC.
After it is installed you should find a XAMLtoMVCDoc.html in your project’s Content/XAMLtoMVC folder. That’s your quickstart. You can check this document’s extended online version on the Documentation tab of this page.

Last edited Feb 27, 2011 at 11:40 PM by Tocsi, version 19