static public int constructor(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         ListViewEvent o;
         o = new ListViewEvent();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
Beispiel #2
0
        //TODO While recording you get exception when clicking at the corner of the cell
        public override void HookEvents(UIItemEventListener eventListener)
        {
            var safeAutomationEventHandler =
                new SafeAutomationEventHandler(this, eventListener, objs => ListViewEvent.Create(this, (AutomationPropertyChangedEventArgs)objs[0]));

            handler = safeAutomationEventHandler.PropertyChange;
            Automation.AddAutomationPropertyChangedEventHandler(automationElement, TreeScope.Descendants, handler, SelectionItemPattern.IsSelectedProperty);
        }
Beispiel #3
0
        //TODO While recording you get exception when clicking at the corner of the cell
        public override void HookEvents(IUIItemEventListener eventListener)
        {
            var safeAutomationEventHandler =
                new SafeAutomationEventHandler(this, eventListener, objs => ListViewEvent.Create(this, (AutomationPropertyChangedEventArgs)objs[0]));

            handler = AutomationElement.RegisterPropertyChangedEvent(TreeScope.Descendants, (element, property, obj) => safeAutomationEventHandler.PropertyChange(element, new AutomationPropertyChangedEventArgs {
                NewValue = obj
            }), SelectionItemPattern.IsSelectedProperty);
        }
	static public int constructor(IntPtr l) {
		try {
			ListViewEvent o;
			o=new ListViewEvent();
			pushValue(l,true);
			pushValue(l,o);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Beispiel #5
0
 static public int constructor(IntPtr l)
 {
     try {
         ListViewEvent o;
         o = new ListViewEvent();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Beispiel #6
0
        private void widget_ValueChanged(object sender, ListViewEvent e)
        {
            this.UpDateData(delegate
            {
                switch (e.TialType)
                {
                case 0:
                    this.CurrentValue.DirectionType = e.NumType + ListViewDirectionType.Vertical;
                    break;

                case 1:
                    this.CurrentValue.HorizontalType = (ListViewHorizontal)e.NumType;
                    break;

                case 2:
                    this.CurrentValue.VerticalType = e.NumType + ListViewVertical.Align_Top;
                    break;
                }
            });
        }
        private void widget_ValueChanged(object sender, ListViewEvent e)
        {
            this.UpDateData((System.Action)(() =>
            {
                switch (e.TialType)
                {
                case 0:
                    this.CurrentValue.DirectionType = (ListViewDirectionType)(e.NumType + 1);
                    break;

                case 1:
                    this.CurrentValue.HorizontalType = (ListViewHorizontal)e.NumType;
                    break;

                case 2:
                    this.CurrentValue.VerticalType = (ListViewVertical)(e.NumType + 3);
                    break;
                }
            }));
        }