/// <param name="visualName"> The name of visual to remove. </param>
public void RemoveVisual(string visualName)
{
- foreach (var item in _visualDictionary)
+ foreach (var item in _visualDictionary.ToList())
{
if (item.Value.Name == visualName)
{
if (_offStageEventHandler == null)
{
_offStageEventCallback = OffStage;
- this.OnStageSignal().Connect(_offStageEventCallback);
+ this.OffStageSignal().Connect(_offStageEventCallback);
}
_offStageEventHandler += value;
if (_offStageEventHandler == null && _offStageEventCallback != null)
{
- this.OnStageSignal().Disconnect(_offStageEventCallback);
+ this.OffStageSignal().Disconnect(_offStageEventCallback);
}
}
}
{
get
{
- string temp;
- GetProperty(View.Property.STATE).Get(out temp);
- return temp;
+ int temp = 0;\r
+ GetProperty(View.Property.STATE).Get(ref temp);\r
+ switch (temp)\r
+ {\r
+ case 0:\r
+ {\r
+ return "NORMAL";\r
+ }\r
+ case 1:\r
+ {\r
+ return "FOCUSED";\r
+ }\r
+ case 2:\r
+ {\r
+ return "DISABLED";\r
+ }\r
+ default:\r
+ {\r
+ return "";\r
+ }\r
+ }\r
}
set
{