Remove default mouseover/focus effect on textboxes

前端 未结 3 498
伪装坚强ぢ
伪装坚强ぢ 2021-01-03 23:28

I have created a kind of custom TextBox in Expression Blend. I have changed the fill of the background and border to a gradient, and added in a Shadow Effect.

3条回答
  •  [愿得一人]
    2021-01-04 00:24

    Does you custom style set the OverridesDefaultStyle property to true? I believe this should prevent default values being drawn from the default style.

    If so, and this isn't working (or you want to use your own border), all I can think is that you will need to override the default styling mechanism for the event of the appropriate property changing using a Trigger in your Style / ControlTemplate:

    
    

提交回复
热议问题