Esempio n. 1
0
        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);
        }