https://github.com/oriches/simple.wpf.terminal
A simple console\terminal window for use in a WPF application
https://github.com/oriches/simple.wpf.terminal
csharp dotnet dotnet-core terminal wpf wpf-application xaml
Last synced: 3 months ago
JSON representation
A simple console\terminal window for use in a WPF application
- Host: GitHub
- URL: https://github.com/oriches/simple.wpf.terminal
- Owner: oriches
- License: mit
- Created: 2013-12-24T01:53:34.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-11-23T10:07:38.000Z (over 1 year ago)
- Last Synced: 2025-04-05T22:09:51.032Z (3 months ago)
- Topics: csharp, dotnet, dotnet-core, terminal, wpf, wpf-application, xaml
- Language: C#
- Homepage:
- Size: 2.81 MB
- Stars: 105
- Watchers: 4
- Forks: 24
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple.Wpf.Terminal
[](https://github.com/oriches/simple.wpf.terminal)
[](https://ci.appveyor.com/project/oriches/simple-wpf-terminal/branch/master)Supported versions:
.NET Framework 4.7 and higher,
.Net Core 3.1 and higher,
.Net 5.0 and higherA simple console\\terminal window for use in a WPF application, this is a user control that will allow the user to enter a line of text (script\\command) and\or display a list of items in a console\\terminal style.
This user control does NOT actually do anything more than display data - the user control is the View (UI) in a MVVM implementation, the ViewModel would be responsible for the actual behaviour & contents of the console\\terminal window. The user control is designed to use XAML binding for all UI properties the user can configure.
The control supports theming and there are a couple of example themes supplied in the Simple.Wpf.Terminal.Themes project.
For more information about the releases see [Release Info] (https://github.com/oriches/Simple.Wpf.Terminal/wiki/Release-Info).
For more information about the styling the control see [Style Info] (https://github.com/oriches/Simple.Wpf.Terminal/wiki/Style-Info).
Currently we support the following .Net versions:
This library is available as a nuget [package] (https://www.nuget.org/packages/Simple.Wpf.Terminal/).Examples of usage:
### Custom F# Interactive window in a WPF application
The XAML is shown below:
```XAML
```
An example of the Terminal Style (ReplTerminalStyle) is shown below and is available at the link below the example:```XAML
<Setter Property="BorderThickness"
Value="0" />
<Setter Property="Background"
Value="Black" />
<Setter Property="Foreground"
Value="DeepSkyBlue" />
<Setter Property="LineColorConverter"
Value="{StaticResource LineColorConverter}" />
<Setter Property="ItemsMargin"
Value="5" />
<Setter Property="ItemHeight"
Value="10" />
```
The code for this is available here - https://github.com/oriches/Simple.Wpf.FSharp.Repl
### In-app Log viewer in a WPF application
The XAML is shown below:
```XAML
```
The code for this is available here - https://github.com/oriches/Simple.Wpf.Composition
I'd be interested to hear about other uses :)