How to hide a part of a WPF control

前端 未结 4 1292
梦如初夏
梦如初夏 2021-02-02 03:30

Is it possible to hide a part of a WPF control? .NET 4 has a DatePicker which renders 4 parts, according to MSDN. Is it possible to hide (in my case) the TextBox part (probably

4条回答
  •  执念已碎
    2021-02-02 04:28

    Why not add Visibility="Collapsed" to the relevant TextBox in the default style?

    
    

提交回复
热议问题