Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oriches/simple.wpf.fsharp.repl
A simple F# REPL engine for use in an WPF application
https://github.com/oriches/simple.wpf.fsharp.repl
Last synced: 5 days ago
JSON representation
A simple F# REPL engine for use in an WPF application
- Host: GitHub
- URL: https://github.com/oriches/simple.wpf.fsharp.repl
- Owner: oriches
- License: apache-2.0
- Created: 2013-12-15T20:35:40.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-11-23T09:31:55.000Z (about 1 year ago)
- Last Synced: 2025-01-07T14:56:25.795Z (about 1 month ago)
- Language: C#
- Homepage:
- Size: 97.7 MB
- Stars: 25
- Watchers: 7
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Simple.Wpf.FSharp.Repl
======================[![Build status](https://ci.appveyor.com/api/projects/status/kqrptn5shaen1kld?svg=true)](https://ci.appveyor.com/project/oriches/simple-wpf-fsharp-repl)
A simple F# REPL engine for use in a WPF application. Mimics the F# Interactive console application inside a WPF user control. Currently based on the open source F# 3.1 Interactive process.
Currently we support the following .Net versions:
Supported versions:
.NET framework 4.8 and higher,
This library is available as a nuget [package] (https://www.nuget.org/packages/Simple.Wpf.FSharp.Repl/).For more information about the releases see [Release Info] (https://github.com/oriches/Simple.Wpf.FSharp.Repl/wiki/Release-Info).
Example usages of the control, with styles applied dynamically, these were taken from the Wpf.TestHarness project:
![alt text](https://raw.github.com/oriches/Simple.Wpf.FSharp.Repl/master/Readme%20Images/examples.png "Example usage using 2 different themes")
### Code behind implementation
```
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
```
XAML:
``````
### MVVM implementation
```
public sealed class MainViewModel
{
private readonly IReplEngineController _controller;public MainViewModel()
{
_controller = new ReplEngineController("let ollie = 1337;;");
}public IReplEngineViewModel Content { get { return _controller.ViewModel; } }
}
```XAML:
``````
### Blog post about developing this control
There is a set of blog posts which detail the journey of creating this control & nuget package - [part 1](http://awkwardcoder.blogspot.co.uk/2013/12/simple-f-repl-in-wpf-part-1.html), [part 2](http://awkwardcoder.blogspot.co.uk/2013/12/simple-f-repl-in-wpf-part-2.html), [part 3](http://awkwardcoder.blogspot.co.uk/2013/12/simple-f-repl-in-wpf-part-3.html) & [part 4] (http://awkwardcoder.blogspot.co.uk/2014/01/simple-f-repl-in-wpf-part-4.html).