ASP.NET MVC&表达XAML - 如何整合? [英] ASP.NET MVC & Expression XAML - How do I integrate?

查看:195
本文介绍了ASP.NET MVC&表达XAML - 如何整合?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一些背景:

ASP.net MVC主要是构建和开发ASP.NET应用程序的一种范式转变。从代码背后的心态转向更多的标准MVC Ruby on Rails,如心态。我赞扬它作为一个简单的工具,用于单元测试的轻松和分离代码(尽管html内联代码可能是有争议的)。



表达式和XAML是一种描述表现层可以为设计师简单。



问题是:



如果我们要使用ASP.NET MVC开发我们的下一个网站如何使用Expression和XAML的设计团队应该如何创建(V)iews或集成到开发流程中?



更具体来说表达式用户仍然在ASP.NET MVC世界中运行?



请注意,Expression的模型中的页面也使用范例代码。

解决方案

这是一个黑客,但您可以使用XAML在ASP.NET MVC中呈现静态图像。查看我的帖子XAML会议ASP.NET MVC - Serverside图像呈现 - 显示如何在XHTML和WPF控件中渲染为ASP.NET MVC中的图像



http://amazedsaint.blogspot.com/2010/07 /xaml-meets-aspnet-mvc-create-databound.html



还有一个 MvcXaml项目,它是允许基于XAML视图动态生成图像的View Engine。



< a href =http://mvcxaml.codeplex.com =nofollow noreferrer> http://mvcxaml.codeplex.com


Some Background:
ASP.net MVC is primarly a paradigm shift in the way you structure and develop ASP.NET applications. Shifting from a "code behind" type of mentality to more of a standard MVC Ruby on Rails like mentality. I applaud it's efforts as a simlifying tool towards unit testing ease and seperation of code (although the html inline code could be debatable).

Expression and XAML is a way to describe the presentation layer that can be simple for designers.

The question is:

If we are to use ASP.NET MVC in developing our next website how does the design team that uses Expression and XAML supposed to create (V)iews or integrate into the development flow?

More specifically can Expression users still operate in an ASP.NET MVC world?

Note that the pages in Expression's model use a code behind paradigm as well.

解决方案

It is a hack, but you can use XAML to render static images in ASP.NET MVC. Check out my post XAML Meets ASP.NET MVC - Serverside Image Rendering - that shows how to render XAML and WPF controls as an image in ASP.NET MVC

http://amazedsaint.blogspot.com/2010/07/xaml-meets-aspnet-mvc-create-databound.html

There is also the MvcXaml project that is a View Engine that allows for images to be dynamically generated based on a XAML view.

http://mvcxaml.codeplex.com

这篇关于ASP.NET MVC&amp;表达XAML - 如何整合?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆