<local:MyCard x:Class="PCL.MySearchBox"
              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
              xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
              xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
              xmlns:local="clr-namespace:PCL"
              xmlns:svgIcon="clr-namespace:PCL.Core.UI.Controls.SvgIcon;assembly=PCL.Core"
              mc:Ignorable="d"
              d:DesignHeight="450" d:DesignWidth="800"
              Height="40">
    <Grid>
        <local:MyTextBox HasBackground="False" x:Name="TextBox" BorderThickness="0" Padding="32,0,40,0" MaxLength="50"
                         FontSize="13.5" UseLayoutRounding="False" SnapsToDevicePixels="False"
                         VerticalContentAlignment="Center" 
                         TextChanged="Text_TextChanged" />
        <svgIcon:SvgIcon Width="14" Margin="14,0,0,0" IsHitTestVisible="False" Height="14"
                     IconBrush="{DynamicResource ColorBrush1}" Icon="lucide/search"
                     HorizontalAlignment="Left" />
        <local:MyIconButton x:Name="BtnClear" Click="BtnClear_Click" IsHitTestVisible="False" Opacity="0" Width="24" Margin="0,0,10,0"
                            LogoScale="0.75" Height="24"
                            SvgIcon="lucide/x"
                            HorizontalAlignment="Right" Theme="Black" />
        <local:MyButton x:Name="BtnSearch" Click="BtnSearch_Click" Visibility="Collapsed" Margin="0,4,4,4" Text="{DynamicResource Common.Action.Search}" Width="60"
                        ColorType="Highlight" HorizontalAlignment="Right" />
    </Grid>
</local:MyCard>