<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:monster="clr-namespace:HunterPie.UI.Overlay.Widgets.Monster.Views;assembly=HunterPie.UI"
                    xmlns:converters="clr-namespace:HunterPie.UI.Architecture.Converters;assembly=HunterPie.UI"
                    xmlns:assets="clr-namespace:HunterPie.UI.Architecture.Assets;assembly=HunterPie.UI">
    <converters:CrownToIconConverter x:Key="CrownToIconConverter"/>
    <converters:CrownToVisibilityConverter x:Key="CrownToVisibilityConverter"/>
    <converters:OrientationConverter x:Key="OrientationConverter"/>
    <Style x:Key="STYLE_MONSTERS_WIDGET" TargetType="{x:Type monster:MonstersView}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <ItemsControl ItemsSource="{Binding Monsters, Mode=OneWay}">
                        <ItemsControl.ItemTemplate>
                            <DataTemplate>
                                <Border Background="#30000000"
                                        BorderBrush="#70000000"
                                        BorderThickness="1"
                                        CornerRadius="5"
                                        Padding="15"
                                        Margin="0,10,0,0">
                                    <StackPanel Orientation="Horizontal">
                                        <Grid Width="45"
                                              Height="{Binding ActualWidth, RelativeSource={RelativeSource Self}}">
                                            <Rectangle Fill="#FF191A1B"
                                                       RenderTransformOrigin="0.5,0.5"
                                                       Stroke="{StaticResource Gray@400}">
                                                <Rectangle.RenderTransform>
                                                    <TransformGroup>
                                                        <RotateTransform Angle="45"/>
                                                    </TransformGroup>
                                                </Rectangle.RenderTransform>
                                            </Rectangle>
                                            <Image Source="{Binding Icon, Mode=OneWay, TargetNullValue={assets:MonsterIcon Rise_Unknown}}"
                                                   Width="40"/>
                                        </Grid>
                                        <StackPanel Orientation="Horizontal"
                                                    Margin="5,0,0,0">
                                            <Image Source="{Binding Crown, Mode=OneWay, Converter={StaticResource CrownToIconConverter}}"
                                                   Height="15"
                                                   Visibility="{Binding Crown, Mode=OneWay, Converter={StaticResource CrownToVisibilityConverter}}"
                                                   Margin="0,0,2,0"
                                                   VerticalAlignment="Top"/>
                                            <TextBlock Text="{Binding Name, Mode=OneWay}"
                                                       FontFamily="{StaticResource Font.Default}"
                                                       Foreground="{StaticResource White@100}"
                                                       FontSize="15"
                                                       VerticalAlignment="Top"
                                                       HorizontalAlignment="Left">
                                                <TextBlock.Effect>
                                                    <DropShadowEffect Color="Black"
                                                                      BlurRadius="4"
                                                                      ShadowDepth="0"/>
                                                </TextBlock.Effect>
                                            </TextBlock>
                                        </StackPanel>
                                    </StackPanel>
                                </Border>
                            </DataTemplate>
                        </ItemsControl.ItemTemplate>

                        <ItemsControl.ItemsPanel>
                            <ItemsPanelTemplate>
                                <StackPanel Orientation="{Binding Settings.Orientation.Value, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Converter={StaticResource OrientationConverter}}"
                                            Margin="20"
                                            IsItemsHost="True">
                                </StackPanel>
                            </ItemsPanelTemplate>
                        </ItemsControl.ItemsPanel>
                    </ItemsControl>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>