[assembly: XmlnsDefinition("http://schemas.microsoft.com/winfx/2009/xaml", "Tizen.NUI.Xaml")]
[assembly: XmlnsDefinition("http://schemas.microsoft.com/winfx/2009/xaml", "System", AssemblyName = "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
[assembly: XmlnsDefinition("http://schemas.microsoft.com/winfx/2009/xaml", "System", AssemblyName = "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
+
+[assembly: XmlnsDefinition("http://schemas.microsoft.com/winfx/2009/xaml", "System.Collections.Generic", AssemblyName = "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
\ No newline at end of file
getStaticInstanceOp = new GetValueListAction('}', this);
return getStaticInstanceOp;
+ case '`':
+ getTypeObjectIndexOp = new GetValueListAction(c, this);
+ return getTypeObjectIndexOp;
+
default:
getTypeIndexOp = new GetValueAction(c, this);
return getTypeIndexOp;
getParamListOp = null;
}
}
+ else if (null != getTypeObjectIndexOp)
+ {
+ int typeIndex = (int)(getTypeObjectIndexOp.ValueList[0]);
+ globalDataList.Operations.Add(new GatherTypeObject(globalDataList, typeIndex));
+ }
getTypeIndexOp = null;
+ getTypeObjectIndexOp = null;
}
private GetValueAction getTypeIndexOp;
private GetValueListAction getXFactoryMethodIndexOp;
private GetValueListAction getParamListOp;
private GetValueListAction getStaticInstanceOp;
+ private GetValueListAction getTypeObjectIndexOp;
}
}
--- /dev/null
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Tizen.NUI.EXaml
+{
+ internal class GatherTypeObject : Operation
+ {
+ public GatherTypeObject(GlobalDataList globalDataList, int typeIndex)
+ {
+ this.typeIndex = typeIndex;
+ this.globalDataList = globalDataList;
+ }
+
+ public void Do()
+ {
+ var type = globalDataList.GatheredTypes[typeIndex];
+
+ if (null != type)
+ {
+ globalDataList.GatheredInstances.Add(type);
+ }
+ }
+
+ private int typeIndex;
+ private GlobalDataList globalDataList;
+ }
+}
[EditorBrowsable(EditorBrowsableState.Never)]
public BindableProperty Property { get; set; }
+ private bool isOriginalValue = false;
+ private object value;
/// <since_tizen> 6 </since_tizen>
/// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public object Value { get; set; }
+ public object Value
+ {
+ get
+ {
+ return value;
+ }
+ set
+ {
+ this.value = value;
+ isOriginalValue = true;
+ }
+ }
object IValueProvider.ProvideValue(IServiceProvider serviceProvider)
{
target.SetDynamicResource(Property, dynamicResource.Key, fromStyle);
else
{
+ if (true == isOriginalValue && null != Property)
+ {
+ var tempValue = Value;
+ if (Property.TryConvert(ref tempValue))
+ {
+ Value = tempValue;
+ }
+
+ isOriginalValue = false;
+ }
+
target.SetValue(Property, Value, fromStyle);
}
}
}
}
- internal class SealedList<T> : IList<T>
+ internal class SealedList<T> : IList<T>, IList
{
readonly IList<T> _actual;
}
}
+ public bool IsFixedSize => throw new NotImplementedException();
+
+ public bool IsSynchronized => throw new NotImplementedException();
+
+ public object SyncRoot => throw new NotImplementedException();
+
+ object IList.this[int index] { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
+
public bool Remove(T item)
{
if (IsReadOnly)
throw new InvalidOperationException("This list is ReadOnly");
_actual.RemoveAt(index);
}
+
+ public int Add(object value)
+ {
+ Add((T)value);
+ return _actual.Count;
+ }
+
+ public bool Contains(object value)
+ {
+ return Contains((T)value);
+ }
+
+ public int IndexOf(object value)
+ {
+ return IndexOf((T)value);
+ }
+
+ public void Insert(int index, object value)
+ {
+ Insert(index, (T)value);
+ }
+
+ public void Remove(object value)
+ {
+ Remove((T)value);
+ }
+
+ public void CopyTo(Array array, int index)
+ {
+ CopyTo((T[])array, index);
+ }
}
}
}