示例#1
0
        private void CreateCheckboxListControl(NameAttribute displayNameAttribute, CheckBoxList sourceList, Binding b)
        {
            var checkBoxListControl = new ConfigCheckBoxListControl(_localController.GetLocalStrings <SDGuiStrings>());

            checkBoxListControl.ConfigItemDisplayName = _localController.GetLocalString(displayNameAttribute.LocalType, displayNameAttribute.DisplayName);
            checkBoxListControl.SourceList            = sourceList;
            checkBoxListControl.SetBinding(ConfigCheckBoxListControl.SelectedItemsProperty, b);

            configItemPanel.Children.Add(checkBoxListControl);
        }
        private void CreateCheckboxListControl(NameAttribute displayNameAttribute, CheckBoxList sourceList, Binding b)
        {
            var checkBoxListControl = new ConfigCheckBoxListControl(_localController.GetLocalStrings<SDGuiStrings>());
            checkBoxListControl.ConfigItemDisplayName = _localController.GetLocalString(displayNameAttribute.LocalType, displayNameAttribute.DisplayName);
            checkBoxListControl.SourceList = sourceList;
            checkBoxListControl.SetBinding(ConfigCheckBoxListControl.SelectedItemsProperty, b);

            configItemPanel.Children.Add(checkBoxListControl);
        }