{
get
{
- string temp;
+ int temp;
if (GetProperty(View.Property.LAYOUT_DIRECTION).Get(out temp) == false)
{
NUILog.Error("LAYOUT_DIRECTION get error!");
}
- switch (temp)
- {
- case "LTR":
- return ViewLayoutDirectionType.LTR;
- case "RTL":
- return ViewLayoutDirectionType.RTL;
- default:
- return ViewLayoutDirectionType.LTR;
- }
+ return (ViewLayoutDirectionType)temp;
}
set
{
- string valueToString = "";
- switch (value)
- {
- case ViewLayoutDirectionType.LTR:
- {
- valueToString = "LTR";
- break;
- }
- case ViewLayoutDirectionType.RTL:
- {
- valueToString = "RTL";
- break;
- }
- default:
- {
- valueToString = "LTR";
- break;
- }
- }
- SetProperty(View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue(valueToString));
+ SetProperty(View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)value));
}
}
}