using System; using System.Collections; using System.IO; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Media; using System.Windows.Threading; using MPF.Frontend; namespace MPF.UI.UserControls { public partial class LogOutput : UserControl { /// /// Document representing the text /// private readonly FlowDocument _document; /// /// Paragraph backing the log /// private readonly Paragraph _paragraph; /// /// Maximum number of inlines before trimming /// private const int MaxInlineCount = 5000; #if NET35 private Button? ClearButton => ItemHelper.FindChild