Files
Hyperbar/Hyperbar.Windows/Lifecycles/ConfigurationChangedHandler.cs
T
TheXamlGuy 2f22c81384 WIP
2024-01-17 17:16:50 +00:00

15 lines
480 B
C#

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