I need what would effectively be an Editor
field that will resize it's self to the content within.
I have this code, but the problem seems that the editor field becomes oversized when large amounts of text is entered.
This is the code,
public EditorXF()
{
try
{
TextChanged += (sender, e) => InvalidateMeasure();
}
catch (Exception ex)
{
DebugTools.LogException(ex);
}
}
this code will modify the "Text Box", but like I said, if you enter large amounts of text, it will oversize it's self.
Here are some screen caps to demonstrate what I am talking about.
In the photos, I have simply highlighted the text in the "Output" and pasted it into the "Input" field
[1]: /answers/storage/attachments/77524-screenshot-1615746770.png
[2]: /answers/storage/attachments/77389-screenshot-1615746782.png