Skip to content

Latest commit

 

History

History
48 lines (40 loc) · 1.43 KB

kb-combobox-content-clipped-when-small-height.md

File metadata and controls

48 lines (40 loc) · 1.43 KB
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

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.

[C#]

{{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}}

See Also

  • [FindChildByType]({%slug common-visual-tree-helpers%})