DTC.Core is a reusable C# library built for .NET, designed primarily for use with Avalonia UI applications. It contains a collection of utility classes, commands, extensions, converters, and more to simplify common tasks and promote code reuse across different projects.
This library provides a range of useful functionalities, from file commands and data converters to extensions for various .NET types. It helps streamline operations such as file handling, data conversion, and UI-related tasks.
The core components of this library include:
- Commands: Reusable command patterns for actions such as file open/save.
- Converters: Converters to simplify data transformations (e.g., Markdown to UI elements).
- Extensions: Helper methods that extend the capabilities of core .NET types like String,FileInfo, andEnumerable.
- UI Components: Avalonia-specific components for handling dialogs and dispatching events.
- Utilities: General-purpose utilities like a logger, disposable resources, and periodic actions.
- 
Commands: 
 Contains command patterns likeFileOpenCommand,FileSaveCommand, andRelayCommand. These commands follow the MVVM pattern and are designed to be reusable across different projects.
- 
Converters: 
 Includes converters likeFileInfoToLeafNameConverterandMarkdownToInlinesConverterthat are designed to simplify UI bindings in Avalonia applications.
- 
Extensions: 
 Provides extension methods for core .NET types such asStringExtensions,FileInfoExtensions, andEnumerableExtensionsto make common operations more concise and readable.
- 
UI: 
 Avalonia-specific UI components, including dialog services (DialogService) and message dialogs (MessageDialog.axaml). These components help with displaying dialogs and managing UI interactions.
- 
Validators: 
 Contains custom validation attributes, such asHexStringAttributefor validating hexadecimal strings.
This project is licensed under the MIT License. See the LICENSE file for details.