forked from rookiejava/maui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Window lifecycle (dotnet#1754) - Move New Navigation Handler to Core and make it internal (dotnet#1800) - Scrollview handler (dotnet#1669) - ScrollView Resize + Window Handler Resize (dotnet#1676) - Font AutoScalingEnabled (dotnet#1774) - Rename Font Properties (dotnet#1755) - Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819) - IContainer as IList<IView> (dotnet#1724) - Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749) - Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777) - Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829) - Improve Window and AnimationManager (dotnet#1653) - And so on
- Loading branch information
1 parent
e10b19f
commit 1ec65cd
Showing
30 changed files
with
689 additions
and
464 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
src/Compatibility/Core/src/AppHostBuilderExtensions.Tizen.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,34 @@ | ||
using Microsoft.Maui.Hosting; | ||
using Microsoft.Maui.LifecycleEvents; | ||
using Microsoft.Maui.Controls.Compatibility; | ||
|
||
namespace Microsoft.Maui.Controls.Hosting | ||
{ | ||
public static partial class AppHostBuilderExtensions | ||
{ | ||
internal static IAppHostBuilder ConfigureCompatibilityLifecycleEvents(this IAppHostBuilder builder) => | ||
builder.ConfigureLifecycleEvents(events => events.AddTizen(OnConfigureLifeCycle)); | ||
|
||
static void OnConfigureLifeCycle(ITizenLifecycleBuilder tizen) | ||
{ | ||
tizen.OnPreCreate((app) => | ||
{ | ||
// This is the initial Init to set up any system services registered by | ||
// Forms.Init(). This happens before any UI has appeared. | ||
// This creates a dummy MauiContext. | ||
var services = MauiApplication.Current.Services; | ||
MauiContext mauiContext = new MauiContext(services, CoreUIAppContext.GetInstance(MauiApplication.Current)); | ||
ActivationState state = new ActivationState(mauiContext); | ||
Forms.Init(state, new InitializationOptions(MauiApplication.Current) { Flags = InitializationFlags.SkipRenderers, DisplayResolutionUnit = DisplayResolutionUnit.DP() }); | ||
}) | ||
.OnMauiContextCreated((mauiContext) => | ||
{ | ||
// This is the final Init that sets up the real context from the application. | ||
var state = new ActivationState(mauiContext!); | ||
Forms.Init(state); | ||
}); | ||
} | ||
} | ||
} |
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
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
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
Oops, something went wrong.