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


Please Help Members By Posting Answers For Below Questions

Which namespaces are necessary to create a localized application?

1151


What is expression tree in c#?

1007


Why can't we use a static class instead of singleton?

963


How to assign Null value to Var?

1073


What is an abstract class c#?

978


How do you inherit a class into other class in c#?

1001