DCSIMG
Silverlight - מקודד לשווא

Browse by Tags

All Tags » Silverlight (RSS)

ScriptObject + DynamicObject = DynamicScriptObject by danielisimo

בסילברלייט ניתן לתקשר עם הדפדפן ולקרוא למתודות ג\'אואסקריפט לדוגמה : HtmlPage.Window.Invoke(\"method\") בצורת תקשורת זו מקבלים חזרה אובייקטים מסוג ScriptObject שבכדי לתשאל אותם צריך לבצע משהו בסגנון : myScriptObjct.getMember(\"memberName\") כמובן שתשאול ישיר היה יכול להיות יותר נוח וקריא myScriptObjct.memberName בעזרת dynamic ו DynamicObject ב C# 4 ניתן לבצע תחבולה שכזו וליישם אוביקט פרוקסי דינאמי שמקל על הקידוד read more

Quick and Dirty Logging in Silverlight by danielisimo

using Firefox with Firebug or IE8 ? try QDLog easy and quick way to get logging in a manner of seconds. you can send log messages to the debug console , just add the following class to your project and your done using System.Windows.Browser; using System.Windows; namespace QDLog { public class Log { public static void Debug( object message) { HtmlPage.Window.Eval( " console.log " ); var log = (HtmlPage.Window.Eval( " console.log " ) as ScriptObject); if (log != null ) { log.InvokeSelf...
Powered by Community Server (Commercial Edition), by Telligent Systems