I'm am trying to create a search with Watermark Text Box and have a clear button at the end. The problem is that I can't get the background of the button to be transparent.
This is the code that I am using:
<
telerikControls:RadWatermarkTextBox
Name
=
"SearchBox"
Text
=
"{Binding SearchControl.SearchText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Width
=
"250"
>
<
telerikControls:RadWatermarkTextBox.WatermarkContent
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
telerikControls:RadGlyph
Glyph
=
""
Margin
=
"0 3 0 0"
/>
<
TextBlock
Margin
=
"3,3,0,0"
Text
=
"Search"
/>
</
StackPanel
>
</
telerikControls:RadWatermarkTextBox.WatermarkContent
>
<
telerikControls:RadWatermarkTextBox.AdditionalContent
>
<
telerikControls:RadButton
Focusable
=
"False"
IsBackgroundVisible
=
"False"
Command
=
"telerikControls:RadWatermarkTextBoxCommands.Clear"
CommandTarget
=
"{Binding ElementName=SearchBox}"
ToolTip
=
"Clear"
>
<
telerikControls:RadGlyph
Glyph
=
""
/>
</
telerikControls:RadButton
>
</
telerikControls:RadWatermarkTextBox.AdditionalContent
>
</
telerikControls:RadWatermarkTextBox
>
I have also tried to use Background="Transparent" but that still doesn't work.
I have also noticed that IsBackgroundVisible aslo doesn't work on buttons outside of the Watermark Text Box.
I have attached a photo of how the search box looks.