今天早晨起來的太早了,還不到7點就起來了,出去給老婆買了一包熱奶送去。老婆的胃最近總是不舒服胃脹,感覺不消化,真是讓我心疼。不知道有沒有治療胃疼的特效藥。
回來頭看了Mike Harsh 的部落格,發現一個好東西 WPF/E 的 Asp.net server control。看了她的介紹,可以方便的在 VS.net2005 裡面做開發。下面給張 Controls 貼圖:
下面是Mike Harsh 對control屬性的一些說明:
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.
他提供了control的源碼下載和一個樣本網站的下載,下面給出連結,感興趣的朋友下載看看:
控制項原始碼: http://www.simplegeek.com/mharsh/wpfewebcontrol/Cu...
樣本程式碼:http://www.simplegeek.com/mharsh/wpfewebcontrol/sm...