StackPanel orders its children sequentially either horizontally or vertically and give sizes and positions to their children, depending on available space. RelativePanel is intended for use in creating app layouts that can adapt to changes in screen resolution and implements a style of layout that is defined by the relationships between its child elements. The RelativePanel eases the process of rearranging elements by defining relationships between elements, which allows you to build more dynamic UI without using nested layouts.