I have made the following part of the interface
But when you start the application, you change your position and the following is left
the magnifying glass is an icon in Button that is placed over a TextBox
the code of the three elements is the following made with Visual Studio in a window (WPF)
<TextBox x:Name="tbBusqueda" Height="30" Margin="0,10,197,0" TextWrapping="Wrap" Text="Ingrese su busqueda" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalAlignment="Right" Width="230" GotFocus="tbBusqueda_GotFocus"/>
<Button x:Name="btnBuscar" Margin="535,10,0,0" VerticalAlignment="Top" Height="30" Click="btnBuscar_Click" BorderBrush="{x:Null}" HorizontalAlignment="Left" Width="30">
<ComboBox x:Name="cmbBuscarPor" HorizontalAlignment="Left" Text="Buscar por " Margin="210,10,0,0" VerticalAlignment="Top" Width="120" Height="30" VerticalContentAlignment="Center" SelectedIndex="0" HorizontalContentAlignment="Center">
<ComboBoxItem Visibility="Collapsed">Buscar por</ComboBoxItem>
<ComboBoxItem Content="Nombre" HorizontalContentAlignment="Center"/>
<ComboBoxItem Content="Apellido paterno" HorizontalContentAlignment="Center"/>
<ComboBoxItem Content="Puesto" HorizontalContentAlignment="Center"/>
</ComboBox>