{"id":23061659,"url":"https://github.com/syncfusionexamples/xamarin-datasource-getting-started","last_synced_at":"2025-10-05T12:41:57.551Z","repository":{"id":54945838,"uuid":"166991273","full_name":"SyncfusionExamples/xamarin-datasource-getting-started","owner":"SyncfusionExamples","description":"Demo application shows to create a sample using Xamarin.Forms DataSource.","archived":false,"fork":false,"pushed_at":"2025-09-14T05:27:44.000Z","size":2409,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-14T07:13:09.368Z","etag":null,"topics":["datasource","xamarin","xamarin-forms"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SyncfusionExamples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-01-22T12:34:25.000Z","updated_at":"2025-09-14T05:27:48.000Z","dependencies_parsed_at":"2024-02-15T14:52:43.978Z","dependency_job_id":null,"html_url":"https://github.com/SyncfusionExamples/xamarin-datasource-getting-started","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SyncfusionExamples/xamarin-datasource-getting-started","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2Fxamarin-datasource-getting-started","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2Fxamarin-datasource-getting-started/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2Fxamarin-datasource-getting-started/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2Fxamarin-datasource-getting-started/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SyncfusionExamples","download_url":"https://codeload.github.com/SyncfusionExamples/xamarin-datasource-getting-started/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2Fxamarin-datasource-getting-started/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278457470,"owners_count":25989954,"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-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["datasource","xamarin","xamarin-forms"],"created_at":"2024-12-16T03:18:04.165Z","updated_at":"2025-10-05T12:41:57.519Z","avatar_url":"https://github.com/SyncfusionExamples.png","language":null,"readme":"# Xamarin DataSource\n\n## About the sample\n\nDemo application shows to create a sample using Xamarin.Forms DataSource. \n\nCreate new BlankApp (Xamarin.Forms.Portable) application in Xamarin Studio or Visual Studio. Import the DataSource namespace Syncfusion.DataSource and set the source for the DataSource by using the DataSource.Source property. You can bind the DataSource.DisplayItems as ItemsSource for any data bound control.\n```C#\nusing Syncfusion.DataSource;\n\npublic App()\n{\n    DataSource dataSource = new DataSource();\n    dataSource.Source = new ContactsList();\n}\n```\nCreate a data model to bind it to the DisplayItems.\n```C#\npublic class Contacts : INotifyPropertyChanged\n{\n    private string contactName;\n\n    public Contacts(string name)\n    {\n        contactName = name;\n    }\n\n    public string ContactName\n    {\n        get { return contactName; }\n        set\n        {\n            if (contactName != value)\n            {\n                contactName = value;\n                this.RaisedOnPropertyChanged(\"ContactName\");\n            }\n        }\n    }\n\n    public event PropertyChangedEventHandler PropertyChanged;\n\n    public void RaisedOnPropertyChanged(string _PropertyName)\n    {\n        if (PropertyChanged != null)\n        {\n            PropertyChanged(this, new PropertyChangedEventArgs(_PropertyName));\n        }\n    }\n}\n```\nCreate a model repository class with required number of data objects.\n\n```C#\npublic class ContactsList : ObservableCollection\u003cContacts\u003e, INotifyPropertyChanged\n{\n    public ContactsList()\n    {\n        foreach (var customerName in CustomerNames)\n        {\n            var contact = new Contacts(customerName);\n            this.Add(contact);\n        }\n    }\n    string[] CustomerNames = new string[] {\n    \"Kyle\",\n    \"Gina\",\n    \"Irene\",\n    \"Katie\",\n    \"Michael\",\n    \"Oscar\",\n    \"Ralph\",\n    \"Torrey\",\n    \"William\",\n    \"Bill\",\n    \"Daniel\",\n    \"Frank\",\n    \"Brenda\",\n    \"Danielle\",\n    \"Fiona\",\n    \"Howard\",\n    \"Jack\",\n    \"Larry\",\n    };\n}\n```\n\n## \u003ca name=\"requirements-to-run-the-demo\"\u003e\u003c/a\u003eRequirements to run the demo ##\n\n* [Visual Studio 2017](https://visualstudio.microsoft.com/downloads/) or [Visual Studio for Mac](https://visualstudio.microsoft.com/vs/mac/).\n* Xamarin add-ons for Visual Studio (available via the Visual Studio installer).\n\n## \u003ca name=\"troubleshooting\"\u003e\u003c/a\u003eTroubleshooting ##\n### Path too long exception\nIf you are facing path too long exception when building this example project, close Visual Studio and rename the repository to short and build the project.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyncfusionexamples%2Fxamarin-datasource-getting-started","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyncfusionexamples%2Fxamarin-datasource-getting-started","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyncfusionexamples%2Fxamarin-datasource-getting-started/lists"}