Commit dc5e99ce authored by Martin Tvarožek's avatar Martin Tvarožek
Browse files

docs: add documentation to controls

parent b803db99
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4,6 +4,11 @@ using Avalonia.Controls;

namespace GarrigueGamesLauncher.Controls;


/// <summary>
/// A navigation control providing "Back" and "Forward" arrow buttons.
/// It exposes commands and state indicators for enabling or disabling navigation.
/// </summary>
public class BackForwardArrows : ContentControl
{
    public static readonly StyledProperty<ICommand?> GoBackCommandProperty =
+5 −0
Original line number Diff line number Diff line
@@ -10,6 +10,11 @@ using Popup = Avalonia.Controls.Primitives.Popup;

namespace GarrigueGamesLauncher.Controls;

/// <summary>
/// A dropdown control that displays a list of genre tag checkbox items.
/// Provides a toggle button to show/hide the dropdown and exposes a command
/// that is executed whenever any checkbox item changes state.
/// </summary>
public partial class CheckboxDropdown : ContentControl
{
    private Popup? _popup;
+4 −0
Original line number Diff line number Diff line
@@ -5,6 +5,10 @@ using Avalonia.Media;

namespace GarrigueGamesLauncher.Controls;

/// <summary>
/// A simple grid control for displaying a collection of images in a grid format.
/// Used on game pages.
/// </summary>
public class GalleryGrid : ContentControl
{
    public static readonly StyledProperty<ICollection<IImage>> ImagesSourceProperty =
+4 −0
Original line number Diff line number Diff line
@@ -5,6 +5,10 @@ using GarrigueGamesLauncher.ViewModels;

namespace GarrigueGamesLauncher.Controls;

/// <summary>
/// A grid control for displaying a collection of game cards on the Library and Discover pages.
/// Each game card is represented as a <see cref="GameCardViewModel"/> containing additional logic.
/// </summary>
public class GameGrid : ContentControl
{
    public static readonly StyledProperty<ObservableCollection<GameCardViewModel>> GamesSourceProperty =
+4 −0
Original line number Diff line number Diff line
@@ -4,6 +4,10 @@ using Avalonia.Media;

namespace GarrigueGamesLauncher.Controls;

/// <summary>
/// A simple control for displaying a single hero image with a gradient transition
/// into the rest of the page content
/// </summary>
public class HeroImage : ContentControl
{
    public static readonly StyledProperty<IImage> ImageProperty =
Loading