Пример #1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::UMarkLibrary.UMarkLibrary_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::UMarkLibrary.UMarkLibrary_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {
            case 0:   //  UMarkLibrary.MarkdownTextBlock
                userType           = new global::UMarkLibrary.UMarkLibrary_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_0_MarkdownTextBlock;
                userType.AddMemberName("MarkdownText");
                userType.AddMemberName("SelectionHighlightColor");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::UMarkLibrary.UMarkLibrary_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  String
                xamlType = new global::UMarkLibrary.UMarkLibrary_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 3:   //  Windows.UI.Xaml.Media.SolidColorBrush
                xamlType = new global::UMarkLibrary.UMarkLibrary_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 4:   //  UMarkLibrary.MarkdownEditBox
                userType           = new global::UMarkLibrary.UMarkLibrary_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_4_MarkdownEditBox;
                userType.AddMemberName("MarkdownText");
                userType.AddMemberName("SelectionHighlightColor");
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }
Пример #2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::UMarkLibrary.UMarkLibrary_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::UMarkLibrary.UMarkLibrary_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {
            case 0:   //  UMarkLibrary.MarkdownEditBox
                userType           = new global::UMarkLibrary.UMarkLibrary_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_0_MarkdownEditBox;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::UMarkLibrary.UMarkLibrary_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return(xamlType);
        }