【发布时间】:2011-03-24 00:04:23
【问题描述】:
嘿,我尝试实现一个类 John madeWatermark。
我被困住了,想知道是否有人可以帮助我....添加了提到的 2 个类 在 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>
无论我尝试什么,由于控件不存在或属性不退出,我不断收到错误消息。我在他的课程中没有收到任何错误,所以我认为参考资料很好,但在我看来 System.Windows.Control 丢失了......但我找不到它来添加它......
任何帮助,非常感谢。
编辑:在 Liz 的帮助下,我完成了这项工作,但要让任何人知道,谁在使用它。
- AdornerDecorator 在所有东西上创建一个盒子.....
- 为 AdornerDecorator 创建边距并将其移动到所需位置
- 边距和对齐螺丝与显示水印的位置......
【问题讨论】: