WPF - How can I place a usercontrol over an AdornedElementPlaceholder?

后端 未结 2 1400
囚心锁ツ
囚心锁ツ 2020-12-16 19:22

alt text http://img42.imageshack.us/img42/4161/blinkthru.png

I\'m trying to get the validation to not show through my custom modal dialog. I\'ve tried setting the zi

2条回答
  •  失恋的感觉
    2020-12-16 20:02

    Alternatively, if you want to change just the style of the element (it's background, foreground, etc) and not it's whole ControlTemplate (which includes the adorner), you can set the Validation.ErrorTemplate so that it doesn't have a border, or exclamation point, then use a style trigger to change the style based on the property "Validation.HasError".

    
    

提交回复
热议问题