<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"
             xmlns:appToast="clr-namespace:PointlessWaymarks.AvaloniaToolkit.AppToast"
             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
             x:Class="PointlessWaymarks.AvaloniaToolkit.AppToast.AppToastControl"
             x:DataType="appToast:AppToastContext">
<ListBox Background="Transparent" BorderThickness="0" ItemsSource="{Binding Items}">
    <ListBox.ItemTemplate>
        <DataTemplate DataType="appToast:AppToastMessage">
          <Grid>
            <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="{Binding Message}" />
<Button HorizontalAlignment="Right" VerticalAlignment="Top" Command="{Binding $parent[ItemsControl].DataContext.DisposeToastCommand}" CommandParameter="{Binding .}"></Button>
          </Grid>
        </DataTemplate>
    </ListBox.ItemTemplate>
</ListBox>
</UserControl>
