Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gihansoft/gihansoft.navigation


https://github.com/gihansoft/gihansoft.navigation

Last synced: about 9 hours ago
JSON representation

Awesome Lists containing this project

README

        

# GihanSoft Navigation

[![publish to nuget](https://github.com/GihanSoft/GihanSoft.Navigation/actions/workflows/publish.yml/badge.svg)](https://github.com/GihanSoft/GihanSoft.Navigation/actions/workflows/publish.yml)

## usage:

```xml

```

**Important!!** do this where used `PageHost`:
```csharp
private static readonly DependencyPropertyKey PageNavigatorPropertyKey = DependencyProperty.RegisterReadOnly(
nameof(PageNavigator),
typeof(PageNavigator),
typeof(MainWindow),
new PropertyMetadata(default(PageNavigator)));

/// Identifies the dependency property.
public static readonly DependencyProperty PageNavigatorProperty = PageNavigatorPropertyKey.DependencyProperty;

public MainWindow()
{
this.InitializeComponent();
...
...
// put a service provider in app.xaml.cs
this.PageNavigator = new PageNavigator(App.Current.ServiceProvider);
...
...
}

///
/// Gets Page Navigator.
///
public PageNavigator? PageNavigator
{
get => (PageNavigator?)this.GetValue(PageNavigatorProperty);
private set => this.SetValue(PageNavigatorPropertyKey, value);
}
```

use left & right toolbars like this:
```xml

```
navigatoin:
```csharp
//...
this.PageHost.PageNavigator.GoToAsync();
//...
```
YourPage.xaml:
```xml






```