Answer the question
In order to leave comments, you need to log in
What is the Binding in this example?
There is such a function
static public List<string> GetData()
{
List<string> data = new List<string>();
string sql = "select distinct NameVicon1 from FullBases";
SQLiteConnection conn = new SQLiteConnection(@"Data Source=U:\Install\AppZvit\Zhur-Test.db"); ;
conn.Open();
SQLiteCommand cmd = new SQLiteCommand(sql, conn);
SQLiteDataReader reader = cmd.ExecuteReader();
while (reader.Read())
{
var b1 = Regex.Split(Convert.ToString(reader["NameVicon1"]), ";");
for (int i = 0; i < b1.Length; i++)
{
data.Add(Convert.ToString(b1[i]));
}
}
conn.Close();
return data;
}
<TextBox Width="250"
HorizontalAlignment="Center"
Text="{Binding TestText, UpdateSourceTrigger=PropertyChanged}"
behaviors:AutoCompleteBehavior.AutoCompleteItemsSource="{Binding TestItems}"/>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question