예제 #1
0
 internal PropertyBinding(
     string bindingName,
     PropertySetValueType actualType,
     PropertySetValueType exposedType,
     object defaultValue)
 {
     Name         = bindingName;
     ActualType   = actualType;
     ExposedType  = exposedType;
     DefaultValue = defaultValue;
 }
예제 #2
0
 public PropertyBinding(
     string bindingName,
     string displayName,
     PropertySetValueType actualType,
     PropertySetValueType exposedType,
     object defaultValue)
 {
     BindingName  = bindingName;
     DisplayName  = displayName;
     ActualType   = actualType;
     ExposedType  = exposedType;
     DefaultValue = defaultValue;
 }
예제 #3
0
        public string PropertySetValueType(PropertySetValueType type, bool isNamespaceQualified)
        {
            switch (type)
            {
            case WinCompData.MetaData.PropertySetValueType.Color:
                return(isNamespaceQualified ? Namespace("Windows.UI.Colors.Color") : "Color");

            case WinCompData.MetaData.PropertySetValueType.Scalar:
                return(TypeFloat32);

            case WinCompData.MetaData.PropertySetValueType.Vector2:
                return(TypeVector2);

            case WinCompData.MetaData.PropertySetValueType.Vector3:
                return(TypeVector3);

            case WinCompData.MetaData.PropertySetValueType.Vector4:
                return(TypeVector4);

            default:
                throw new InvalidOperationException();
            }
        }