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
How to Right Justify DataGridView Column
Outlook 2007 Browser Link
MS Access Audit using Screen.ActiveControl.OldVa<wbr />lue
Could not load file or assembly 'Microsoft.SharePoint.Sear<wbr />ch' or one of its dependencies
Change backcolor in Access subform in Datasheet view
Dlookup with multiple criterias and tables
Unable to remove printer driver for HP LaserJet 1300 PCL 5e
RSA descryption give bad Data exception
Microsoft Outlook 2003 hangs on start
ASP.NET change input value on button click from code behind