Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Housekeeping] Use IPropertyMapper in some pending handlers #6949

Merged
merged 1 commit into from
May 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Core/src/Handlers/IndicatorView/IndicatorViewHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Microsoft.Maui.Handlers
{
public partial class IndicatorViewHandler : IIndicatorViewHandler
{
public static PropertyMapper<IIndicatorView, IIndicatorViewHandler> Mapper = new(ViewMapper)
public static IPropertyMapper<IIndicatorView, IIndicatorViewHandler> Mapper = new PropertyMapper<IIndicatorView, IIndicatorViewHandler>(ViewMapper)
{
[nameof(IIndicatorView.Count)] = MapCount,
[nameof(IIndicatorView.Position)] = MapPosition,
Expand All @@ -36,7 +36,7 @@ public IndicatorViewHandler() : base(Mapper)
{
}

public IndicatorViewHandler(PropertyMapper mapper) : base(mapper ?? Mapper)
public IndicatorViewHandler(IPropertyMapper mapper) : base(mapper ?? Mapper)
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Microsoft.Maui.Handlers
{
public partial class NavigationViewHandler : INavigationViewHandler
{
public static PropertyMapper<IStackNavigationView, INavigationViewHandler> Mapper = new(ViewMapper)
public static IPropertyMapper<IStackNavigationView, INavigationViewHandler> Mapper = new PropertyMapper<IStackNavigationView, INavigationViewHandler>(ViewMapper)
{
};

Expand All @@ -28,7 +28,7 @@ public NavigationViewHandler() : base(Mapper, CommandMapper)
{
}

public NavigationViewHandler(PropertyMapper? mapper = null) : base(mapper ?? Mapper, CommandMapper)
public NavigationViewHandler(IPropertyMapper? mapper = null) : base(mapper ?? Mapper, CommandMapper)
{
}

Expand Down
4 changes: 2 additions & 2 deletions src/Core/src/Handlers/RefreshView/RefreshViewHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Microsoft.Maui.Handlers
{
public partial class RefreshViewHandler : IRefreshViewHandler
{
public static PropertyMapper<IRefreshView, IRefreshViewHandler> Mapper = new PropertyMapper<IRefreshView, IRefreshViewHandler>(ViewHandler.ViewMapper)
public static IPropertyMapper<IRefreshView, IRefreshViewHandler> Mapper = new PropertyMapper<IRefreshView, IRefreshViewHandler>(ViewHandler.ViewMapper)
{
[nameof(IRefreshView.IsRefreshing)] = MapIsRefreshing,
[nameof(IRefreshView.Content)] = MapContent,
Expand All @@ -31,7 +31,7 @@ public RefreshViewHandler() : base(Mapper, CommandMapper)
{
}

public RefreshViewHandler(PropertyMapper? mapper = null) : base(mapper ?? Mapper)
public RefreshViewHandler(IPropertyMapper? mapper = null) : base(mapper ?? Mapper)
{
}

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/WebView/WebViewHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace Microsoft.Maui.Handlers
{
public partial class WebViewHandler : IWebViewHandler
{
public static PropertyMapper<IWebView, IWebViewHandler> Mapper = new PropertyMapper<IWebView, IWebViewHandler>(ViewHandler.ViewMapper)
public static IPropertyMapper<IWebView, IWebViewHandler> Mapper = new PropertyMapper<IWebView, IWebViewHandler>(ViewHandler.ViewMapper)
{
[nameof(IWebView.Source)] = MapSource,
#if __ANDROID__
Expand Down