开发者

edit textblock's maxheight when it's embedded within a datatemplate

how do i pass in a 2nd parameter to a Silverlight application (Application_Startup()), edit a textblock's attribute 'MaxH开发者_如何转开发eight' (textblock is embedded within a datatemplate)? Users set the maxheight via the Silverlight control's properties.


you can pass multiple parameters by using Silverlight's initparams. you have to use a comma as delimiter

<param name="initParams" value="favColor=Blue,callbackUrl=http://abc.def.com/mycallback.svc"/>

Thorsten


Assuming that your MaxHeight value is available on the web page (in HTML or Javascript) there are many ways to interact with the HTML / DOM from Silverlight plugin... you could use the ScriptObjects... http://pietschsoft.com/post/2008/06/Silverlight-and-JavaScript-Interop-Basics.aspx.

Is this what you are looking for?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜