Author: toshok
Date: 2007-07-19 21:10:43 -0400 (Thu, 19 Jul 2007)
New Revision: 82332
Modified:
trunk/moon/plugin/moonlight.cs
Log:
add TODO that mentions the plan (hopefully) for dealing with Scriptable XAML
objects
Modified: trunk/moon/plugin/moonlight.cs
===================================================================
--- trunk/moon/plugin/moonlight.cs 2007-07-19 22:56:17 UTC (rev 82331)
+++ trunk/moon/plugin/moonlight.cs 2007-07-20 01:10:43 UTC (rev 82332)
@@ -31,6 +31,7 @@
using System.Runtime.InteropServices;
using System.Reflection;
using System.Windows;
+using System.Windows.Browser;
using System.Windows.Media;
using System.Windows.Controls;
using System.Collections;
@@ -355,6 +356,10 @@
return IntPtr.Zero;
}
+ if (res.GetType().GetCustomAttributes (typeof
(ScriptableAttribute), false).Length != 0) {
+ Console.WriteLine ("TODO: we need to register
scriptable DependencyObjects using WebApplication.RegisterScriptableObject
('x:Name attribute', instance).");
+ }
+
MethodInfo m = typeof (Canvas).Assembly.GetType
("Mono.Hosting").GetMethod ("GetNativeObject",
BindingFlags.Static |
BindingFlags.NonPublic);
IntPtr ptr = (IntPtr) m.Invoke (null, new object [] {
res });
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches