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
Detect Open Form
Create CSV file from SQL and hard coded data
using a where clause in a vertical lookup excel
how to format 3 decimal places in spreadsheet control cells
Can't Connect Remotely to SQL Server 2008
How to change start menu user default folder list in Windows 7
VBA formatting errors!
SQL Errors - Cannot execute as the database principal
ASP.Net validation controls not firing.
How to expose MS Dynamics GP fields into VS Project