{"id":22678378,"url":"https://github.com/vnau/kelary.infrastructure","last_synced_at":"2026-06-23T13:32:52.446Z","repository":{"id":90915769,"uuid":"111005609","full_name":"vnau/Kelary.Infrastructure","owner":"vnau","description":"Another WPF infrastructure","archived":false,"fork":false,"pushed_at":"2024-05-30T22:45:38.000Z","size":93,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-19T14:02:23.944Z","etag":null,"topics":["framework","infrastructure","wpf"],"latest_commit_sha":null,"homepage":null,"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/vnau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-11-16T18:09:51.000Z","updated_at":"2024-05-30T22:45:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"d456b19e-3106-4abe-a81f-7e2d97ef9580","html_url":"https://github.com/vnau/Kelary.Infrastructure","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/vnau/Kelary.Infrastructure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnau%2FKelary.Infrastructure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnau%2FKelary.Infrastructure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnau%2FKelary.Infrastructure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnau%2FKelary.Infrastructure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vnau","download_url":"https://codeload.github.com/vnau/Kelary.Infrastructure/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnau%2FKelary.Infrastructure/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271601988,"owners_count":24788165,"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-22T02:00:08.480Z","response_time":65,"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":["framework","infrastructure","wpf"],"created_at":"2024-12-09T18:15:00.185Z","updated_at":"2026-06-23T13:32:52.397Z","avatar_url":"https://github.com/vnau.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kelary Infrastructure\n[![Nuget Version](https://img.shields.io/nuget/v/Kelary.Infrastructure.svg)](https://www.nuget.org/packages/Kelary.Infrastructure)\n\nKelary Infrastructure provides essential infrastructure components and helpers for developing WPF applications. This library includes various utilities designed to simplify common tasks in WPF development.\n\n## Features\n\n- **Converters**: A collection of converters for common data transformations.\n- **Markup Style Extensions**: Enhancements to XAML markup for cleaner and more maintainable code.\n- **Collections**:\n  - `ObservableDictionary`: A dictionary that notifies listeners of dynamic changes.\n  - `DeepObservableCollection`: An observable collection that tracks changes within nested collections.\n- **Services**:\n  - **File Dialog Service**: Simplifies file selection dialogs.\n  - **Window Navigation Service**: Manages window navigation within an application.\n  - **Page Navigation Service**: Handles navigation between pages.\n\n## Installation\n\nYou can install Kelary Infrastructure via NuGet:\n\n```sh\ndotnet add package Kelary.Infrastructure\n```\n\nOr through the NuGet Package Manager in Visual Studio.\n\n## Usage\n\n### Converters\n\nKelary Infrastructure includes various converters for common tasks. Here’s an example of how to use a converter in XAML:\n\n```xaml\n\u003cWindow xmlns:infra=\"clr-namespace:Kelary.Infrastructure.Converters;assembly=Kelary.Infrastructure\"\u003e\n    \u003cWindow.Resources\u003e\n        \u003cinfra:BoolToVisibilityConverter x:Key=\"BoolToVisibilityConverter\"/\u003e\n    \u003c/Window.Resources\u003e\n    \u003cGrid\u003e\n        \u003cTextBlock Visibility=\"{Binding IsVisible, Converter={StaticResource BoolToVisibilityConverter}}\" Text=\"Hello, World!\"/\u003e\n    \u003c/Grid\u003e\n\u003c/Window\u003e\n```\n\n### ObservableDictionary\n\nObservableDictionary can be used in place of a regular dictionary when you need to notify listeners of changes:\n```csharp\nusing Kelary.Infrastructure.Collections;\n\nvar dictionary = new ObservableDictionary\u003cstring, string\u003e();\ndictionary.Add(\"key\", \"value\");\ndictionary.CollectionChanged += (s, e) =\u003e \n{\n    // Handle changes\n};\n```\n\n### DeepObservableCollection\n\nDeepObservableCollection tracks changes within nested collections:\n```csharp\nusing Kelary.Infrastructure.Collections;\nusing System.Collections.ObjectModel;\n\nvar nestedCollection = new DeepObservableCollection\u003cObservableCollection\u003cstring\u003e\u003e\n{\n    new ObservableCollection\u003cstring\u003e { \"Item1\", \"Item2\" },\n    new ObservableCollection\u003cstring\u003e { \"Item3\", \"Item4\" }\n};\nnestedCollection.CollectionChanged += (s, e) =\u003e\n{\n    // Handle changes\n};\n```\n\n### File Dialog Service\n\nSimplify file dialogs with the File Dialog Service:\n\n```csharp\nusing Kelary.Infrastructure.Services;\n\nvar fileDialogService = new FileDialogService();\nstring filePath = fileDialogService.OpenFileDialog(\"Select a file\", \"Text Files|*.txt\");\n```\n\n### Window Navigation Service\n\nManage window navigation within your application:\n```csharp\nusing Kelary.Infrastructure.Services;\nusing System.Windows;\n\npublic partial class MainWindow : Window\n{\n    private readonly WindowNavigationService _navigationService;\n\n    public MainWindow()\n    {\n        InitializeComponent();\n        _navigationService = new WindowNavigationService(this);\n    }\n\n    private void OpenNewWindow()\n    {\n        var newWindow = new AnotherWindow();\n        _navigationService.Navigate(newWindow);\n    }\n}\n```\n\n### Page Navigation Service\n\nHandle page navigation within a Frame control:\n```csharp\nusing Kelary.Infrastructure.Services;\nusing System.Windows.Controls;\n\npublic partial class MainPage : Page\n{\n    private readonly PageNavigationService _navigationService;\n\n    public MainPage()\n    {\n        InitializeComponent();\n        _navigationService = new PageNavigationService(this.NavigationService);\n    }\n\n    private void NavigateToAnotherPage()\n    {\n        var anotherPage = new AnotherPage();\n        _navigationService.Navigate(anotherPage);\n    }\n}\n```\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvnau%2Fkelary.infrastructure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvnau%2Fkelary.infrastructure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvnau%2Fkelary.infrastructure/lists"}