using Avalonia; using Avalonia.Controls; using Avalonia.Input; using Avalonia.Markup.Xaml; using StabilityMatrix.Avalonia.ViewModels.Dialogs; using StabilityMatrix.Core.Processes; namespace StabilityMatrix.Avalonia.Views.Dialogs; public partial class DownloadResourceDialog : UserControl { public DownloadResourceDialog() { InitializeComponent(); } private void InitializeComponent() { AvaloniaXamlLoader.Load(this); } private void LicenseButton_OnTapped(object? sender, TappedEventArgs e) { var url = ((DownloadResourceViewModel)DataContext!).Resource.LicenseUrl; ProcessRunner.OpenUrl(url!.ToString()); } }