/// <summary>
 /// Set elements sizes.
 /// </summary>
 protected void SetSizes()
 {
     for (int i = 0; i < Elements.Count; i++)
     {
         Layout.SetElementSize(Elements[i]);
     }
 }
 /// <summary>
 /// Set elements sizes.
 /// </summary>
 protected void SetSizes()
 {
     for (int i = 0; i < ElementsGroup.Count; i++)
     {
         var block = ElementsGroup[i];
         for (int j = 0; j < block.Count; j++)
         {
             Layout.SetElementSize(block[j]);
         }
     }
 }