public override void SetValue(ref object instance, Arguments index, bool value, object aspectArgs) { SliderObject sliderObject = (SliderObject)instance; sliderObject._scale9Enabled = value; sliderObject.GetInnerWidget().SetScale9Enabled(value); string compositeTaskName = sliderObject.GetType().Name + "Scale9Enable"; using (CompositeTask.Run(compositeTaskName)) { sliderObject.RefreshBoundingBox(false); sliderObject.RaisePropertyChanged <PointF>(() => sliderObject.Size); sliderObject.RaisePropertyChanged <bool>(() => sliderObject.Scale9Enable); } }
protected override void SetValue(object cObject, object cInnerObject) { base.SetValue(cObject, cInnerObject); SliderObject sliderObject = cObject as SliderObject; if (sliderObject == null) { return; } sliderObject.BackGroundData = this.BackGroundData; sliderObject.ProgressBarData = this.ProgressBarData; sliderObject.BallNormalData = this.BallNormalData; sliderObject.BallPressedData = this.BallPressedData; sliderObject.BallDisabledData = this.BallDisabledData; sliderObject.Scale9Enable = this.Scale9Enable; sliderObject.LeftEage = this.LeftEage; sliderObject.RightEage = this.RightEage; sliderObject.TopEage = this.TopEage; sliderObject.BottomEage = this.BottomEage; sliderObject.PercentInfo = this.PercentInfo; sliderObject.Size = this.Size; sliderObject.DisplayState = this.DisplayState; }