Example #1
0
        // Token: 0x060054A0 RID: 21664 RVA: 0x00176DDC File Offset: 0x00174FDC
        private static void OnGroupNameChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RadioButton radioButton = (RadioButton)d;
            string      text        = e.NewValue as string;
            string      value       = RadioButton._currentlyRegisteredGroupName.GetValue(radioButton);

            if (text != value)
            {
                if (!string.IsNullOrEmpty(value))
                {
                    RadioButton.Unregister(value, radioButton);
                }
                if (!string.IsNullOrEmpty(text))
                {
                    RadioButton.Register(text, radioButton);
                }
            }
        }