-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2979 from PrismLibrary/dev/ds/uno-splash-support
- Loading branch information
Showing
8 changed files
with
92 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -204,4 +204,7 @@ FakesAssemblies/ | |
.mfractor/ | ||
|
||
# Jetbrains files | ||
.idea* | ||
.idea* | ||
|
||
# Binlog | ||
*.binlog |
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 |
---|---|---|
@@ -1,12 +1,20 @@ | ||
using Uno.Toolkit; | ||
|
||
namespace HelloWorld.Views; | ||
|
||
/// <summary> | ||
/// An empty page that can be used on its own or navigated to within a Frame. | ||
/// </summary> | ||
public sealed partial class Shell : Page | ||
public sealed partial class Shell : Page, ILoadableShell | ||
{ | ||
public Shell() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
|
||
public ILoadable Source | ||
{ | ||
get => Splash.Source; | ||
set => Splash.Source = value; | ||
} | ||
} |
Binary file not shown.
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,9 @@ | ||
using Uno.Toolkit; | ||
|
||
namespace Prism; | ||
|
||
#nullable enable | ||
public interface ILoadableShell | ||
{ | ||
ILoadable Source { get; set; } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace Prism; | ||
|
||
#nullable enable | ||
internal sealed class PrismShellLoadable : Uno.ILoadable, Uno.Toolkit.ILoadable | ||
{ | ||
public bool IsExecuting { get; private set; } = true; | ||
|
||
public bool IsLoaded { get; private set; } | ||
|
||
public event EventHandler? IsExecutingChanged; | ||
public event EventHandler<EventArgs>? Loaded; | ||
|
||
public void FinishLoading() | ||
{ | ||
IsExecuting = false; | ||
IsLoaded = true; | ||
IsExecutingChanged?.Invoke(this, EventArgs.Empty); | ||
Loaded?.Invoke(this, EventArgs.Empty); | ||
} | ||
} |