PropertyMap _transition = new PropertyMap();
_transition.Add("target", new PropertyValue("testVisual"));
_transition.Add("property", new PropertyValue("pixelArea"));
- _transition.Add("targetValue", new PropertyValue(new Vector4(0, 0, 0, 1)));
_transition.Add("targetValue", new PropertyValue(new Vector4(0, 0, 1, 1)));
_transition.Add("animator", new PropertyValue(animator));
VisualFactory visualfactory = VisualFactory.Instance;
PropertyMap map = new PropertyMap();
map.Insert(Visual.Property.Type, new PropertyValue((int)Visual.Type.Text));
- map.Insert(Visual.Property.Type, new PropertyValue(""));
VisualBase visual = visualfactory.CreateVisual(map);
visual.Name = "test visual";
VisualFactory visualfactory = VisualFactory.Instance;
PropertyMap map = new PropertyMap();
map.Insert(Visual.Property.Type, new PropertyValue((int)Visual.Type.Text));
- map.Insert(Visual.Property.Type, new PropertyValue(""));
VisualBase visual = visualfactory.CreateVisual(map);
visual.Name = "test visual";
VisualFactory visualfactory = VisualFactory.Instance;
PropertyMap map = new PropertyMap();
map.Insert(Visual.Property.Type, new PropertyValue((int)Visual.Type.Text));
- map.Insert(Visual.Property.Type, new PropertyValue(""));
VisualBase visual = visualfactory.CreateVisual(map);
visual.Name = "test visual";
public MyCustomView(string typeName, CustomViewBehaviour behaviour) : base(typeName, behaviour)
{
- }\r
-\r
+ }
+
public override View GetNextFocusableView(View currentFocusedView, FocusDirection direction, bool loopEnabled)
{
- if (_nextFocusView == null)\r
- {\r
- _nextFocusView = new View();\r
+ if (_nextFocusView == null)
+ {
+ _nextFocusView = new View();
}
return _nextFocusView;
}
PropertyMap _transition = new PropertyMap();
_transition.Add("target", new PropertyValue("testVisual"));
_transition.Add("property", new PropertyValue("pixelArea"));
- _transition.Add("targetValue", new PropertyValue(new Vector4(0, 0, 0, 1)));
_transition.Add("targetValue", new PropertyValue(new Vector4(0, 0, 1, 1)));
_transition.Add("animator", new PropertyValue(animator));
PropertyMap _transition = new PropertyMap();
_transition.Add("target", new PropertyValue("testVisual"));
_transition.Add("property", new PropertyValue("pixelArea"));
- _transition.Add("targetValue", new PropertyValue(new Vector4(0, 0, 0, 1)));
_transition.Add("targetValue", new PropertyValue(new Vector4(0, 0, 1, 1)));
_transition.Add("animator", new PropertyValue(animator));
PropertyMap _transition = new PropertyMap();
_transition.Add("target", new PropertyValue("testVisual"));
_transition.Add("property", new PropertyValue("pixelArea"));
- _transition.Add("targetValue", new PropertyValue(new Vector4(0, 0, 0, 1)));
_transition.Add("targetValue", new PropertyValue(new Vector4(0, 0, 1, 1)));
_transition.Add("animator", new PropertyValue(animator));
PropertyMap _transition = new PropertyMap();
_transition.Add("target", new PropertyValue("testVisual"));
_transition.Add("property", new PropertyValue("pixelArea"));
- _transition.Add("targetValue", new PropertyValue(new Vector4(0, 0, 0, 1)));
_transition.Add("targetValue", new PropertyValue(new Vector4(0, 0, 1, 1)));
_transition.Add("animator", new PropertyValue(animator));
PropertyMap _transition = new PropertyMap();
_transition.Add("target", new PropertyValue("testVisual"));
_transition.Add("property", new PropertyValue("pixelArea"));
- _transition.Add("targetValue", new PropertyValue(new Vector4(0, 0, 0, 1)));
_transition.Add("targetValue", new PropertyValue(new Vector4(0, 0, 1, 1)));
_transition.Add("animator", new PropertyValue(animator));
VisualFactory visualfactory = VisualFactory.Instance;
PropertyMap map = new PropertyMap();
map.Insert(Visual.Property.Type, new PropertyValue((int)Visual.Type.Text));
- map.Insert(Visual.Property.Type, new PropertyValue(""));
VisualBase visual = visualfactory.CreateVisual(map);
var height = visual.GetHeightForWidth(0.0f);
Assert.AreEqual(0.0f, height, "The height got from GetHeightForWidth is not correct.");
VisualFactory visualfactory = VisualFactory.Instance;
PropertyMap map = new PropertyMap();
map.Insert(Visual.Property.Type, new PropertyValue((int)Visual.Type.Text));
- map.Insert(Visual.Property.Type, new PropertyValue(""));
VisualBase visual = visualfactory.CreateVisual(map);
var width = visual.GetWidthForHeight(0.0f);
Assert.AreEqual(0.0f, width, "The Width got from GetWidthForHeight is not correct.");
VisualFactory visualfactory = VisualFactory.Instance;
PropertyMap textMap1 = new PropertyMap();
textMap1.Insert(Visual.Property.Type, new PropertyValue((int)Visual.Type.Text));
- textMap1.Insert(Visual.Property.Type, new PropertyValue("Hello Goodbye"));
VisualBase textVisual1 = visualfactory.CreateVisual(textMap1);
textVisual1.DepthIndex = 1;
Assert.AreEqual(1, textVisual1.DepthIndex, "The DepthIndex got from DepthIndex is not right");