Yes your assumption is correct.
I'm assuming with your translations,
public ObservableCollection<Channel> myListChannels;
is actually
public ObservableCollection<Canal> miListaDeCanales;
with the class Canal
in the namespace Unico
Update:
In your filter try using the property that is rendered in the ComboBox
than use the ToString()
on the object
(o
) if you've not overridden ToString()
from System.Object
.
try switching
if (o.ToString().Contains(myTextBox.Text))
to
if (((Canal)o).NameProperty.Contains(myTextBox.Text))
^^ that should fix your issue.
Do you have a DataTemplate
for ComboBox.ItemTemplate
in xaml. That will explain why you see the valid value rendered in the ComboBox
, else all the ComboBoxItem
's will also render as Unico.Canal