<UserControl x:Class="Khd.Core.Wpf.Form.UserControl1"
             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:Khd.Core.Wpf.Form"
             mc:Ignorable="d" 
             d:DesignHeight="330" d:DesignWidth="200">
    <Grid DataContext="{Binding RelativeSource={RelativeSource Self}}">
        <!-- Your UserControl content here -->
        <Border Background="#213269">
            <StackPanel Orientation="Horizontal">
                <!-- Image in TabItem -->
                <Image Source="{Binding ImagePath}" Width="40" Height="40" Margin="5"/>
                <TextBlock Text="{Binding Text, RelativeSource={RelativeSource AncestorType={x:Type local:UserControl1}}}" Width="140" Height="30" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Center" />

            </StackPanel>
        </Border>

        <!-- Main content for UserControl1 -->
        <!-- You can add more UI elements here -->
    </Grid>

</UserControl>
