<UserControl xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
             xmlns:vm="clr-namespace:Artemis.VisualScripting.Nodes.Operators.Screens"
             x:DataType="vm:EnumEqualsNodeCustomViewModel"
             x:Class="Artemis.VisualScripting.Nodes.Operators.Screens.EnumEqualsNodeCustomView">
    <ComboBox IsEnabled="{CompiledBinding EnumValues.Count}"
              ItemsSource="{CompiledBinding EnumValues}"
              SelectedItem="{CompiledBinding CurrentValue}"
              PlaceholderText="Select a value"
              Classes="condensed"
              VerticalAlignment="Center">
        <ComboBox.ItemsPanel>
            <ItemsPanelTemplate>
                <VirtualizingStackPanel />
            </ItemsPanelTemplate>
        </ComboBox.ItemsPanel>
        <ComboBox.ItemTemplate>
            <DataTemplate>
                <TextBlock Text="{CompiledBinding Path=Name}" />
            </DataTemplate>
        </ComboBox.ItemTemplate>
    </ComboBox>
</UserControl>