ComboBox Content Truncated When Height Set to Less Than 26px in Office2016 Theme

Environment

Product Version 2019.2 618
Product RadComboBox for WPF

Description

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.

Solution

Set the MinHeight property of the child RadToggleButton to the same MinHeight as RadComboBox.

private void RadComboBox_Loaded(object sender, RoutedEventArgs e) 
{ 
    var comboBox = (RadComboBox)sender; 
    var toggle = comboBox.FindChildByType<RadToggleButton>(); 
    toggle.MinHeight = comboBox.MinHeight; 
} 

See Also

In this article
Not finding the help you need? Improve this article