i want to draw/add an image as a part of text in textbox in windows phone 7. I m not using Expression blend.

So where i can find the drawing objects as well as paint events in silverlight?
['https://Stackoverflow.com/questions/5713437', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/665983/']
You can apply a background image to a lot of Silverlight elements with the following:

```
<TextBox x:Name="SearchBox" Text="Search" Height="70" Width="390">
    <TextBox.Background>
            <ImageBrush ImageSource="Images/MagnifyingGlass.png" Stretch="UniformToFill" />
    </TextBox.Background>
</TextBox>

```
You might want to override the template in order to define your own template. You can do this in the style:

```
 <Style x:Key="textboxImage" TargetType="TextBox">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="TextBox">
                    <Grid>
                        <Grid.Background>
                            <ImageBrush ImageSource="ApplicationIcon.png" />
                        </Grid.Background>
                        <ContentControl x:Name="ContentElement" Foreground="{TemplateBinding Foreground}"  Margin="{TemplateBinding Margin}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="Stretch"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

```

You just need to set the style of your textbox to StaticResources textboxImage.

I just tested and it works fine.