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.
Unfortunately, activation email could not send to your email. Please try again.

FontListComboBox drop down height

Thread ID:

Created:

Updated:

Platform:

Replies:

74186 Jun 3,2008 04:52 AM Jun 5,2008 11:59 AM WPF 2
loading
Tags: Tools
Yazan Diranieh
Asked On June 3, 2008 04:52 AM

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)


Administrator [Syncfusion]
Replied On June 3, 2008 08:27 AM

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


Yazan Diranieh
Replied On June 5, 2008 11:59 AM

Great. Thank you.


CONFIRMATION

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.

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.

;