Crunchy-Downloader/CRD/Views/DownloadsPageView.axaml.cs

24 lines
610 B
C#
Raw Permalink Normal View History

2024-05-04 15:35:32 +00:00
using Avalonia;
using Avalonia.Controls;
using Avalonia.Interactivity;
using CRD.Downloader;
using CRD.ViewModels;
namespace CRD.Views;
public partial class DownloadsPageView : UserControl{
public DownloadsPageView(){
InitializeComponent();
}
protected override void OnDetachedFromVisualTree(VisualTreeAttachmentEventArgs e){
base.OnDetachedFromVisualTree(e);
if (DataContext is DownloadsPageViewModel vm){
vm.Cleanup();
}
}
private void Button_OnClick(object? sender, RoutedEventArgs e){
// Crunchy.Instance.TestMethode();
}
}