Don't Canvas's
shrink to the smallest size possible, yet still display fully their own children? Might this be causing the ActualHeight
and ActualWidth
values to be zero. Try adding say, a TextBlock
and reading the values then.
I believe that this is explained better on this other post: Why are ActualWidth and ActualHeight 0.0 in this case?