Domore.Async.TextReading.Windows
11.0.0
dotnet add package Domore.Async.TextReading.Windows --version 11.0.0
NuGet\Install-Package Domore.Async.TextReading.Windows -Version 11.0.0
<PackageReference Include="Domore.Async.TextReading.Windows" Version="11.0.0" />
<PackageVersion Include="Domore.Async.TextReading.Windows" Version="11.0.0" />
<PackageReference Include="Domore.Async.TextReading.Windows" />
paket add Domore.Async.TextReading.Windows --version 11.0.0
#r "nuget: Domore.Async.TextReading.Windows, 11.0.0"
#:package Domore.Async.TextReading.Windows@11.0.0
#addin nuget:?package=Domore.Async.TextReading.Windows&version=11.0.0
#tool nuget:?package=Domore.Async.TextReading.Windows&version=11.0.0
Domore.Async.TextReading.Windows
Domore.Async.TextReading.Windows provides a WPF control for displaying text as it is decoded by
Domore.Async.TextReading. The control is read-only, reports the
detected encoding and load status, and cancels an in-progress decode when its source changes.
Use the WPF control
Reference the Domore.Async.TextReading.Windows project or package, then declare the domore XAML
namespace:
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:domore="http://schemas.domore.local/winfx/2026/xaml/presentation">
<domore:TextReader
TextReaderSource="logs\app.log"
TextReaderSourceLengthMax="52428800"
TextWrapping="NoWrap"
VerticalScrollBarVisibility="Auto"/>
</Window>
TextReaderSource accepts an IStreamText, a file path, a FileInfo, or a local file Uri. Relative
string paths are resolved against the application directory. For unsupported values, non-file URIs, and
invalid paths, null is returned as the source, so nothing is decoded. File metadata is read off the UI
thread; missing file paths are retained so Reload() can retry them later.
TextReaderSourceLengthMax limits the source size in bytes; null means no limit. Set
TextReaderOptions to customize encoding detection, or leave it null to use the decoder's defaults.
TextReaderEnabled controls whether decoding runs.
The read-only status properties TextReaderLoading, TextReaderSuccess, and TextReaderEncoding report
progress and the result. TextReaderSourceChanged, TextReaderLoadingChanged,
TextReaderSuccessChanged, and TextReaderEncodingChanged are available as routed events.
Supported frameworks
.NET 6, .NET 8, and .NET 10 on Windows.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. net10.0-windows7.0 is compatible. |
-
net10.0-windows7.0
- Domore.Async.TextReading (>= 11.0.0)
- Domore.Logs (>= 11.0.0)
-
net6.0-windows7.0
- Domore.Async.TextReading (>= 11.0.0)
- Domore.Logs (>= 11.0.0)
-
net8.0-windows7.0
- Domore.Async.TextReading (>= 11.0.0)
- Domore.Logs (>= 11.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.