WPF/E ASP.NET Server Control

Mike Harsh's Blog上发表了WPF/E ASP.NET Server Control

WPF/E ASP.NET Server Control

Last week, a group of ASPInsiders were on campus and I presented a session on WPF/E.  For this session, I updated the simple ASP.NET server control we showed at Mix '06 this year.  This control makes it easier to integrate WPF/E into ASP.NET pages.  The control has a smart tag which exposes the most common properties.  The control project can be found here and a sample web project that uses this control is here (just open default.aspx in the designer).



WPF/E ASP.NET Control API:

  • BackgroundColor - The string representing the background color of the WPF/E plug-in.  Any string representation of a Color that is valid in XAML is valid here.

  • ErrorHandler - The string name of a javascript method that handles the WPF/E plug-in's error event.

  • HostFilePath - The string path to the agHost.js file used by the control.  By default the control will point to an agHost.js file on Channel9.

  • MaxFramerate - The maximum framerate the WPF/E plug-in will attempt to render the content.  This defaults to 30.

  • Source - The string path of the XAML file used by the WPF/E plug-in.

  • ScriptSource - The string path of a javascript file with event handlers for the XAML.

  • UseChannel9HostFile - A bool to determine if the control references the agHost.js from Channel9.  This defaults to true.  If it is false, the HostFilePath property will be used to find an agHost.js file.

  • WindowlessMode - A bool to determine whether the WPF/E plug-in runs in windowless mode.  Defaults to false.


转载于:https://www.cnblogs.com/neuhawk/archive/2006/12/12/589510.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值