Exemplo n.º 1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        public static void UnregisterFunctions()
        {
            _registerEnumType             = null;
            _fillExtendType               = null;
            _instantiateExtend            = null;
            _launchPropertyChangedEvent   = null;
            _launchCollectionChangedEvent = null;
            _getResourceKeyType           = null;
            _registerReflectionCallbacks  = null;

            DependencyObject.UnregisterFunctions();
            DependencyProperty.UnregisterFunctions();
            PropertyMetadata.UnregisterFunctions();
            UIPropertyMetadata.UnregisterFunctions();
            FrameworkPropertyMetadata.UnregisterFunctions();
        }
Exemplo n.º 2
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        public static void RegisterFunctions(Library lib)
        {
            _registerEnumType             = lib.Find <RegisterEnumTypeDelegate>("Noesis_RegisterEnumType");
            _fillExtendType               = lib.Find <FillExtendTypeDelegate>("Noesis_FillExtendType");
            _instantiateExtend            = lib.Find <InstantiateExtendDelegate>("Noesis_InstantiateExtend");
            _launchPropertyChangedEvent   = lib.Find <LaunchPropertyChangedEventDelegate>("Noesis_LaunchPropertyChangedEvent");
            _launchCollectionChangedEvent = lib.Find <LaunchCollectionChangedEventDelegate>("Noesis_LaunchCollectionChangedEvent");
            _getResourceKeyType           = lib.Find <GetResourceKeyTypeDelegate>("Noesis_GetResourceKeyType");
            _registerReflectionCallbacks  = lib.Find <RegisterReflectionCallbacksDelegate>("Noesis_RegisterReflectionCallbacks");

            DependencyObject.RegisterFunctions(lib);
            DependencyProperty.RegisterFunctions(lib);
            PropertyMetadata.RegisterFunctions(lib);
            UIPropertyMetadata.RegisterFunctions(lib);
            FrameworkPropertyMetadata.RegisterFunctions(lib);
        }
Exemplo n.º 3
0
 internal static HandleRef getCPtr(UIPropertyMetadata obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }