/// <summary> /// Going one layer deeper into UI layout. /// All child element will be placed in horizontal order till calling of the EndGroup element. /// </summary> /// <param name="layer">Curent layer. Refernece eill be changed to the new layer after performing.</param> /// <param name="args">Not using into that elelment.</param> public void OnLayout(ref LayoutLayer layer, params object[] args) { // Create grid. IAddChild root = new Grid(); // Set new layer. layer = layer.GoDeeper(root); _Layer = layer; }
/// <summary> /// Going one layer deeper into UI layout. /// All child element will be placed in vertical order till calling of the EndGroup element. /// </summary> /// <param name="layer">Curent layer. Refernece eill be changed to the new layer after performing.</param> /// <param name="args">Not using into that elelment.</param> public void OnLayout(ref LayoutLayer layer, params object[] args) { // Creating stack panel. IAddChild root = new StackPanel() { Orientation = Orientation.Vertical }; // Set new layer. layer = layer.GoDeeper(root); _Layer = layer; }