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