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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

FontListComboBox drop down height

Thread ID:





74186 Jun 3,2008 08:52 AM UTC Jun 5,2008 03:59 PM UTC WPF 2
Tags: Tools
Yazan Diranieh
Asked On June 3, 2008 08:52 AM UTC

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.


Administrator [Syncfusion]
Replied On 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.

Bala Vasanth. M

Yazan Diranieh
Replied On June 5, 2008 03:59 PM UTC

Great. Thank you.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon