Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gihansoft/gihansoft.navigation
https://github.com/gihansoft/gihansoft.navigation
Last synced: about 9 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/gihansoft/gihansoft.navigation
- Owner: GihanSoft
- License: mit
- Created: 2021-03-02T09:30:43.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-31T10:17:38.000Z (about 3 years ago)
- Last Synced: 2023-03-21T13:56:31.825Z (almost 2 years ago)
- Language: C#
- Size: 151 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```