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
White Screen in SCCM 2007 Remote Tools after update
Make minimized application window visible
How can I check the size of a SharePoint 2007/Wss 3.0 sub site?
Code works fine in debug mode, but not at run time
Error when assigning value to textbox in footer during runtime
Inserting a record
Outlook 2007 Continuous Authencication
Same form on different computers
insert image via bookmark
Formula to find variable text string within another string