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
Well, I have a solution for your case :)
class MyDateTimePicker : DatePicker { public override void OnApplyTemplate() { base.OnApplyTemplate(); var textBox = this.Template.FindName("PART_TextBox", this) as UIElement; if (textBox != null) { textBox.Visibility = Visibility.Hidden; } } }