title | page_title | description | type | slug | position | tags | ticketid | res_type |
---|---|---|---|---|---|---|---|---|
ComboBox Content Truncated When Height Set to Less Than 26px in Office2016 Theme |
Content Element of RadComboBox is Clipped If Height is Smaller Than 26px |
The content control inside of RadComboBox gets clipped when the Height of the combobox is less than 26px in Office2016 them. |
troubleshooting |
kb-combobox-content-clipped-when-small-height |
0 |
content,height,minheight |
1414330 |
kb |
Product Version | 2019.2 618 |
Product | RadComboBox for WPF |
The content control inside of RadComboBox gets clipped when the Height of the combobox is less than 26px in Office2016 them.
Note that only the content gets clipped and not the control itself. The expected behavior is that the content is clipped, but also the control becomes smaller.
Set the MinHeight property of the child RadToggleButton to the same MinHeight as RadComboBox.
{{region kb-combobox-content-clipped-when-small-height-0}}
private void RadComboBox_Loaded(object sender, RoutedEventArgs e)
{
var comboBox = (RadComboBox)sender;
var toggle = comboBox.FindChildByType<RadToggleButton>();
toggle.MinHeight = comboBox.MinHeight;
}
{{endregion}}
- [FindChildByType]({%slug common-visual-tree-helpers%})