Tag: prism

Simple Event Aggregator in C#

In this post, I’ll go through the inner workings of Event Aggregators, what it is, how to make one, and how to use it. Consider this another brain-dump of past knowledge to assist you in learning something new, or enhancing what you’ve previously known. This article focus on a single application; in another article, we’ll cover IPC (inter-process communication) in a similar fashion. In C#, an Event Aggregator is a design pattern that facilitates loosely coupled communication between different parts of an application, particularly between components that do not have direct references to each other. It acts as a central hub…

Prism.Avalonia

Prism.Avalonia is a library that extends the Prism framework’s capabilities to Avalonia UI applications. Avalonia UI is a cross-platform .NET UI framework that enables the development of desktop applications for Windows, Linux, and macOS, and also supports mobile and web targets. Prism is a framework designed to help build loosely coupled, maintainable, and testable XAML applications by implementing design patterns such as MVVM (Model-View-ViewModel), dependency injection, commands, and an EventAggregator for messaging. Prism.Avalonia specifically adapts these core Prism functionalities to the Avalonia UI platform, allowing developers to leverage Prism’s structured approach for: To use Prism.Avalonia, both the Prism.Avalonia core package and an associated…