protected override float ComputeContentWidth() { ignoreUpdate = true; // by definition when computing width in the width pass we only care about its natural width float retn = textInfo.ComputeContentWidth(float.MaxValue); ignoreUpdate = false; return(retn); }