-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Interfaced handlers for Label, NavigationView, Page (#4841)
* wip * interfaced LabelHandler * interfaced NavigationViewHandler * interfaced PageHandler * fix naming * cleanup formatting
- Loading branch information
1 parent
d0f2fe0
commit e23af0b
Showing
19 changed files
with
161 additions
and
112 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#if __IOS__ || MACCATALYST | ||
using PlatformView = Microsoft.Maui.Platform.MauiLabel; | ||
#elif MONOANDROID | ||
using PlatformView = AndroidX.AppCompat.Widget.AppCompatTextView; | ||
#elif WINDOWS | ||
using PlatformView = Microsoft.UI.Xaml.Controls.TextBlock; | ||
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID) | ||
using PlatformView = System.Object; | ||
#endif | ||
|
||
namespace Microsoft.Maui.Handlers | ||
{ | ||
public partial interface ILabelHandler : IViewHandler | ||
{ | ||
new ILabel VirtualView { get; } | ||
new PlatformView PlatformView { get; } | ||
} | ||
} |
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
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
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
18 changes: 18 additions & 0 deletions
18
src/Core/src/Handlers/NavigationPage/INavigationViewHandler.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,18 @@ | ||
#if __IOS__ || MACCATALYST | ||
using PlatformView = UIKit.UIView; | ||
#elif MONOANDROID | ||
using PlatformView = Android.Views.View; | ||
#elif WINDOWS | ||
using PlatformView = Microsoft.UI.Xaml.Controls.Frame; | ||
#elif NETSTANDARD || (NET6_0 && !IOS && !ANDROID) | ||
using PlatformView = System.Object; | ||
#endif | ||
|
||
namespace Microsoft.Maui.Handlers | ||
{ | ||
public partial interface INavigationViewHandler : IViewHandler | ||
{ | ||
new IStackNavigationView VirtualView { get; } | ||
new PlatformView PlatformView { get; } | ||
} | ||
} |
Oops, something went wrong.