mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-12 21:38:38 +00:00
24 lines
618 B
C#
24 lines
618 B
C#
using Avalonia.Input;
|
|
using Avalonia.Markup.Xaml;
|
|
using Avalonia.ReactiveUI;
|
|
|
|
namespace Artemis.UI.Screens.ProfileEditor.Properties.Tree;
|
|
|
|
public partial class TreeGroupView : ReactiveUserControl<TreeGroupViewModel>
|
|
{
|
|
public TreeGroupView()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
AvaloniaXamlLoader.Load(this);
|
|
}
|
|
|
|
private void InputElement_OnPointerPressed(object? sender, PointerPressedEventArgs e)
|
|
{
|
|
if (ViewModel != null)
|
|
ViewModel.PropertyGroupViewModel.IsExpanded = !ViewModel.PropertyGroupViewModel.IsExpanded;
|
|
}
|
|
} |