{"id":22528655,"url":"https://github.com/vkobel/wpf-foundation-framework","last_synced_at":"2026-04-25T16:33:22.372Z","repository":{"id":8348245,"uuid":"9908560","full_name":"vkobel/WPF-Foundation-Framework","owner":"vkobel","description":"This project provide a quick and easy-to-use WPF framework - still in progress","archived":false,"fork":false,"pushed_at":"2013-06-12T13:32:43.000Z","size":3996,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T19:02:49.927Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","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/vkobel.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}},"created_at":"2013-05-07T09:34:01.000Z","updated_at":"2013-10-06T13:08:08.000Z","dependencies_parsed_at":"2022-08-07T03:15:25.979Z","dependency_job_id":null,"html_url":"https://github.com/vkobel/WPF-Foundation-Framework","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/vkobel%2FWPF-Foundation-Framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vkobel%2FWPF-Foundation-Framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vkobel%2FWPF-Foundation-Framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vkobel%2FWPF-Foundation-Framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vkobel","download_url":"https://codeload.github.com/vkobel/WPF-Foundation-Framework/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245972635,"owners_count":20702710,"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-12-07T07:11:39.115Z","updated_at":"2026-04-25T16:33:22.301Z","avatar_url":"https://github.com/vkobel.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"WPF-Foundation-Framework\n========================\n\n\u003e First of all this is a **work in progress**\n\nThis project provide a quick and easy-to-use WPF framework separated into two sub-frameworks:\n**FoundationData** and **FoundationWPF**\n\nMain Features\n-------------\n\n+ The Data framework implements a generic `Repository\u003cTEntity\u003e` that provide standard methods to access and persist POCO form the Entity Framework\t\t\t\t      \n+ Two levels of navigation (with the possiblilty to implement more)\n\t+ Described by the `NavigAttribute` \n\t+ Uses dependency injection via **Ninject**\n+ Instant and automatic ViewModel creation and `ViewModelCollection` right from the `Repository\u003cTEntity\u003e`\n+ Possibility to have the ViewModels implementing `IPreLoadable` to enable asynchronous loading\n+ Each ViewModel is represented by a `ViewModelProxy\u003cTEntity\u003e` which exposes a `BindingData` property to bind to\n\t+ `BindingData` contains all the entity properties as well as the new ones defined in the ViewModel class that inherits from `ViewModelProxy\u003cTEntity\u003e`\n+ The MVVM Framework used here is **MVVM Light Toolkit**\n\nSamples\n-------\n\n#### Simplest possible ViewModel\n\nAll ViewModelProxy\u003c\u003e exposes the all proxied properties through `BindingData`.\n\n```cs\nclass PersonViewModel : ViewModelProxy\u003cPerson\u003e {\n   public PersonViewModel(Person p) : base(p) {\n   }\n}\n```\n\n#### A Collection ViewModel to display a list of person and their details, with navigation `Humans -\u003e Person`\n\nEvery ViewModelCollection exposes a public member `CollectionView`.\n\n```cs\n[Navig(\"Humans\", \"Person\")]\nclass PersonCollectionViewModel : ViewModelCollection\u003cPerson, PersonViewModel\u003e {\n}\n```\n\n#### Usage in the view\n\nAccess a simple property:\n```\n\u003c(...) Text=\"{Binding BindingData.Lastname}\" /\u003e\n```\n\nAccess a simple through the collection:\n```\n\u003c(...) Text=\"{Binding CollectionView/BindingData.Lastname}\" /\u003e\n```\n\nBind to the collection:\n```\n\u003c(...) ItemsSource=\"{Binding CollectionView}\" /\u003e\n```\n\nMore samples will come ;)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvkobel%2Fwpf-foundation-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvkobel%2Fwpf-foundation-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvkobel%2Fwpf-foundation-framework/lists"}