Skip to content

Commit

Permalink
Removed Example: from headlines
Browse files Browse the repository at this point in the history
  • Loading branch information
sandreas committed Jan 30, 2024
1 parent 71a7cc4 commit 373abee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ public class ViewLocator : IDataTemplate

## Examples

**Example: Simple Transition**
**Simple Transition**

Just change the visible view.
```c#
// Navigate to HomeView
_router.GoTo<HomeViewModel>();
```

**Example: Transition with parameters**
**Transition with parameters**

The `Goto` method will return the destination viewModel, so you can change values.
This is similar to route parameters but type safe and more flexible.
Expand All @@ -105,7 +105,7 @@ var settingsVm = _router.GoTo<SettingsViewModel>();
settingsVm.DefaultUsername = "root";
```

**Example: Check history before transition**
**Check history before transition**

You can check, if there is a routing history by using `HasNext` and `HasPrev` properties.
```c#
Expand All @@ -120,7 +120,7 @@ if(_router.HasPrev) {
}
```

**Example: Move in history by numeric value**
**Move in history by numeric value**
If you would like to navigate by a numeric value, this is also possible.
```c#
// go back two history items if possible, otherwise it will stay where you are
Expand Down

0 comments on commit 373abee

Please sign in to comment.