Xamarin.Forms.Core 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.View Xamarin.Forms.Layout Xamarin.Forms.IViewContainer<T> Xamarin.Forms.ContentProperty("Children") The subclass of the layout contains. A base implementation of a layout with undefined behavior and multiple children. s contain that are of the type T with which the was specified. This T must be of type . Since s are subclasses of , this means that layouts may be nested, contain scrolling regions, etc. The following image shows the relationship between , , , and important subtypes. The following example shows adding and removing elements from a layout. layout, IEnumerable newItems) { layout.Children.Clear (); foreach (var item in newItems) { layout.Children.Add (item); } } ]]> Constructor 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 Provides the base initialization for objects derived from the Layout<T> class. Property 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Collections.Generic.IList<T> Gets an IList<View> of child element of the Layout. A IList<View>. The default is an empty list. The Children collection of a Layout contains all the children added throught the public add/remove interface. Internal children will not be exposed through this collection. The following shows the creation of a layout, setting a property, and adding the children in the object initializer. Method 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Void The view which was added. Invoked when a child is added to the layout. Implement this method to add class handling for this event. This method is different from in that it provides a typed child consistent with the type of the Layout<T>. Method 1.5.0.0 2.0.0.0 System.Void The child that was added. Application developers can override this method to respond when a child is added. Application developers who override this method must call base.OnChildAdded before performing any other actions in their override. Method 1.5.0.0 2.0.0.0 System.Void The child that was removed. Application developers can override this method to respond when a child is removed. Application developers who override this method must call base.OnChildRemoved before performing any other actions in their override. Method 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Void The view which was removed. Invoked when a child is removed from the layout. Implement this method to add class handling for this event. This method is different from in that it provides a typed child consistent with the type of the Layout<T>.