Microsoft
Software
Hardware
Network
Question : How do I get content aligned corectly in a WPF Combobox
I have populated a combobox in WPF with a list of data and when I have the combo box the information displays correctly. When I select an item in the list and close the box it displays the information w/ the first part of the text hidden and it displays the last part of the text. How can I make it so that it defaults to show the first part of the text and lets the overflow be hidden to the right of the text box.
Answer : How do I get content aligned corectly in a WPF Combobox
in your selectionchanged routine
private void cmbLFSpindle_SelectionChan
ged(object
sender, SelectionChangedEventArgs e)
{
ComboBox b = sender as ComboBox;
b.IsEditable = false;
b.IsEditable = true;
}
Random Solutions
Windows 98SE not running command when installed 2GB memory
ignore space between names within string
Windows XP clients not getting gpo folder redirection informtaion
What is the VBA to do this in Access?
Push out Office 2007 configuration settings
Aligning an ASP.NET Menu Control
SBS 2003 to SBS 2008 Migration sbsanswerfile.xml
Excel Arrange numbers in Random Order
Populate Text box based on combo box
Email Access Report using PDFCreator and Outlook