Considering HorizontalAlignment and VerticalAlignment while creating a custom panel
Posted
by
sudarsanyes
on Stack Overflow
See other posts from Stack Overflow
or by sudarsanyes
Published on 2011-01-17T06:47:09Z
Indexed on
2011/01/17
6:53 UTC
Read the original article
Hit count: 210
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.
© Stack Overflow or respective owner