Brows.ProcessAgent.Windows 1.1.0

dotnet add package Brows.ProcessAgent.Windows --version 1.1.0
                    
NuGet\Install-Package Brows.ProcessAgent.Windows -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Brows.ProcessAgent.Windows" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Brows.ProcessAgent.Windows" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Brows.ProcessAgent.Windows" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Brows.ProcessAgent.Windows --version 1.1.0
                    
#r "nuget: Brows.ProcessAgent.Windows, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Brows.ProcessAgent.Windows@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Brows.ProcessAgent.Windows&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Brows.ProcessAgent.Windows&version=1.1.0
                    
Install as a Cake Tool

Brows.ProcessAgent.Windows

A WPF control for displaying a process's standard output and standard error using IProcessProxy from Brows.ProcessAgent.

Install the package with dotnet add package Brows.ProcessAgent.Windows.

This package targets net10.0-windows and includes WPF support.

Display process output

Add the Brows XAML namespace and bind ProcessProxy to an IProcessProxy created by ProcessAgent:

<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:brows="http://schemas.brows.app/winfx/2026/xaml/presentation">
  <brows:ProcessProxyView ProcessProxy="{Binding ProcessProxy}" />
</Window>

The default template displays completed and current output lines, distinguishing standard output from standard error. Below the output, a status area shows the process command, start time, process ID, and exit code. While the process has no exit code, the status area shows whether it is starting, running, stopped (it started but ended without an exit code, such as when it was canceled), or not started. Each status item reserves the width of its widest value (a formatted start time, a seven-digit process ID, and the longest state text, "Not started"), so the items don't shift as the process starts and exits. Exit codes of up to about six digits fit in that space; a longer code, such as an NTSTATUS value like -1073741510, widens the exit slot once when the process exits. The start time's reserve is the widest result of ProcessDateTimeFormat across all months and weekdays, including the UTC offset of a local time. It is exact for numeric formats and an approximation, based on character count, for formats with month or weekday names in a proportional font. For strict control, or for a custom status template, give the item a fixed width yourself.

Customize the output with ProcessLineItemsControlTemplate, ProcessStandardOutputLineStyle, and ProcessStandardErrorLineStyle. Customize the status area with ProcessBorderStyle, ProcessDateTimeFormat, and the status templates ProcessCommandTemplate, ProcessStartTimeTemplate, ProcessIDTemplate, ProcessExitCodeTemplate, and ProcessStatusSeparatorTemplate. Each status template's data context is the IProcessProxy:

<brows:ProcessProxyView ProcessProxy="{Binding ProcessProxy}">
  <brows:ProcessProxyView.ProcessExitCodeTemplate>
    <DataTemplate>
      <TextBlock MinWidth="60" Text="{Binding ExitCode, TargetNullValue=…}" />
    </DataTemplate>
  </brows:ProcessProxyView.ProcessExitCodeTemplate>
</brows:ProcessProxyView>

Style the control

The default template is defined in the package's theme resources, so ProcessProxyView is styled like any other lookless WPF control. To reuse the package styles in your own resource dictionary, merge /Brows.ProcessAgent.Windows;component/Resources/Styles.xaml and base your style on the implicit ProcessProxyView style:

<ResourceDictionary.MergedDictionaries>
  <ResourceDictionary Source="/Brows.ProcessAgent.Windows;component/Resources/Styles.xaml"/>
</ResourceDictionary.MergedDictionaries>

<Style x:Key="ConsoleProcessStyle" TargetType="brows:ProcessProxyView"
       BasedOn="{StaticResource {x:Type brows:ProcessProxyView}}">
  <Setter Property="Background" Value="Black"/>
  <Setter Property="Foreground" Value="White"/>
  <Setter Property="ProcessDateTimeFormat" Value="HH:mm:ss"/>
</Style>

Set Template to replace the default template entirely.

Product Compatible and additional computed target framework versions.
.NET net10.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 89 11/15/2026
1.0.0 138 9/29/2026