return position + 1;
}
break;
+ default:
+ break;
}
}
else
return position + 1;
}
break;
+ default:
+ break;
}
}
targetSibling = IsHorizontal ? targetSibling : currentFocusedView.SiblingOrder + 1;
break;
}
+ default:
+ break;
}
if (targetSibling > -1 && targetSibling < Container.Children.Count)
targetSibling = IsHorizontal? targetSibling : currentFocusedView.SiblingOrder + 1;
break;
}
+ default:
+ break;
}
if (targetSibling > -1 && targetSibling < Container.Children.Count)
targetSibling = isHorizontal ? currentFocusedView.SiblingOrder + Columns : currentFocusedView.SiblingOrder + 1;
break;
}
+ default:
+ break;
}
if (targetSibling > -1 && targetSibling < Container.Children.Count)
targetSibling = isHorizontal ? targetSibling : currentFocusedView.SiblingOrder + 1;
break;
}
+ default:
+ break;
}
if (targetSibling > -1 && targetSibling < Container.Children.Count)
nextFocusedView = DownFocusableView;
break;
}
+ default:
+ break;
}
if (nextFocusedView)
object sourceObject;
if (_weakSource != null && _weakSource.TryGetTarget(out sourceObject))
{
- for (var i = 0; i < _parts.Count - 1; i++)
+ if (_parts.Count > 1)
{
- BindingExpressionPart part = _parts[i];
-
- if (!part.IsSelf)
+ for (var i = 0; i < _parts.Count - 1; i++)
{
- part.TryGetValue(sourceObject, out sourceObject);
- }
+ BindingExpressionPart part = _parts[i];
+
+ if (!part.IsSelf)
+ {
+ part.TryGetValue(sourceObject, out sourceObject);
+ }
- part.Unsubscribe();
+ part.Unsubscribe();
+ }
}
}
{
unsafe
{
- if (textures != null)
+ if (textures != null && textures.Count > 0)
{
IntPtr unmanagedPointer = Marshal.AllocHGlobal(sizeof(IntPtr) * textures.Count);
IntPtr[] texturesArray = new IntPtr[textures.Count];
childLayout.ConditionForAnimation = TransitionCondition.LayoutChanged;
break;
}
+ default:
+ break;
}
}
/// This function expects an array of structures with the same format that was given in the construction.
/// </summary>
/// <param name="vertices">The vertex data that will be copied to the buffer.</param>
- /// <exception cref="ArgumentNullException"> Thrown when vertices is null. </exception>
+ /// <exception cref="ArgumentNullException"> Thrown when vertices is null or length of the vertices is 0. </exception>
/// <since_tizen> 8 </since_tizen>
public void SetData<VertexType>(VertexType[] vertices) where VertexType : struct
{
- if (null == vertices)
+ if (null == vertices || vertices.Length == 0)
{
throw new ArgumentNullException(nameof(vertices));
}