Esempio n. 1
0
            /// <summary>
            /// Validate position.
            /// </summary>
            /// <param name="position">Position.</param>
            /// <returns>Validated position.</returns>
            public Vector2 ValidatePosition(Vector2 position)
            {
                if (Owner.IsHorizontal())
                {
                    position.x = ValidatePosition(position.x);
                }
                else
                {
                    position.y = ValidatePosition(position.y);
                }

                return(position);
            }
Esempio n. 2
0
 /// <summary>
 /// Process ListView direction changed.
 /// </summary>
 public virtual void DirectionChanged()
 {
     if (Owner.Layout != null)
     {
         Owner.Layout.MainAxis = !Owner.IsHorizontal() ? Axis.Horizontal : Axis.Vertical;
     }
 }