Example #1
0
        protected override void OnDispose()
        {
            if (valueRadioBox != null)
            {
                BindingOperations.ClearAllBindings(valueRadioBox);
            }

            valueRadioBox = null;
        }
Example #2
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            ValueRadioBox = GetTemplateChild <EnumRadioBox>("PART_valueRadioBox");

            ValueRadioBox.Value = this.Value;

            BindingHelper.SetBinding(
                this, ValueProperty,
                ValueRadioBox, EnumRadioBox.ValueProperty);
        }
Example #3
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            valueRadioBox = GetTemplateChild <EnumRadioBox>("PART_valueRadioBox");

            if (this.IsStable)
            {
                valueRadioBox.Value = this.Value;
            }
            else
            {
                valueRadioBox.IsEmpty = true;
            }

            BindingHelper.SetBinding(
                this, ValueProperty,
                valueRadioBox, EnumRadioBox.ValueProperty);
        }
Example #4
0
 protected override void OnDispose()
 {
     ValueRadioBox = null;
 }