-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move custom handlers to toolkit configuration method
- Loading branch information
Showing
9 changed files
with
73 additions
and
40 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
src/Dollet.Presentation/Maui/PlatformSpecifics/Handlers/CustomDatePickerHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
namespace Dollet.PlatformSpecifics.Handlers | ||
{ | ||
internal partial class CustomDatePickerHandler { } | ||
} |
4 changes: 4 additions & 0 deletions
4
src/Dollet.Presentation/Maui/PlatformSpecifics/Handlers/CustomPickerHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
namespace Dollet.PlatformSpecifics.Handlers | ||
{ | ||
internal partial class CustomPickerHandler { } | ||
} |
4 changes: 4 additions & 0 deletions
4
src/Dollet.Presentation/Maui/PlatformSpecifics/Renderers/CustomShellRenderer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
namespace Dollet.PlatformSpecifics.Renderers | ||
{ | ||
internal partial class CustomShellRenderer { } | ||
} |
20 changes: 20 additions & 0 deletions
20
src/Dollet.Presentation/Maui/Platforms/Android/Handlers/CustomDatePickerHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Android.Content.Res; | ||
using Microsoft.Maui.Controls.Compatibility.Platform.Android; | ||
using Microsoft.Maui.Handlers; | ||
using Microsoft.Maui.Platform; | ||
using Color = Android.Graphics.Color; | ||
|
||
namespace Dollet.PlatformSpecifics.Handlers | ||
{ | ||
internal partial class CustomDatePickerHandler : DatePickerHandler | ||
{ | ||
protected override void ConnectHandler(MauiDatePicker platformView) | ||
{ | ||
base.ConnectHandler(platformView); | ||
|
||
platformView.Background = null; | ||
platformView.SetBackgroundColor(Color.Transparent); | ||
platformView.BackgroundTintList = ColorStateList.ValueOf(Colors.Transparent.ToAndroid()); | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/Dollet.Presentation/Maui/Platforms/Android/Handlers/CustomPickerHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Android.Content.Res; | ||
using Microsoft.Maui.Controls.Compatibility.Platform.Android; | ||
using Microsoft.Maui.Handlers; | ||
using Microsoft.Maui.Platform; | ||
using Color = Android.Graphics.Color; | ||
|
||
namespace Dollet.PlatformSpecifics.Handlers | ||
{ | ||
internal partial class CustomPickerHandler : PickerHandler | ||
{ | ||
protected override void ConnectHandler(MauiPicker platformView) | ||
{ | ||
base.ConnectHandler(platformView); | ||
|
||
platformView.Background = null; | ||
platformView.SetBackgroundColor(Color.Transparent); | ||
platformView.BackgroundTintList = ColorStateList.ValueOf(Colors.Transparent.ToAndroid()); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters