This commit is contained in:
Meik
2025-11-11 11:03:42 +01:00
commit dc3e8a2e4c
582 changed files with 191465 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<UserControl x:Class="F4SD_AdaptableIcon_Export.User_Controls.IconGrid"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ico="clr-namespace:FasdDesktopUi.Basics.UserControls.AdaptableIcon;assembly=F4SD-AdaptableIcon"
xmlns:local="clr-namespace:F4SD_AdaptableIcon_Export.User_Controls"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800"
DataContext="{Binding RelativeSource={RelativeSource Self}}">
<UserControl.Resources>
<BooleanToVisibilityConverter x:Key="BooleanToVisibility"/>
</UserControl.Resources>
<StackPanel x:Name="GridCollection">
<ItemsControl ItemsSource="{Binding IconInformation}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<ico:AdaptableIcon x:Name="adaptableIcon" ToolTip="{Binding IconName}" Tag="{Binding IconName}" SelectedInternIcon="{Binding InternIcon}" SelectedMaterialIcon="{Binding MaterialIcon}" Visibility="{Binding IsVisible, Converter = {StaticResource BooleanToVisibility}}" Style="{DynamicResource GridIconStyle}"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</StackPanel>
</UserControl>

View File

@@ -0,0 +1,48 @@
using F4SD_AdaptableIcon.Enums;
using F4SD_AdaptableIcon_Export.Models;
using MaterialIcons;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace F4SD_AdaptableIcon_Export.User_Controls
{
/// <summary>
/// Interaction logic for IconGrid.xaml
/// </summary>
public partial class IconGrid : UserControl
{
public List<cAdvancedIconInformation> IconInformation
{
get { return (List<cAdvancedIconInformation>)GetValue(IconInformationProperty); }
set { SetValue(IconInformationProperty, value); }
}
// Using a DependencyProperty as the backing store for IconInformation. This enables animation, styling, binding, etc...
public static readonly DependencyProperty IconInformationProperty =
DependencyProperty.Register("IconInformation", typeof(List<cAdvancedIconInformation>), typeof(IconGrid), new PropertyMetadata(null));
public IconGrid()
{
InitializeComponent();
}
}
}