mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
UI - Move profile editor into Profile screen, profile page no longer always has to show the editor
21 lines
563 B
C#
21 lines
563 B
C#
using Avalonia.Controls;
|
|
using Avalonia.Interactivity;
|
|
using Avalonia.ReactiveUI;
|
|
using Avalonia.VisualTree;
|
|
|
|
namespace Artemis.UI.Screens.Profile.ProfileEditor.MenuBar;
|
|
|
|
public partial class MenuBarView : ReactiveUserControl<MenuBarViewModel>
|
|
{
|
|
public MenuBarView()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
|
|
private void MenuBase_OnMenuClosed(object? sender, RoutedEventArgs e)
|
|
{
|
|
ProfileEditorView? profileEditorView = this.FindAncestorOfType<Window>().FindDescendantOfType<ProfileEditorView>();
|
|
profileEditorView?.Focus();
|
|
}
|
|
} |