code sweep
This commit is contained in:
@@ -5,7 +5,7 @@ using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||
using Toolkit.Framework.Foundation;
|
||||
|
||||
namespace Toolkit.Foundation.Avalonia
|
||||
{
|
||||
{
|
||||
public static class IServiceCollectionExtensions
|
||||
{
|
||||
public static IServiceCollection AddNavigation(this IServiceCollection serviceCollection)
|
||||
@@ -19,4 +19,4 @@ namespace Toolkit.Foundation.Avalonia
|
||||
return serviceCollection;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -408,7 +408,6 @@ public class NavigateExtension : TriggerExtension
|
||||
routeBinding = route.ToBinding();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protected override void OnInvoked(object sender, EventArgs args)
|
||||
@@ -438,9 +437,11 @@ public class NavigateExtension : TriggerExtension
|
||||
parameters.Add(keyValuePair);
|
||||
}
|
||||
break;
|
||||
|
||||
case IEventParameter eventParameter:
|
||||
parameters.AddRange(eventParameter.GetValues(args));
|
||||
break;
|
||||
|
||||
default:
|
||||
if (parameter.ToBinding() is Binding defaultDinding)
|
||||
{
|
||||
@@ -475,7 +476,6 @@ public class NavigateExtension : TriggerExtension
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
base.OnInvoked(sender, args);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using FluentAvalonia.UI.Controls;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Controls;
|
||||
using FluentAvalonia.UI.Controls;
|
||||
|
||||
namespace Toolkit.Foundation.Avalonia;
|
||||
|
||||
@@ -14,4 +14,4 @@ internal class NavigationPageFactory : INavigationPageFactory
|
||||
{
|
||||
return (IControl)target;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -36,4 +36,4 @@ public class NavigationRouteHandler : IRequestHandler<NavigationRoute>
|
||||
descriptors.Add(new NavigationRouteDescriptor(request.Name, request.Route));
|
||||
return default;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,4 @@
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
||||
namespace Toolkit.Framework.Foundation;
|
||||
|
||||
@@ -26,4 +24,4 @@ public class ConfigurationWriter<TConfiguration> : IConfigurationWriter<TConfigu
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user