public override void SetValue(ref object instance, Arguments index, bool value, object aspectArgs) { WidgetObject widgetObject = (WidgetObject)instance; if (widgetObject.GetInnerWidget().GetTouchEnabled() != value) { widgetObject.GetInnerWidget().SetTouchEnabled(value); widgetObject.RaisePropertyChanged <bool>(() => widgetObject.TouchEnable); } }
protected override void SetValue(object cObject, object cInnerObject) { CSWidget csWidget = cInnerObject as CSWidget; if (csWidget != null) { csWidget.CloneWidgetCustomProperty(this.GetInnerWidget()); } base.SetValue(cObject, cInnerObject); WidgetObject widgetObject = cObject as WidgetObject; if (widgetObject == null) { return; } widgetObject.TouchEnable = this.TouchEnable; widgetObject.CallBackName = this.CallBackName; widgetObject.CallBackType = this.CallBackType; }