Пример #1
0
        private void NewKeyValueButton_Click(object sender, RoutedEventArgs e)
        {
            var kvTextBox = new KeyValueTextbox();

            KeyValueList.Children.Add(kvTextBox);
            kvTextBox.DeleteButtonClicked += KvTextbox_DeleteButtonClicked;
        }
Пример #2
0
 private void KvTextbox_DeleteButtonClicked(KeyValueTextbox sender)
 {
     KeyValueList.Children.Remove(sender);
 }