Exemple #1
0
 private void InitResetButton()
 {
     resetButton.TouchUpInside += (sender, e) =>
     {
         _opacity = null;
         _simpleButton.ResetCustomization();
         _currentButtonState = SimpleButtonTypeEnum.Simple;
         ResetFields();
         ApplySimpleButtonViewBehavior();
     };
 }
        private void ButtonTypeItemSelected(int position)
        {
            if (position > 0)
            {
                _buttonType = Buttons.SimpleButtonTypeCollection.ElementAt(position).Value;
                ResetCustomValues(true);
                switch (_buttonType)
                {
                case SimpleButtonTypeEnum.Simple:
                    SetupSimpleButtonStyle();
                    EnableSimpleButtonFields();
                    _simpleButton.ResetCustomization();
                    break;

                case SimpleButtonTypeEnum.FullBleed:
                    SetupFullBleedButtonStyle();
                    DisableSimpleButtonFields();
                    break;
                }
            }
        }
Exemple #3
0
        private void InitButtonTypeDropDown(CGRect rect)
        {
            buttonTypeDropDown.InitSource(
                Buttons.SimpleButtonTypeCollection,
                type =>
            {
                ResetFields();
                _simpleButton.ResetCustomization();
                _currentButtonState = type;
                switch (type)
                {
                case SimpleButtonTypeEnum.Simple:
                    ApplySimpleButtonViewBehavior();
                    break;

                case SimpleButtonTypeEnum.FullBleed:
                    SetupFullBleedButtonStyle();
                    ToggleSimpleButtonFields(false);
                    break;
                }
            },
                Fields.ButtonType,
                rect);
        }