Getting the size of a control
WPF
2
Posts
2
Posters
0
Views
1
Watching
-
Hello, Whenever I try getting the size of a custom control (inside the code), both ActualWidth/Height and DesiredSize returns either Size(0, 0) or Size(Width, Double.NaN) or Size(Width, Double.PositiveInfinity). Same with Height/Width. Any suggestions? Thanks, Theo
-
Hello, Whenever I try getting the size of a custom control (inside the code), both ActualWidth/Height and DesiredSize returns either Size(0, 0) or Size(Width, Double.NaN) or Size(Width, Double.PositiveInfinity). Same with Height/Width. Any suggestions? Thanks, Theo
Hi Theo, Are you trying to get the size of the control from inside the control. I mean inside control's
ArrangeOverride
or do you want to get the control's size in application level?