public string GetAssemblyName() { var be = AssemblyNameTextBox.GetBindingExpression(TextBox.TextProperty); be?.UpdateTarget(); return(AssemblyNameTextBox.Text); }
public void SetAssemblyName(string assemblyName) { AssemblyNameTextBox.Text = assemblyName; var be = AssemblyNameTextBox.GetBindingExpression(TextBlock.TextProperty); be?.UpdateSource(); }
public void SetTextBoxValue(string controlName, string input) { switch (controlName) { case "AssemblyName": AssemblyNameTextBox.Text = input; BindingExpression assem = AssemblyNameTextBox.GetBindingExpression(TextBlock.TextProperty); assem?.UpdateSource(); break; case "ConfigFile": ConfigFileTextbox.Text = input; BindingExpression config = ConfigFileTextbox.GetBindingExpression(TextBlock.TextProperty); config?.UpdateSource(); break; case "GacAssemblyName": GacAssemblyNameTextBox.Text = input; BindingExpression gac = GacAssemblyNameTextBox.GetBindingExpression(TextBlock.TextProperty); gac?.UpdateSource(); break; } }