Ejemplo n.º 1
0
        public Surface(IntPtr native, bool dropref)
        {
            this.Native = native;

            strongRefs = new Dictionary <IntPtr, object> ();

            NativeDependencyObjectHelper.SetManagedPeerCallbacks(this);

            if (dropref)
            {
                NativeMethods.event_object_unref(native);
            }
        }