Files
Hyperbar/Hyperbar.Windows/ConfigurationChangedHandler.cs
T
TheXamlGuy 731cf3cdf3 More work
2024-02-04 14:08:38 +00:00

15 lines
447 B
C#

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