private static UserControlsLib.UCComboBox CreateComboBox(ElementConfigControl element) { return(new UserControlsLib.UCComboBox() { Name = element.Title, HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Center, Width = 300, Margin = new Thickness(10, 0, 0, 0) }); }
private Label CretateLabel(ElementConfigControl element) { return(new Label() { Style = this.FindResource("$LabelStyle") as Style, Content = element.Title + ":", HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Center, FontSize = 14 }); }
private static UCValueExpression CreateTextBox(ElementConfigControl element) { return(new Ginger.Actions.UCValueExpression() { Name = element.Title.ToString().Replace(" ", ""), HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Center, Width = 600, Margin = new Thickness(10, 0, 0, 0) }); }
private ElementConfigControl GetPomOptionalValuesComboBox(string Valuefield, ePomElementValuesType valuesType) { ElementConfigControl optionalValuesCombo = new ElementConfigControl(); optionalValuesCombo.Title = "Value"; optionalValuesCombo.ControlType = eElementType.ComboBox; optionalValuesCombo.BindedString = Valuefield; optionalValuesCombo.PossibleValues = GetPomElementOptionalValues(valuesType); optionalValuesCombo.DefaultValue = !String.IsNullOrEmpty(mAction.GetInputParamValue(Valuefield)) ? mAction.GetInputParamValue(Valuefield) : GetPomElementOptionalValuesDefaultValue(valuesType); return(optionalValuesCombo); }