Skip to content

Instantly share code, notes, and snippets.

@jacksonh
Created July 26, 2009 18:23
Show Gist options
  • Save jacksonh/155876 to your computer and use it in GitHub Desktop.
Save jacksonh/155876 to your computer and use it in GitHub Desktop.
Index: class/System.Windows/Mono/Value.cs
===================================================================
--- class/System.Windows/Mono/Value.cs (revision 138659)
+++ class/System.Windows/Mono/Value.cs (working copy)
@@ -385,17 +385,17 @@
if (v is IEasingFunction && !(v is EasingFunctionBase))
v = new EasingFunctionWrapper (v as IEasingFunction);
- if (v is DependencyObject) {
- DependencyObject dov = (DependencyObject) v;
+ if (v is INativeDependencyObjectWrapper) {
+ INativeDependencyObjectWrapper dov = (INativeDependencyObjectWrapper) v;
- if (dov.native == IntPtr.Zero)
+ if (dov.NativeHandle == IntPtr.Zero)
throw new Exception (String.Format (
"Object {0} has not set its native property", dov.GetType()));
- NativeMethods.event_object_ref (dov.native);
+ NativeMethods.event_object_ref (dov.NativeHandle);
value.k = dov.GetKind ();
- value.u.p = dov.native;
+ value.u.p = dov.NativeHandle;
} else if (v is DependencyProperty) {
value.k = Kind.DEPENDENCYPROPERTY;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment