We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

FontListComboBox drop down height

Is there a way to explicilty set the height of the font list when the drop down is open? Right now, the font list when dropped down fills the entire height of the containing application.

(WPF 1.3.0.8)


2 Replies

AD Administrator Syncfusion Team June 3, 2008 12:27 PM UTC

Hi Yazan,

As per the current version of Essential Studio we could not set FontListComboBox Popup height explicitly using direct property. However WPF provides the facilty to access the internal controls object reference through Template.FindName property. So we can get the popup object reference like follows and wecould set height of popup control using height property of returned object.

Popup p = (Popup)fontListComboBox_Object.Template.FindName("PART_Popup", fontListComboBox_Object);
p.Height = 200;

Template.FindName will find the specified name only the visualTree gets loaded for the particular control. So we can find the name in Control.Loaded event

like follows.

void FontBox_Loaded(object sender, RoutedEventArgs e)
{
Popup p = (Popup)fontListComboBox_Object.Template.FindName("PART_Popup",fontListComboBox_Object);
p.Height = 200;
}

Direct property for this feature will be available in the next release.
Please let me know if you have further queries.
Thank you for your interest in Syncfusion products.

Thanks,
Bala Vasanth. M



YD Yazan Diranieh June 5, 2008 03:59 PM UTC

Great. Thank you.


Loader.
Live Chat Icon For mobile
Up arrow icon