Example #1
0
        private void bt_SaveName_Click(object sender, RoutedEventArgs e)
        {
            BindingExpression bindingExpression = BagName.GetBindingExpression(TextBox.TextProperty);

            bindingExpression.UpdateSource();
            MainView.ChangeBagName();
        }
        private void Save_Click(object sender, RoutedEventArgs e)
        {
            BindingExpression binding = BagName.GetBindingExpression(TextBox.TextProperty);

            binding.UpdateSource();
            main.AddBag();
            binding.UpdateTarget();
        }