Considering HorizontalAlignment and VerticalAlignment while creating a custom panel
- by sudarsanyes
I am trying to create a custom panel in wpf. Here the doubts I have,
How do I consider the
HorizontalAlignment and
VerticalAlignment factors while
placing the items within my panel.
Should I check for these flags in my
ArrangeOverride method ??
Consider
that I want to write a WrapPanel
clone. If the panel's width is set to
"Auto", how do I get the actual width
of the panel to arrange my child
items. I always get the
ActualWidth/ActualHeight as 0. Am I
missing something???
Please help.