namespace NexusShell.Views;

using System.Windows;
using System.Windows.Input;
using NexusShell.ViewModels;

public partial class NexusDesktopView
{
    public NexusDesktopView()
    {
        InitializeComponent();
    }

    private void SearchBar_OnMouseDown(object sender, MouseButtonEventArgs e)
    {
        if (DataContext is DesktopViewModel vm && vm.OpenLauncherCommand.CanExecute(null))
        {
            vm.OpenLauncherCommand.Execute(null);
        }
    }
}