/// <summary> /// Default constructor. /// </summary> public YnPanel() : base() { // Default orientation _orientation = YnOrientation.Horizontal; // Add a little padding for children _padding = 5; // A panel is not animated on mouse / touch over nor click / tap _animated = false; }
/// <summary> /// Constructor with an orientation. /// </summary> /// <param name="orientation">The panel orientation</param> public YnPanel(YnOrientation orientation) : this() { _orientation = orientation; }