<UserControl
    x:Class="JumpPoint.Uwp.Controls.AttributesDetails"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:JumpPoint.Uwp.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:winui="using:Microsoft.UI.Xaml.Controls"
    xmlns:io="using:System.IO"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400"
    x:Name="root">

    <winui:ItemsRepeater ItemsSource="{x:Bind Attributes}">
        <winui:ItemsRepeater.Layout>
            <winui:StackLayout Orientation="Horizontal" />
        </winui:ItemsRepeater.Layout>
        <DataTemplate x:DataType="io:FileAttributes">
            <local:AttributeIcon Attribute="{x:Bind}"
                                 Data="{Binding ElementName=root, Path=Data, Mode=OneWay}"
                                 IconWidth="20"
                                 IconHeight="20" />
        </DataTemplate>
    </winui:ItemsRepeater>
</UserControl>
