{"id":13680062,"url":"https://github.com/runceel/ReactiveProperty","last_synced_at":"2025-04-29T19:32:35.492Z","repository":{"id":21487904,"uuid":"24806748","full_name":"runceel/ReactiveProperty","owner":"runceel","description":"ReactiveProperty provides MVVM and asynchronous support features under Reactive Extensions. Target frameworks are .NET 6+, .NET Framework 4.7.2 and .NET Standard 2.0.","archived":false,"fork":false,"pushed_at":"2025-03-06T08:00:26.000Z","size":54672,"stargazers_count":917,"open_issues_count":4,"forks_count":105,"subscribers_count":52,"default_branch":"main","last_synced_at":"2025-04-28T10:55:44.700Z","etag":null,"topics":["c-sharp","mvvm","reactive-extensions","reactiveproperty","reative","rx","uwp","wpf","xamarin","xaml"],"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/runceel.png","metadata":{"files":{"readme":"README-Android.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","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,"zenodo":null},"funding":{"github":["neuecc","runceel"]}},"created_at":"2014-10-05T02:27:09.000Z","updated_at":"2025-04-25T06:35:52.000Z","dependencies_parsed_at":"2022-08-07T10:00:41.547Z","dependency_job_id":"66b39d31-6ba6-4da5-9b43-e24c4e10d9f3","html_url":"https://github.com/runceel/ReactiveProperty","commit_stats":{"total_commits":1199,"total_committers":31,"mean_commits":38.67741935483871,"dds":0.5871559633027523,"last_synced_commit":"82fd62fad706041e4262270dc7c7c740c085737a"},"previous_names":[],"tags_count":100,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runceel%2FReactiveProperty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runceel%2FReactiveProperty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runceel%2FReactiveProperty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runceel%2FReactiveProperty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/runceel","download_url":"https://codeload.github.com/runceel/ReactiveProperty/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251336577,"owners_count":21573229,"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":["c-sharp","mvvm","reactive-extensions","reactiveproperty","reative","rx","uwp","wpf","xamarin","xaml"],"created_at":"2024-08-02T13:01:12.660Z","updated_at":"2025-04-29T19:32:35.471Z","avatar_url":"https://github.com/runceel.png","language":"C#","funding_links":["https://github.com/sponsors/neuecc","https://github.com/sponsors/runceel"],"categories":["C#","Plugins","Reactive"],"sub_categories":[],"readme":"# ReactiveProperty.XamarinAndroid\nReactiveProperty.XamarinAndroid is MVVM support library for ReactiveProperty + Xamarin.Android environment.\n\n- Xamarin is [here](https://xamarin.com/).\n\n# Features\n\n- OneWay and TwoWay databinding, between View's property and ReactiveProperty.\n- IList, ObservableCollection\u003cT\u003e and ReadOnlyObservableCollection\u003cT\u003e convert to IListAdapter.\n- View classes(ex, Button, TextView...) event provide extension method \"EventName\"AsObservable.\n\n## DataBinding\n\nThis ViewModel class is here.\n```cs\npublic class VM\n{\n  // ViewModel Property\n  public ReactiveProperty\u003cstring\u003e Output { get; set; }\n\n  public VM() { this.Output = new ReactiveProperty(); }\n}\n```\n\n### OneWay databinding.\n\n```cs\nvar vm = new VM();\n\nthis.FindViewById\u003cTextView\u003e(Resource.Id.TextView)\n  .SetBinding(\n    x =\u003e x.Text, // select target property\n    vm.Output); // source property\n```\n\n### TwoWay databinding\n\n```cs\nvar vm = new VM();\n\nthis.FindViewById\u003cEditText\u003e(Resource.Id.EditText)\n  .SetBinding(\n    x =\u003e x.Text, // select target property\n    vm.Output,  // source property\n    x =\u003e x.TextChangedAsObservable().ToUnit()); // update source trigger\n```\n\n### Command binding\nSetCommand extension methods can be found in IObservable \u003cT\u003e.\n```cs\nthis.FindViewById\u003cButton\u003e(Resource.Id.Button)\n  .ClickAsObservable()\n  .SetCommand(vm.AlertCommand);\n```\n\n### Collection binding\nCollection type can convert to IListAdapter.\n```cs\npublic class VM\n{\n  public ReadOnlyReactiveCollection\u003cstring\u003e Values { get; private set; }\n}\n\n\nvar vm = new VM();\nthis.FindViewById\u003cListView\u003e(Resource.Id.ListView)\n    .Adapter = vm.Values.ToAdapter(\n      (index, value) =\u003e LayoutInflator.FromContext(this).Inflate(Android.Resource.Layout.SimpleListItem1) // create view\n      (index, value, view) =\u003e view.FindViewById\u003cTextView\u003e(Android.Resource.Id.Text1).Text = value, // setup view\n      (index, value) =\u003e value.GetHashCode()); // generate id\n```\n\n### many many many... extension methods\n[here](https://github.com/runceel/ReactiveProperty/blob/vNext/Source/ReactiveProperty.Platform.Android/Extensions/ViewEventExtensions.cs)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunceel%2FReactiveProperty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frunceel%2FReactiveProperty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunceel%2FReactiveProperty/lists"}