restructure project for part 2
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
namespace Hyperbar.Widget.MediaController.Windows;
|
||||
|
||||
public class MediaControllerViewModelFactory(IServiceFactory service) :
|
||||
IFactory<MediaController, MediaControllerViewModel?>
|
||||
{
|
||||
public MediaControllerViewModel? Create(MediaController value)
|
||||
{
|
||||
if (service.Create<MediaControllerViewModel>()
|
||||
is MediaControllerViewModel widgetComponentViewModel)
|
||||
{
|
||||
return widgetComponentViewModel;
|
||||
}
|
||||
|
||||
return default;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user