Add KeyBindingBehavior

This commit is contained in:
TheXamlGuy
2024-04-22 22:30:57 +01:00
parent 5cb7ea538e
commit 7fa80371a4
16 changed files with 77 additions and 32 deletions
+4 -5
View File
@@ -3,10 +3,9 @@
public class ComponentScopeProvider(IComponentScopeCollection scopes) :
IComponentScopeProvider
{
public IServiceProvider? Get(string name)
public ComponentScopeDescriptor? Get(string key)
{
return scopes.TryGetValue(name,
out IServiceProvider? scope) ? scope : default;
return scopes.FirstOrDefault(x => x.Key == key) is ComponentScopeDescriptor
descriptor ? descriptor : default;
}
}
}