Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split REFERENCE.md from TUTORIAL.md #521

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ Thanks to JetBrains for sponsoring Elmish.WPF with [OSS licenses](https://www.je
Recommended resources
---------------------

* The [Elmish.WPF tutorial](https://github.com/elmish/Elmish.WPF/blob/master/TUTORIAL.md) explains how to use Elmish.WPF, starting with general Elmish/MVU concepts and ending with complex bindings and optimizations.
* The [Elmish.WPF tutorial](https://github.com/elmish/Elmish.WPF/blob/master/TUTORIAL.md) explains how to use Elmish.WPF, starting with general Elmish/MVU concepts and ending with complex optimizations.
* The [Elmish.WPF binding reference](https://github.com/elmish/Elmish.WPF/blob/master/REFERENCE.md) explains Elmish.WPF's bindings and library functions for modifying bindings.
* The [Elmish docs site](https://elmish.github.io/elmish) also explains the general MVU architecture and principles.
* The [Elmish.WPF samples](https://github.com/elmish/Elmish.WPF/tree/master/src/Samples) provide many concrete usage examples.
* Blog posts:
Expand All @@ -60,12 +61,12 @@ See the [SingleCounter](https://github.com/elmish/Elmish.WPF/tree/master/src/Sam

```fsproj
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0-windows</TargetFramework> <!-- Or another target framework -->
<UseWpf>true</UseWpf>
</PropertyGroup>

<!-- other stuff -->
```

Expand All @@ -83,7 +84,7 @@ See the [SingleCounter](https://github.com/elmish/Elmish.WPF/tree/master/src/Sam
type Model =
{ Count: int
StepSize: int }

let init () =
{ Count = 0
StepSize = 1 }
Expand Down Expand Up @@ -114,7 +115,7 @@ See the [SingleCounter](https://github.com/elmish/Elmish.WPF/tree/master/src/Sam

```F#
open Elmish.WPF

let bindings () =
[
"CounterValue" |> Binding.oneWay (fun m -> m.Count)
Expand All @@ -132,7 +133,7 @@ See the [SingleCounter](https://github.com/elmish/Elmish.WPF/tree/master/src/Sam

```F#
open Elmish.WPF

let main window =
Program.mkSimpleWpf init update bindings
|> Program.runElmishLoop window
Expand All @@ -155,13 +156,13 @@ See the [SingleCounter](https://github.com/elmish/Elmish.WPF/tree/master/src/Sam
{
this.Activated += StartElmish;
}

private void StartElmish(object sender, EventArgs e)
{
this.Activated -= StartElmish;
Program.main(MainWindow);
}

}
```

Expand Down
Loading