{"id":23309918,"url":"https://github.com/baseflow/xamarin-sidebar","last_synced_at":"2025-04-04T14:05:10.640Z","repository":{"id":60773494,"uuid":"14312079","full_name":"Baseflow/Xamarin-Sidebar","owner":"Baseflow","description":"A slideout navigation control for Xamarin.iOS","archived":false,"fork":false,"pushed_at":"2023-01-24T20:12:49.000Z","size":50051,"stargazers_count":114,"open_issues_count":22,"forks_count":67,"subscribers_count":13,"default_branch":"develop","last_synced_at":"2024-05-09T14:43:32.478Z","etag":null,"topics":["baseflow","c-sharp","nuget","slideout-menu","xamarin","xamarin-sidebar"],"latest_commit_sha":null,"homepage":"https://baseflow.com","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Baseflow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":"FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"Baseflow","custom":"https://baseflow.com/contact"}},"created_at":"2013-11-11T20:19:23.000Z","updated_at":"2023-02-17T14:56:24.000Z","dependencies_parsed_at":"2023-02-14T01:01:31.978Z","dependency_job_id":null,"html_url":"https://github.com/Baseflow/Xamarin-Sidebar","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baseflow%2FXamarin-Sidebar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baseflow%2FXamarin-Sidebar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baseflow%2FXamarin-Sidebar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baseflow%2FXamarin-Sidebar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Baseflow","download_url":"https://codeload.github.com/Baseflow/Xamarin-Sidebar/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247190247,"owners_count":20898702,"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","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":["baseflow","c-sharp","nuget","slideout-menu","xamarin","xamarin-sidebar"],"created_at":"2024-12-20T13:13:27.457Z","updated_at":"2025-04-04T14:05:10.621Z","avatar_url":"https://github.com/Baseflow.png","language":"C#","readme":"Xamarin-Sidebar\n============================\n\nA slideout navigation control for Xamarin iOS applications.\n\n![license](https://img.shields.io/github/license/jdehlin/Xamarin-Sidebar.svg)\n[![Build status](https://ci.appveyor.com/api/projects/status/lonmgoyb01ikni8q?svg=true)](https://ci.appveyor.com/project/martijn00/xamarin-sidebar)\n[![NuGet](https://img.shields.io/nuget/v/SidebarNavigation.svg)](https://www.nuget.org/packages/SidebarNavigation/)\n[![GitHub tag](https://img.shields.io/github/tag/jdehlin/Xamarin-Sidebar.svg)](https://github.com/jdehlin/Xamarin-Sidebar/releases)\n[![MyGet](https://img.shields.io/myget/martijn00/v/xamarin-sidebar.svg)](https://www.myget.org/F/martijn00/api/v3/index.json)\n\nGet the package on [Nuget](https://www.nuget.org/packages/SidebarNavigation/)!\n\n*If you're using Sidebar Navigation send me a link to your app and I'll happily post it here.*\n\n![Menu Open](https://raw.githubusercontent.com/jdehlin/Xamarin-Sidebar/master/Screenshots/Transition.png)\n\nThis is partly based on two other good slideout menu implementation that each didn't \nprovide quite what I was looking for. Those two are \n[FlyoutNavigation](https://github.com/Clancey/FlyoutNavigation)\nand\n[SlideoutNavigation](https://github.com/thedillonb/MonoTouch.SlideoutNavigation/).\n\n`Xamarin-Sidebar` allows you to provide one UIViewController to be used as a content view\nand another to be used as a menu. When you open the menu the content view will slide over\nto reveal the provided menu UIViewController.\n\nTo set it up just create a root UIViewController and a SidebarController, passing in your \ncontent and menu controllers.\n\n`RootViewController.cs`\n```csharp\nusing SidebarNavigation;\n...\npublic partial class RootViewController : UIViewController\n{\n\t// the sidebar controller for the app\n\tpublic SidebarController SidebarController { get; private set; }\n\n\tpublic override void ViewDidLoad()\n\t{\n\t\tbase.ViewDidLoad();\n\n\t\t// create a slideout navigation controller with the top navigation controller and the menu view controller\n\t\tSidebarController = new SidebarController(this, new ContentController(), new SideMenuController());\n\t}\n}\n...\n```\n\n`AppDelegate.cs`\n```csharp\n...\npublic override bool FinishedLaunching(UIApplication app, NSDictionary options)\n{\n\twindow = new UIWindow(UIScreen.MainScreen.Bounds);\n\t\n\t// set our root view controller with the sidebar menu as the apps root view controller\n\twindow.RootViewController = new RootViewController();\n\t\n\twindow.MakeKeyAndVisible();\n\treturn true;\n}\n...\n```\n\nIn the content controller you can add a button to open the slideout menu.\n\n```csharp\nmenuButton.TouchUpInside += (sender, e) =\u003e {\n\tSidebarController.ToggleMenu();\n};\n```\n\nIn the side menu controller you can add buttons to change the content view.\n\n```csharp\notherContentButton.TouchUpInside += (sender, e) =\u003e {\n\tSidebarController.ChangeContentView(new OtherContentController());\n};\n```\n\nAdditional options include hiding the shadow, setting the menu width, and placing the menu \non the left.\n\n```csharp\nSidebarController.HasShadowing = false;\nSidebarController.MenuWidth = 220;\nSidebarController.MenuLocation = SidebarController.MenuLocations.Left;\n```\n\nSee the sample projects included in the source for more details.\n","funding_links":["https://github.com/sponsors/Baseflow","https://baseflow.com/contact"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaseflow%2Fxamarin-sidebar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaseflow%2Fxamarin-sidebar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaseflow%2Fxamarin-sidebar/lists"}