yangtjh 2009-05-23
代码如下:
<div style="width: 662px;height: 622px" id="SilverlightControlHost" > <script type="text/javascript"><!-- createsL( 'workflow.xaml' ); // --></script> </div>
代码如下:
function createSL(xamlpage) { Silverlight.createObjectEx({ source: xamlpage, parentElement: document.getElementById("SilverlightControlHost"), id: "SilverlightControl", properties: { width: "100%", height: "100%", version: "1.1", enableHtmlAccess: "true" }, events: { onLoad:OnLoaded } }); // Give the keyboard focus to the Silverlight control by default document.body.onload = function() { var silverlightControl = document.getElementById('SilverlightControl'); if (silverlightControl) silverlightControl.focus(); } }
代码如下:
public partial class workflow : Canvas { public workflow() { WebApplication.Current.RegisterScriptableObject("wpfe", this); } ...... [Scriptable] public event EventHandler workflowFunc; }
代码如下:
function OnLoaded(sender,args) { sender.Content.wpfe.workflowFunc = onWorkflow; }
结束数据方法的参数,该如何定义?-- 集合为自定义实体类中的结合属性,有几个实体类,改变下标就行了。<input id="add" type="button" value="新增visitor&quo
本文实例讲述了php+ ajax 实现的写入数据库操作。分享给大家供大家参考,具体如下:。<input class="tel" type="text" placeholder="请输入您的手机号码&q