Git Product home page Git Product logo

simple.wpf.fsharp.repl's Introduction

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.0 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

Code behind implementation

public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();
    }
}

XAML:

<v:ReplWindow x:Name="ReplWindow" />

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:

<v:ReplEngine x:Name="ReplEngine"
              Grid.Row="1"
              DataContext="{Binding Path=Content, Mode=OneWay}"/>

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, part 2, part 3 & [part 4] (http://awkwardcoder.blogspot.co.uk/2014/01/simple-f-repl-in-wpf-part-4.html).

simple.wpf.fsharp.repl's People

Contributors

oriches avatar

Watchers

James Cloos avatar RG avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.