using System; using System.IO; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Media; using System.Windows.Threading; using MPF.Core.Data; #pragma warning disable IDE1006 // Naming Styles namespace MPF.UI.Core.UserControls { public partial class LogOutput : UserControl { /// /// Document representing the text /// internal FlowDocument Document { get; private set; } /// /// Queue of items that need to be logged /// internal ProcessingQueue LogQueue { get; private set; } /// /// Paragraph backing the log /// private readonly Paragraph _paragraph; /// /// Cached value of the last line written /// private Run? lastLine = null; #if NET35 private Button? _ClearButton => ItemHelper.FindChild