コード例 #1
0
 private void LoadOptions(OptionPanel viewer)
 {
     foreach (string options in campo.opciones)
     {
         viewer.AddOption(options);
     }
     optionsViewer.Child = viewer;
 }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
        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;
        }