Source="Custom"
CanResizePopup="False"
MouseLeftButtonDown="autYearFilter_MouseLeftButtonDown"
MouseLeftButtonUp="autYearFilter_MouseLeftButtonDown"
IsFilter="True" StringMode="AnyChar"
HorizontalAlignment="Center"
VerticalAlignment="Center"
MinWidth="100" MaxWidth="100"
Height="30"
Margin="0,0,10,0"
TextChanged="autYearFilter_TextChanged"
CustomSource="{Binding lstYears, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}">
I used AutoComplete as above in my application.
I dynamically bind
lstYears
(list of years) to this autocomplete.
If the lstYears items are updated then, the autocomplete displays the new listitems in the autocomplete.
This works fine....
But if lstYears is emptied(no items in this list), the Autocomplete shows the old list items in the autocomplete. I want this autocomplete to be empty when the binding list is empty. How shld that be achieved.
Thanks,
Priya.