private string CreateXaml(ConfigurationEntryViewModel configEntry) { switch (configEntry.Type.FullName) { case "System.String": return configEntry.Name.ToLower().Contains("password") ? "<PasswordBox Password='******' Width='150' />" : "<SL:SelectAllOnFocusTextBox xmlns:SL='" + CUSTOM_TEXTBOX_NAMESPACE + "' Text='{Binding Value, Mode=TwoWay}' Width='150' />"; case "System.Boolean": return "<CheckBox IsChecked='{Binding Value, Mode=TwoWay}' />"; } return ""; }
public void SetUp() { configurationEntries = new ConfigurationEntryViewModel {Name = "Test", Value = new object()}; }