Click here to Skip to main content
15,896,730 members

Comments by olog (Top 2 by date)

olog 22-Jan-12 16:41pm View    
Deleted
I solved it:
TextBox txtbx = (TextBox)comboBox1.Template.FindName("PART_EditableTextBox", comboBox1);
ScrollViewer sv = (ScrollViewer)txtbx.Template.FindName("PART_ContentHost", txtbx);
sv.Background = Brushes.Green;

And it works....

Regards
olog 20-Jan-12 13:06pm View    
Deleted
And how can i change only the edit part of the Combobox?
I tried it with:
TextBox txtbx = (TextBox)comboBox1.Template.FindName("PART_EditableTextBox", comboBox1);
txtbx.Background = Brushes.Green;
But this doesn't work...

Regards