-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(performance): improved ui responsibility while switching between …
…pages
- Loading branch information
1 parent
1f7b9d1
commit 76d7b82
Showing
8 changed files
with
186 additions
and
17 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
OpenLyricsClient/Frontend/Events/EventArgs/PageSelectionChangedEventArgs.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,26 @@ | ||
using System; | ||
using Avalonia.Controls; | ||
|
||
namespace OpenLyricsClient.Frontend.Events.EventArgs; | ||
|
||
public class PageSelectionChangedEventArgs : System.EventArgs | ||
{ | ||
private UserControl _fromPage; | ||
private UserControl _toPage; | ||
|
||
public PageSelectionChangedEventArgs(UserControl fromPage, UserControl toPage) | ||
{ | ||
this._fromPage = fromPage; | ||
this._toPage = toPage; | ||
} | ||
|
||
public UserControl FromPage | ||
{ | ||
get => _fromPage; | ||
} | ||
|
||
public UserControl ToPage | ||
{ | ||
get => _toPage; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
OpenLyricsClient/Frontend/Events/EventHandler/PageSelectionChangedEventHandler.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,6 @@ | ||
using System; | ||
using OpenLyricsClient.Frontend.Events.EventArgs; | ||
|
||
namespace OpenLyricsClient.Frontend.Events.EventHandler; | ||
|
||
public delegate void PageSelectionChangedEventHandler(Object sender, PageSelectionChangedEventArgs pageSelectionChanged); |
6 changes: 6 additions & 0 deletions
6
OpenLyricsClient/Frontend/Events/EventHandler/PageSelectionChangedFinishedEventHandler.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,6 @@ | ||
using System; | ||
using OpenLyricsClient.Frontend.Events.EventArgs; | ||
|
||
namespace OpenLyricsClient.Frontend.Events.EventHandler; | ||
|
||
public delegate void PageSelectionChangedFinishedEventHandler(Object sender, PageSelectionChangedEventArgs pageSelectionChanged); |
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.