Added the abilty to load configuration sections using * pattern

This commit is contained in:
TheXamlGuy
2024-04-24 23:08:58 +01:00
parent 5ded324d1a
commit d799eab511
5 changed files with 166 additions and 15 deletions
+2 -2
View File
@@ -32,8 +32,8 @@ public class FrameHandler(INavigationContext navigationContext) :
if (control.DataContext is object content)
{
if (content is IPrimaryConfirmation confirmNavigation &&
!await confirmNavigation.Confirm())
if (content is IConfirmation confirmation &&
!await confirmation.Confirm())
{
args.Cancel = true;
}
+2 -8
View File
@@ -6,13 +6,7 @@ namespace Toolkit.Avalonia;
public class NavigationPageFactory :
INavigationPageFactory
{
public Control? GetPage(Type srcType)
{
return default;
}
public Control? GetPage(Type srcType) => default;
public Control GetPageFromObject(object target)
{
return (Control)target;
}
public Control GetPageFromObject(object target) => (Control)target;
}