adspace
Difference between StackPanel and RelativePanel ?
Answer Posted / Sujata Gupta
In C#, both StackPanel and RelativePanel are used for layout purposes in WPF. However, they differ in their arrangement of child controls.nStackPanel arranges its children one above the other (vertical) or side by side (horizontal) with equal space between them as per the Orientation property. On the other hand, RelativePanel positions children relative to each other using attached properties.nRelativePanel is more flexible and allows for complex layouts where controls can be placed based on their relationship with other controls.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers