Hey, I tried implementing a class John madeWatermark.
I'm stuck and wondered if anyone can help me .... Added the 2 classes mentioned and on the wpf:
<AdornerDecorator>
<ComboBox Height="23" HorizontalAlignment="Right" Margin="0,184,664,0" x:Name="cbVideoDevices" VerticalAlignment="Top" Width="316" Initialized="cbVideoDevices_Initialized" SelectionChanged="cbVideoDevices_SelectionChanged">
<Controls:WatermarkService.Watermark>
<TextBlock>Type here to search text</TextBlock>
</Controls:WatermarkService.Watermark>
</ComboBox>
</AdornerDecorator>
Whatever I try, I keep getting errors as the Control doesn't exist, or the Property does not exit. I get no errors in his classes so I figured the references are good but it seemed to me the System.Windows.Control is missing.... but I can't find it to add it ...
Any help, much appreciated.
Edit: With Liz's help I got this to work but to let anyone know, who does use this.
- The AdornerDecorator Creates a box over everything .....
- Create the Margin for the AdornerDecorator and move that to desired position
- Margin and alignments screw with where the watermark is shown ....