{"id":13327207,"url":"https://github.com/panoukos41/navigation","last_synced_at":"2026-02-06T06:01:49.132Z","repository":{"id":46784403,"uuid":"394018392","full_name":"panoukos41/Navigation","owner":"panoukos41","description":"A project for key to view navigation using ReactiveUI while providing ViewModel creation and navigation aware interface.","archived":false,"fork":false,"pushed_at":"2022-11-19T08:28:10.000Z","size":407,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T01:56:25.913Z","etag":null,"topics":["android","csharp","dotnet","mvvm","netstandard","reactiveui","uwp","wpf","wui","xamarin"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/panoukos41.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-08T16:51:54.000Z","updated_at":"2023-05-15T19:28:09.000Z","dependencies_parsed_at":"2023-01-22T01:04:23.833Z","dependency_job_id":null,"html_url":"https://github.com/panoukos41/Navigation","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/panoukos41/Navigation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panoukos41%2FNavigation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panoukos41%2FNavigation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panoukos41%2FNavigation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panoukos41%2FNavigation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/panoukos41","download_url":"https://codeload.github.com/panoukos41/Navigation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panoukos41%2FNavigation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266649140,"owners_count":23962177,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","csharp","dotnet","mvvm","netstandard","reactiveui","uwp","wpf","wui","xamarin"],"created_at":"2024-07-29T18:53:51.418Z","updated_at":"2026-02-06T06:01:44.098Z","avatar_url":"https://github.com/panoukos41.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Navigation\n\n[![Release](https://github.com/panoukos41/navigation/actions/workflows/release.yaml/badge.svg)](https://github.com/panoukos41/navigation/actions/workflows/release.yaml)\n[![NuGet](https://buildstats.info/nuget/P41.Navigation?includePreReleases=true)](https://www.nuget.org/packages/P41.Navigation)\n[![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?)](https://github.com/panoukos41/navigation/blob/main/LICENSE.md)\n\nA project for key to view navigation using [ReactiveUI](https://github.com/reactiveui/ReactiveUI) and [Flurl](https://github.com/tmenier/Flurl).\n\n## Platforms\n\n| Platform          | TFM                      |\n|-------------------|--------------------------|\n| .NET Standard 2.0 | netstandard2.0           |\n| .NET 6.0          | net6.0                   |\n| .NET 6.0 Android  | net6.0-android           |\n| .NET 6.0 WPF      | net6.0-windows7.0        |\n| .NET 6.0 WinUI    | net6.0-windows10.0.19041 |\n| UWP 16299         | uap10.0.19041            |\n\n## Installation\n\n\u003e Replace `X` with the version you want!\n\n### .NET CLI\n```csharp\ndotnet add package P41.Navigation --version X\n```\n\n### Package Reference\n```csharp\n\u003cPackageReference Include=\"P41.Navigation\" Version=\"X\" /\u003e\n```\n\n## Getting Started\n\nYou get started by configuring the `NavigationHost` for a platform:\n\n### UWP\n```csharp\n// Application (App.xaml.cs in sample)\nservices.AddSingleton(sp =\u003e\n    new NavigationHost()\n    .Map(\"page1\", static () =\u003e typeof(Page1))\n    .Map(\"page2/{}\", static () =\u003e new Page2()) // {} means parameter.\n    .Map(\"page3\", static () =\u003e typeof(Page3)));\n\n// At the end of Application OnLaunched\nWindow.Current.Activate();\nServices.Resolve\u003cINavigationHost\u003e().Navigate(\"page1/100\");\n```\n\n### Android\n```csharp\n// Application (AndroidApp in sample)\nservices.AddSingleton(sp =\u003e\n    new NavigationHost()\n    .Map(\"page1\", static () =\u003e new Page1())\n    .Map(\"page2/{}\", static () =\u003e new Page2()) // {} means parameter.\n    .Map(\"page3\", static () =\u003e new Page3())\n);\n\n// Main Activity (Shell in sample) at the end of OnCreate\nhost.SetFragmentManager(SupportFragmentManager)\n    .SetFragmentContainerId(R.Id.MainContainer)\n    .Navigate(\"page1\");\n```\n\n### All targets plus .NET 6.0 or .NET Standard 2.0\nThen from your code you call navigation methods:\n\n```csharp\n\n// Shared ViewModel constructor\nNavigate = ReactiveCommand.Create\u003cstring\u003e(page =\u003e\n{\n    this.Navigate(page);\n});\n\nGoBack = ReactiveCommand.Create\u003cUnit\u003e(_ =\u003e\n{\n    this.GoBack());\n}\n```\n\nYou also register code to run on NavigatedTo and NavigatingFrom similar to ReactiveUI activation.\n\n```csharp\nthis.WhenNavigated((Flurl.Url url, CompositeDisposable d) =\u003e\n{\n});\n```\n\nWhen the ViewModel is being NavigatedFrom `Dispose()` is called on the `CompositeDisposable`.\n\nThere are also samples in the [samples](./samples) folder that you should see and try! \n\n## Build\n\nInstall [Visual Studio 2022 Preview](https://visualstudio.microsoft.com/vs/preview) and [.NET 6.0](https://dotnet.microsoft.com/download/dotnet/6.0)\n\nClone the project and open the solution then you just build the whole solution or the specific `projects/solution folder` you want to build.\n\n## Contribute\n\nContributions are welcome and appreciated, before you create a pull request please open a [GitHub Issue](https://github.com/panoukos41/navigation/issues/new) to discuss what needs changing and or fixing if the issue doesn't exist!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanoukos41%2Fnavigation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpanoukos41%2Fnavigation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanoukos41%2Fnavigation/lists"}