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
application pool being auto-stopped when enabled for 32 Bit applications
Dlookup top record with two criteria
Calculating Probability using C#
Certificate error while accessing companies website.
Left Double click with Mouse Doesn't work
Difference between Works 9 and Office
Open report from a double-click event on a form
Shut down FSMO domain controller
Choosing the right constraint with the select query
SQL - CASE Statement help needed