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
Word 07 - How do I remove the margins completely so that a tilte spreads across an entire A4 page?
Cant find a driver for old wireless card
Question on Query Grouping
Auto Populate an unbound textbox on an unbound form
Trying to insert a variable into a sql statement
Login returns to login screen
Microsoft sql2005 patches
How do I delete .txt files using VBA in Excel 2007?
Hard disk drive Iomega MDHD10T-U2 not running on Windows 7/XP?
.Net v1.1 Website Problem