Microsoft.Activities.Presentation.Xaml.WorkflowDesignerXamlSchemaContext.GetCustomMefType(System.Type)

Here are the examples of the csharp api class Microsoft.Activities.Presentation.Xaml.WorkflowDesignerXamlSchemaContext.GetCustomMefType(System.Type) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: referencesource
Source File: WorkflowDesignerXamlSchemaContext.cs
XamlType GetCustomType(Type type)
        {
            if (type == typeof(DesignerAttribute))
            {
                return new AttributeXamlType<DesignerAttribute, DesignerAttributeInfo>(this);
            }
            if (type == typeof(EditorAttribute))
            {
                return new AttributeXamlType<EditorAttribute, EditorAttributeInfo>(this);
            }
            if (type == typeof(DefaultValueAttribute))
            {
                return new AttributeXamlType<DefaultValueAttribute, DefaultValueAttributeInfo>(this);
            }
            if (type.Namespace == "System.ComponentModel.Composition")
            {
                return GetCustomMefType(type);
            }
#if ERROR_TOLERANT_SUPPORT
            if (ErrorTolerantObjectWriter.IsErrorActivity(type))
            {
                return new ShimAsPublicXamlType(type, this);
            }
#endif
            return null;
        }