Files
Hyperbar/Hyperbar.Windows/Lifecycles/ConfigurationChangedHandler.cs
T
TheXamlGuy 4edb0a7eb5 WIP
2024-02-01 22:13:45 +00:00

15 lines
436 B
C#

using Hyperbar.Controls.Windows;
namespace Hyperbar.Windows;
public class AppConfigurationChangedHandler(DesktopBar desktopFlyout,
AppConfiguration configuration) :
INotificationHandler<Changed<AppConfiguration>>
{
public Task Handle(Changed<AppConfiguration> notification, CancellationToken cancellationToken)
{
desktopFlyout.Placement = configuration.Placement;
return Task.CompletedTask;
}
}