1
How to Set UI AutomationProperty for a ListItem?
I have a test.xaml - <Grid> <ListBox Name=”ListBox1″/> </Grid> And in the test.xaml.cs file, I initiatilize the ListBox for (int i=1; i<=50; i++) { ListBox1.Items.Add(“Item” + i); } Now I want to set a HelpText AutomationProperty to each of the ListItems. How do I do it? I tried the following, but no success - <Grid> [...]
Answer Question
| May 19, 2009 12:55 PM
ListItem, UI, UI Automation, WPF ListBox
I have a test.xaml - <Grid> <ListBox Name=”ListBox1″/> </Grid> And in the test.xaml.cs file, I initiatilize the ListBox for (int i=1; i<=50; i++) { ListBox1.Items.Add(“Item” + i); } Now I want to set a HelpText AutomationProperty to each of the ListItems. How do I do it? I tried the following, but no success - <Grid> [...]
1





