#328 – Controls that Make Use of the Padding Property
June 24, 2011 Leave a comment
The Padding property will add space within a control only if the control’s control template makes use of Padding. Most, but not all, controls that derive from Control honor the Padding property.
Controls that make use of Padding:
- Button
- CheckBox
- ComboBox
- ContextMenu
- DataGrid
- DatePicker
- Expander
- GroupBox
- Label
- ListBox
- Menu
- PasswordBox
- RadioButton
- RepeatButton
- RichTextBox
- StatusBar
- TabControl
- TextBox
- TreeView
Controls that do not make use of Padding:
- Calendar
- ProgressBar
- Slider