using System.Diagnostics; using System.Windows.Input; using Avalonia; using Avalonia.Controls; using Avalonia.Markup.Xaml; namespace SPT.Launcher.CustomControls { public partial class ModInfoCard : UserControl { public ModInfoCard() { InitializeComponent(); } private void InitializeComponent() { AvaloniaXamlLoader.Load(this); } public string Author { get => GetValue(AuthorProperty); set => SetValue(AuthorProperty, value); } public static readonly StyledProperty AuthorProperty = AvaloniaProperty.Register(nameof(Author)); public string ModName { get => GetValue(ModNameProperty); set => SetValue(ModNameProperty, value); } public static readonly StyledProperty ModNameProperty = AvaloniaProperty.Register(nameof(ModName)); public string Version { get => GetValue(VersionProperty); set => SetValue(VersionProperty, value); } public static readonly StyledProperty VersionProperty = AvaloniaProperty.Register(nameof(Version)); public bool IsInServer { get => GetValue(IsInServerProperty); set => SetValue(IsInServerProperty, value); } public static readonly StyledProperty IsInServerProperty = AvaloniaProperty.Register(nameof(IsInServer)); public bool IsInProfile { get => GetValue(IsInProfileProperty); set => SetValue(IsInProfileProperty, value); } public static readonly StyledProperty IsInProfileProperty = AvaloniaProperty.Register(nameof(IsInProfile)); public string ModUrl { get => GetValue(ModUrlProperty); set => SetValue(ModUrlProperty, value); } public static readonly StyledProperty ModUrlProperty = AvaloniaProperty.Register(nameof(ModUrl)); public ICommand OpenUrlCommand { get => GetValue(OpenUrlCommandProperty); set => SetValue(OpenUrlCommandProperty, value); } public static readonly StyledProperty OpenUrlCommandProperty = AvaloniaProperty.Register(nameof(OpenUrlCommand)); } }