using System;
using System.Linq;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Layout;
using Avalonia.Media;
using HeroIconsAvalonia.Enums;
using HeroIconsAvalonia.Controls;

namespace IconLibraryDemo;

public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();
        GetIcons();
    }

    void GetIcons()
    {
        var icons = Enum.GetValues(typeof(IconType)).Cast<IconType>()
            .ToList();
        foreach (var icon in icons)
        {
            IconGrid.Children.Add(new HeroIcon
            {
                Margin = new Thickness(18),
                Type = icon
            });
        }

        foreach (var icon in icons)
        {
            IconGrid.Children.Add(new HeroIcon
            {
                Margin = new Thickness(18),
                Type = icon,
                Kind = IconKind.Solid
            });
        }
    }
        
}