Made improvements on loading photos
This commit is contained in:
@@ -1,16 +1,20 @@
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Input;
|
||||
using Avalonia.Xaml.Interactions.DragAndDrop;
|
||||
using Photos.Models;
|
||||
using Photos.ViewModels;
|
||||
|
||||
namespace Photos.Views;
|
||||
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
private IFolderPickerService _folderPickerService;
|
||||
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
DataContext = new MainWindowViewModel();
|
||||
_folderPickerService = new FolderPickerService(this);
|
||||
DataContext = new MainWindowViewModel(_folderPickerService);
|
||||
}
|
||||
|
||||
public void DropHandler(object sender, DragEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user