<UserControl
    x:Class="Clippy.Controls.ClippyMessage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Clippy.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:icons="using:CubeKit.UI.Icons" 
    xmlns:ToolkitControls="using:CommunityToolkit.WinUI.UI.Controls"
    mc:Ignorable="d">
    <Grid>
        <StackPanel>
            <ToolkitControls:DropShadowPanel BlurRadius="16.0" ShadowOpacity="0.43" IsMasked="True" CornerRadius="8"
                          OffsetX="0.0" OffsetY="0.0" VerticalAlignment="Bottom" Color="Black">
                <Grid BorderBrush="{ThemeResource MicaBorderBrush}" BorderThickness="0, 1, 0, 0" Background="{ThemeResource MicaBrush}" CornerRadius="8">
                    <StackPanel Spacing="4" Background="{ThemeResource MicaBlurBrush}" Padding="12">
                        <local:ShineUITextblock Text="{x:Bind Message, Mode=OneWay}"/>
                        <StackPanel x:Name="Send" Orientation="Horizontal" Spacing="4" x:Load="{x:Bind IsSendEnabled, Mode=OneWay}">
                            <ToolkitControls:DropShadowPanel ShadowOpacity="0.4" Color="Black" OffsetX="4" CornerRadius="8" Margin="0, 12, 0, 0" OffsetY="4">
                                <TextBox x:Name="SendBox" KeyDown="SendBox_KeyDown" Style="{ThemeResource GlowTextBox}" PlaceholderText="Ask me anything" Width="240" AcceptsReturn="True" TextWrapping="Wrap" MaxLength="1000"/>
                            </ToolkitControls:DropShadowPanel>
                            <Button Click="Send_Click" VerticalAlignment="Bottom" Style="{ThemeResource ToolbarButton}">
                                <icons:FluentSymbolIcon Symbol="Send20"/>
                            </Button>
                        </StackPanel>
                    </StackPanel>
                </Grid>
            </ToolkitControls:DropShadowPanel>
            <local:MessageTriangle HorizontalAlignment="Left" Margin="236, -1, 0, 0"/>
        </StackPanel>
    </Grid>
</UserControl>
