<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:PSCHelpdesk.ViewModels"
             xmlns:i="clr-namespace:Avalonia.Xaml.Interactivity;assembly=Avalonia.Xaml.Interactivity"
             xmlns:ia="clr-namespace:Avalonia.Xaml.Interactions.Core;assembly=Avalonia.Xaml.Interactions"
             x:Class="PSCHelpdesk.Views.PluginListView"
             x:DataType="vm:PluginListViewModel">


    <StackPanel>
        <Button Command="{Binding LoadAllPluginsCommand}" Width="160">
            Load Components
        </Button>
        <Button Command="{Binding UnLoadAllPluginsCommand}" Width="160">
            Unload Components
        </Button>
        <ListBox ItemsSource="{Binding Plugins}" Width="300">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Button>
                        <TextBlock Text="{Binding }"/>
                    </Button>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <ContentControl Content="{Binding CurrentControl}">
        </ContentControl>
    </StackPanel>
</UserControl>