private void Attach() { ValueProperty.Attach(OnValueChanged); MaximumProperty.Attach(OnMaximumChanged); }