The following is a very basic layout for a Windows Phone 8 app. I’ve got a PivotControl with a PivotItem. The header of the PivotControl is outlined in red, while the PivotItem is outlined in green. I’m going to have a Canvas taking up 100% of the PivotItem so I need to be able to calculate it’s dimensions accordingly (because that height/width will determine the size and placement of other controls).
So right now I can calculate the width of my PivotItem with this, where margin is the amount of margin on all four sides (multiplied by 2 for the left and right):
double width = Application.Current.Host.Content.ActualWidth - (margin * 2);
The height is more difficult because I need to take the total screen height and subtract the StatusBar height, and the header height (red rectangle in my image).
Does anyone know how I can get the height of my PivotItem? Is there an easier way than trying to calculate it like I am? Right now the Height and ActualHeight properties are both 0.0.

If I understand correctly, you have a Canvas occupying the whole PivotItem? Something like this:
If so, retrieving the height of the canvas is quite straightforward:
Note: the
ActualHeightproperty won’t be populated before theLoadedevent. So if you’re trying to read it from the constructor or theOnNavigatedTomethod, the property will be equal to 0.The full XAML code:
And the code-behind: