0

How can I have a watermark before the list of data source or when the textbox is empty.

For example I have something like this:

Select product... Icecream Juice Mouse

This is my xaml

 <ComboBox Name="cbProduct" Height="40" Width="200" IsEditable="True"  
                                  ItemsSource="{Binding Source={StaticResource ProductsSource}}" 
  />
Alvin
  • 8,219
  • 25
  • 96
  • 177
  • 1
    possibly duplicate of [this](http://stackoverflow.com/questions/833943/watermark-textbox-in-wpf) – Miklós Balogh Oct 01 '12 at 06:04
  • Mine is combobox. Will it work? – Alvin Oct 01 '12 at 07:44
  • yep, the solution that @MiklósBalogh linked will overlay a textblock over your combobox. It will work, it's a solution, if you google a bit you will find out some other solutions. – michele Oct 01 '12 at 11:03

0 Answers0