private void LoadOptions(OptionPanel viewer) { foreach (string options in campo.opciones) { viewer.AddOption(options); } optionsViewer.Child = viewer; }
public static void OnAllowsEditionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { OptionPanel panel = d as OptionPanel; bool? value = e.NewValue as bool?; if (panel != null && value != null) { panel.UpdateEditableComponents((bool)value); } }
private void PutAnOptionPanelThere() { OptionPanel opt = new OptionPanel(campo.opciones) { AllowsEdition = false }; opt.SelectionType = campo.tipo == Campo.TiposDeCampo.OpcionesExclusivas ? FormUtils.Selection.Single : FormUtils.Selection.Multiple; content.Child = opt; }