{"id":15163428,"url":"https://github.com/c20chin/wpfjsonplaceholderapp","last_synced_at":"2026-02-10T02:05:50.830Z","repository":{"id":255397970,"uuid":"845721085","full_name":"c20chin/WpfJsonPlaceholderApp","owner":"c20chin","description":"This WPF (Windows Presentation Foundation) application fetches and displays 100 posts from the JSONPlaceholder API.","archived":false,"fork":false,"pushed_at":"2024-08-23T10:39:38.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T13:44:42.682Z","etag":null,"topics":["csharp","dotnet-core","wpf"],"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/c20chin.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":"2024-08-21T19:52:58.000Z","updated_at":"2024-08-29T16:23:40.000Z","dependencies_parsed_at":"2024-08-29T19:17:45.549Z","dependency_job_id":null,"html_url":"https://github.com/c20chin/WpfJsonPlaceholderApp","commit_stats":null,"previous_names":["c20chin/wpfjsonplaceholderapp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/c20chin/WpfJsonPlaceholderApp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c20chin%2FWpfJsonPlaceholderApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c20chin%2FWpfJsonPlaceholderApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c20chin%2FWpfJsonPlaceholderApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c20chin%2FWpfJsonPlaceholderApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c20chin","download_url":"https://codeload.github.com/c20chin/WpfJsonPlaceholderApp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c20chin%2FWpfJsonPlaceholderApp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270602456,"owners_count":24614260,"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-08-15T02:00:12.559Z","response_time":110,"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":["csharp","dotnet-core","wpf"],"created_at":"2024-09-27T02:42:10.927Z","updated_at":"2026-02-10T02:05:50.792Z","avatar_url":"https://github.com/c20chin.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WPF JSONPlaceholder App\n\n## Overview\n\nThis WPF (Windows Presentation Foundation) application fetches and displays 100 posts from the [JSONPlaceholder API](https://jsonplaceholder.typicode.com/). The application presents each post in a square button arranged in a 10x10 grid. Users can toggle between viewing post IDs and user IDs by clicking on any button.\n\n## Features\n\n- Displays 100 posts in a 10x10 grid.\n- Each button initially shows the post ID.\n- Clicking a button toggles the display between post IDs and user IDs.\n- Responsive layout that adjusts button size based on window size.\n- Smooth animations for button color changes on hover and click.\n\n## App Demo\nhttps://github.com/user-attachments/assets/1777bba5-bbec-4acd-8b8f-45ee461cbf53\n\n\n## Getting Started\n\n### Prerequisites\n\n- [.NET Core SDK](https://dotnet.microsoft.com/download) (includes .NET Core Runtime).\n- [Visual Studio](https://visualstudio.microsoft.com/) or another IDE that supports .NET Core and WPF development.\n- **Packages**:\n  - `Newtonsoft.Json` for JSON parsing.\n  \n### Installation\n\n1. **Clone the Repository**:\n   ```bash\n   git clone https://github.com/c20chin/WpfJsonPlaceholderApp.git\n   ```\n\n2. **Open the Project**:\n    - Launch Visual Studio.\n    - Go to `File` \u003e `Open` \u003e `Project/Solution`.\n    - Navigate to the cloned repository directory and select the `.sln` file.\n\n3. **Build and Run**:\n    - In Visual Studio, go to `Build` \u003e `Build Solution` (or press `Ctrl+Shift+B`).\n    - To run the application, press `F5` or go to `Debug` \u003e `Start Debugging`.\n\n### Usage\n\n1. **Viewing Posts**:\n    - The application will [display 100 posts](https://jsonplaceholder.typicode.com/posts) in a 10x10 grid.\n    - Each button represents a post and initially displays the post ID.\n\n2. **Toggling Between ID and User ID**:\n    - Click on any button to switch the display to the user ID for all buttons.\n    - Click again to switch back to displaying post IDs.\n\n### UI/UX\n\n- **Title**: Displays \"You are looking at Id\" or \"You are looking at UserId\" based on the current display mode.\n- **Styling**: Buttons have hover and click animations for a polished user experience.\n\n## Code Structure\n\n- **`MainWindow.xaml`**: Contains the XAML code for defining the user interface.\n- **`MainWindow.xaml.cs`**: Contains the code-behind for handling the logic of fetching posts, handling button clicks, and updating the UI.\n\n## Acknowledgments\n\n- **JSONPlaceholder API**: A free online REST API for testing and prototyping.\n- **Microsoft**: For providing the .NET Framework and Visual Studio for development.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc20chin%2Fwpfjsonplaceholderapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc20chin%2Fwpfjsonplaceholderapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc20chin%2Fwpfjsonplaceholderapp/lists"}