private void SetContentHeight(double height)
{
if ((null != _itemsPresenterHostPart) && !double.IsNaN(height))
{
double canvasHeight = _itemsPresenterHostPart.Height;
_heightAnimation.From = double.IsNaN(canvasHeight) ? height : canvasHeight;
_heightAnimation.To = height;
}
}