Class StoreLinkViewModel
- Namespace
- McServerLauncher.ViewModels
- Assembly
- McServerLauncher.dll
A dependency or a related project: a card that opens its own details page.
public class StoreLinkViewModel : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging
- Inheritance
-
StoreLinkViewModel
- Implements
- Inherited Members
Constructors
StoreLinkViewModel(ServerModsViewModel, StoreItem, string, bool)
public StoreLinkViewModel(ServerModsViewModel parent, StoreItem item, string badge = "", bool withTagline = false)
Parameters
parentServerModsViewModelitemStoreItembadgestringwithTaglinebool
Properties
Badge
Optional label above the summary, e.g. whether a dependency is required.
public string Badge { get; }
Property Value
HasBadge
public bool HasBadge { get; }
Property Value
HasIcon
public bool HasIcon { get; }
Property Value
HasTagline
public bool HasTagline { get; }
Property Value
Icon
[ExcludeFromCodeCoverage]
public Bitmap? Icon { get; set; }
Property Value
- Bitmap
OpenCommand
Gets an IRelayCommand instance wrapping McServerLauncher.ViewModels.StoreLinkViewModel.Open().
[ExcludeFromCodeCoverage]
public IRelayCommand OpenCommand { get; }
Property Value
Summary
What the project does, in the user's language.
public string Summary { get; }
Property Value
Tagline
The author's own line, when it adds something. Empty otherwise.
public string Tagline { get; }
Property Value
Title
The project's own name. Never translated: it is how the user will find it on Modrinth, and it is the name of the .jar that ends up in the server's folder.
public string Title { get; }