Microsoft.Phone.Controls.PhoneTextBox.ResizeTextBox C# (CSharp) Method

ResizeTextBox() private method

private ResizeTextBox ( ) : void
return void
        private void ResizeTextBox()
        {
            if (ActionIcon == null || TextWrapping != System.Windows.TextWrapping.Wrap) { return; }

            _measurementTextBlock.Width = ActualWidth;

            if (_measurementTextBlock.ActualHeight > ActualHeight - 72)
            {
                Height = ActualHeight + 72;
            }
            else if (ActualHeight > _measurementTextBlock.ActualHeight + 144)
            {
                Height = ActualHeight - 72;
            }
        }