{"id":22166892,"url":"https://github.com/bushero/nanomvvm","last_synced_at":"2025-03-24T16:48:32.321Z","repository":{"id":132423837,"uuid":"439527815","full_name":"BusHero/NanoMVVM","owner":"BusHero","description":"An unobtrusive MVVM Library","archived":false,"fork":false,"pushed_at":"2021-12-21T17:13:06.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T21:54:52.832Z","etag":null,"topics":["mvvm"],"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/BusHero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2021-12-18T04:31:52.000Z","updated_at":"2021-12-22T08:08:29.000Z","dependencies_parsed_at":"2023-07-24T01:31:08.615Z","dependency_job_id":null,"html_url":"https://github.com/BusHero/NanoMVVM","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusHero%2FNanoMVVM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusHero%2FNanoMVVM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusHero%2FNanoMVVM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusHero%2FNanoMVVM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BusHero","download_url":"https://codeload.github.com/BusHero/NanoMVVM/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245315287,"owners_count":20595216,"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":["mvvm"],"created_at":"2024-12-02T05:25:53.960Z","updated_at":"2025-03-24T16:48:32.300Z","avatar_url":"https://github.com/BusHero.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NanoMVVM\n\nA small collection of stuff I use across WPF projects.\n\n## ViewModelBase/ViewModelBase\u003cT\u003e\n\nThe base class for all view models.\nUse the generic version.\nImplements \n\nUsage example:\n\n```c#\npublic class MyViewModel : ViewModelBase\u003cMyViewModel\u003e\n{\n\tprivate int foo;\n\n\tpublic int Foo { get =\u003e foo; set =\u003e Set(ref foo, value); }\n\n\tpublic MyViewModel\n\t{\n\t\tSubscribePropertyChanged(nameof(Foo), () =\u003e { /* Do something */ });\n\t\tSubscribePropertyChanged(nameof(Foo), (MyViewModel myViewModel) =\u003e { /* Do something */});\n\t\tSubscribePropertyChanged(nameof(Foo), HandleFooChanged);\n\t\tSubscribePropertyChanged(nameof(Foo), HandleFooChangedWithArgument);\n\t}\n\n\tprivate void HandleFooChanged()\n\t{\n\t\t// Do something\n\t}\n\n\tprivate void HandleFooChangedWithArgument(MyViewModel myViewModel)\n\t{\n\t\t// Do something\n\t}\n}\n```\n\n## Commands\n\nPackage provide utility methods to create custom commands through the Commands utility class.\nThe method through which a command is created is CreateCommand(...).\nIt has a number of overrides to create command in a variaty of scenarios.\n\nExamples:\n```c#\n\nICommand command = Commands.CreateCommand(() =\u003e { /* Do something ignoring the argument */});\nICommand commandWithObjectArgument = Commands.CreateCommand((object arg) =\u003e { /* Do something */});\nICommand commandWithStronglyTypedArgument = Commands.CreateCommand\u003cT\u003e((T arg) =\u003e { /* Do something */});\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbushero%2Fnanomvvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbushero%2Fnanomvvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbushero%2Fnanomvvm/lists"}