Answer the question
In order to leave comments, you need to log in
Add a button to each item in ElementTab - dynamically?
private void NewHolstButton_Click(object sender, RoutedEventArgs e)
{
object newItem = new Image () ;
ElementTab.Items.Add(newItem);
for (int i= (int)ZeroItem.Tag; i <= ElementTab.Items.CurrentPosition; i++)
{
//добавлять кнопку на каждый item
}
}
}
for (int i= (int)ZeroItem.Tag; i <= ElementTab.Items.CurrentPosition; i++)
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