Added the abilty to load configuration sections using * pattern
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user