Пример #1
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);
        }