PropertyMap map = new PropertyMap();
map.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Color));
- map.Add("Color", new PropertyValue(new Color(0.0f, 0.0f, 0.0f, 1.0f)));
+ map.Add(ColorVisualProperty.MixColor, new PropertyValue(new Color(0.0f, 0.0f, 0.0f, 1.0f)));
imageView.ImageMap = map;
propertyMap.Find(Visual.Property.Type).Get(out type);
Assert.AreEqual((int)Visual.Type.Color, type, "The type is not correct here.");
Color color = new Color();
- (propertyMap.Find(1, "Color")).Get(color);
+
+ (propertyMap.Find(ColorVisualProperty.MixColor)).Get(color);
+
Assert.AreEqual(0.0f, color.R, "The R property of color is not correct here.");
Assert.AreEqual(0.0f, color.G, "The G property of color is not correct here.");
Assert.AreEqual(0.0f, color.B, "The B property of color is not correct here.");
PropertyMap map = new PropertyMap();
map.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Color));
- map.Add("Color", new PropertyValue(new Color(0.0f, 0.0f, 0.0f, 1.0f)));
+ map.Add(ColorVisualProperty.MixColor, new PropertyValue(new Color(0.0f, 0.0f, 0.0f, 1.0f)));
imageView.Image = map;
propertyMap.Find(Visual.Property.Type).Get(out type);
Assert.AreEqual((int)Visual.Type.Color, type, "The type is not correct here.");
Color color = new Color();
- (propertyMap.Find(1, "Color")).Get(color);
+ (propertyMap.Find(ColorVisualProperty.MixColor)).Get(color);
Assert.AreEqual(0.0f, color.R, "The R property of color is not correct here.");
Assert.AreEqual(0.0f, color.G, "The G property of color is not correct here.");
Assert.AreEqual(0.0f, color.B, "The B property of color is not correct here.");