{"id":13712661,"url":"https://github.com/mattmorgan6/TwoWeekControl","last_synced_at":"2025-05-06T22:31:22.933Z","repository":{"id":115816880,"uuid":"181764587","full_name":"mattmorgan6/TwoWeekControl","owner":"mattmorgan6","description":"Xamarin forms calendar with only two weeks!","archived":false,"fork":false,"pushed_at":"2020-01-11T19:12:10.000Z","size":1026,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T09:39:52.211Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mattmorgan6.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-16T20:45:50.000Z","updated_at":"2021-01-26T12:38:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"81820b5c-3850-4142-9d5f-f39bb473c27b","html_url":"https://github.com/mattmorgan6/TwoWeekControl","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/mattmorgan6%2FTwoWeekControl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmorgan6%2FTwoWeekControl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmorgan6%2FTwoWeekControl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmorgan6%2FTwoWeekControl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattmorgan6","download_url":"https://codeload.github.com/mattmorgan6/TwoWeekControl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252779057,"owners_count":21802870,"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":[],"created_at":"2024-08-02T23:01:21.071Z","updated_at":"2025-05-06T22:31:21.859Z","avatar_url":"https://github.com/mattmorgan6.png","language":"C#","funding_links":[],"categories":["UI"],"sub_categories":[],"readme":"# TwoWeekControl / ModernXamarinCalendar\n\nA Nuget Package for Xamarin Forms. Interactive Xamarin Forms Calendar\n[https://www.nuget.org/packages/ModernXamarinCalendar/](https://www.nuget.org/packages/ModernXamarinCalendar/)\n\n![Modern Xamarin Calendar Control](https://github.com/mattmorgan6/TwoWeekControl/blob/master/Images/ModernControlSnip.JPG)\n\n## Documentation\n\n### Set Up\n\n#### Step 1\n\nInstall the Nuget Package using Nuget Package Manager or in the Package Manager\nConsole run command:\n\n``` powershell\nInstall-Package ModernXamarinCalendar -Version 1.0.4\n```\n\n#### Step 2\n\nIn the XAML content page where you would like the Calendar to go (such as\n`MainPage.xaml`), write within the Content Page Tag\n\n``` xml\nxmlns:control=\"clr-namespace:ModernXamarinCalendar;assembly=ModernXamarinCalendar\"\n```\n\n#### Step 3\n\nWithin your layout in the same XAML Page, place\n\n``` xml\n\u003ccontrol:WeekControl x:Name=\"CalendarWeekControl\"\n                     HorizontalOptions=\"CenterAndExpand\"\n                     BackgroundColor=\"SteelBlue\" /\u003e\n```\n\n#### Step 4\n\nIn the C# code for your content page (such as `MainPage.xaml.cs`)\n\n``` csharp\npublic void SelectedDateChanged(object sender, EventArgs e)\n{\n    var calendar = sender as WeekControl;\n\n    // Insert code here that you want to use the date selected for...\n\n    // control.SelectedDate returns a DateTime for the selected day.\n\n    Debug.WriteLine(calendar.SelectedDate.ToString());\n}\n```\n\n#### Step 5\n\nIn the same C# file, write within the constructor\n\n``` csharp\nCalendarWeekControl.SelectedDateChanged += SelectedDateChanged;\n```\n \n#### Step 6\n\nDownload Images from\n\u003e [GitHub - Images - Download this folder for icons for the nuget package](https://github.com/mattmorgan6/ModernXamarinCalendar/tree/master/Images%20-Download%20this%20folder%20for%20icons%20for%20nuget%20package)\n\nand install them in your project\n\n## Options\n\n### Show labels for the days of the week (**SUN MON TUE WED THU FRI SAT**)\n\nIn the XAML page, set this property for the `WeekControl`:\n\n``` xml\nShowDayName=\"True\"\n```\n\nor in the C# code:\n\n``` csharp\nCalendarWeekControl.ShowDayName = true;\n```\n\n(The default value for `ShowDayName` is false, so not specifying it means the\ndays will not show up).\n\n### Change the color of the calendar and its text\n  In the XAML page, set this property for the WeekControl:\n```       \n   ForegroundColor=\"White\"\n```\n\n(The default value for `ForegroundColor` is Black).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattmorgan6%2FTwoWeekControl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattmorgan6%2FTwoWeekControl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattmorgan6%2FTwoWeekControl/lists"}