Ejemplo n.º 1
0
 protected void ReturnHandler(Event e)
 {
     if (e.Target is TextField)
     {
         DoLogin();
     }
 }
Ejemplo n.º 2
0
 protected void ReturnHandler(Event e)
 {
     if (e.Target is TextField)
     {
         SendMessage();
     }
 }
Ejemplo n.º 3
0
 private void ChangeHandler(Event e)
 {
     //ValueChangedEvent ve = (ValueChangedEvent)e;
     //Debug.Log(ve.NewValue);
     //VSlider s = (VSlider)e.Target; // we might care about the slider touched
     RgbColor = new Color(_red.Percentage, _green.Percentage, _blue.Percentage);
 }
Ejemplo n.º 4
0
 private void OnInspectorActiveChanged(Event e)
 {
     if (_chkInspect.Selected != OptionsModel.Instance.InspectorActive)
     {
         _chkInspect.Selected = OptionsModel.Instance.InspectorActive;
     }
 }
Ejemplo n.º 5
0
        private void ChildAddHandler(Event e)
        {
            ChildExistenceChangedEvent cece = (ChildExistenceChangedEvent) e;
            var child = cece.RelatedObject;
            var index = GetChildIndex(child);

            //Debug.Log("ChildAddHandler: " + child);

            if (child is InteractiveComponent)
            {
                var uiChild = (InteractiveComponent)child;
                // ViewStack creates all of its children initially invisible.
                // They are made as they become the selected child.
                uiChild.Visible = false;
                //Debug.Log("Set invisible: " + uiChild);
            }
            //if (child is INavigatorContent)
            //{
            //    child.addEventListener("labelChanged", navigatorChildChangedHandler);
            //    child.addEventListener("iconChanged", navigatorChildChangedHandler);
            //}

            // If we just created the first child and no selected index has
            // been proposed, then propose this child to be selected.
            if (NumberOfChildren == 1 && proposedSelectedIndex == -1)
            {
                SelectedIndex = 0;
            }
            else if (index <= _selectedIndex && NumberOfChildren > 1 && proposedSelectedIndex == -1)         
            {
                SelectedIndex++;
            }
        }
Ejemplo n.º 6
0
 private void OnRunInBackgroundChanged(Event e)
 {
     if (_chkRunInBackground.Selected != OptionsModel.Instance.RunInBackground)
     {
         _chkRunInBackground.Selected = OptionsModel.Instance.RunInBackground;
     }
 }
Ejemplo n.º 7
0
        /// <summary>
        /// Used for deffered parts
        /// </summary>
        /// <param name="e"></param>
        private void SkinPropertyChangeHandler(Event e)
        {
            if (null != SkinParts)
            {
                PropertyChangeEvent pce = (PropertyChangeEvent)e;
                string skinPartID       = pce.Property;
                if (SkinParts.ContainsKey(skinPartID))
                {
                    var part = CoreReflector.GetValue(Skin, skinPartID);

                    if (pce.NewValue == null)
                    {
                        if (!(part is IFactory))
                        {
                            PartRemoved(skinPartID, part);
                        }
                        CoreReflector.SetValue(this, skinPartID, pce.NewValue);
                    }
                    else
                    {
                        part = pce.NewValue;
                        if (!(part is IFactory))
                        {
                            PartAdded(skinPartID, part);
                        }
                    }
                }
            }
        }
Ejemplo n.º 8
0
 private void OnVolumeChanged(Event e)
 {
     if (_sliderVolume.Value != OptionsModel.Instance.Volume)
     {
         _sliderVolume.Value = OptionsModel.Instance.Volume;
     }
 }
Ejemplo n.º 9
0
 private void ChangeHandler(Event e)
 {
     //ValueChangedEvent ve = (ValueChangedEvent)e;
     //Debug.Log(ve.NewValue);
     //VSlider s = (VSlider)e.Target; // we might care about the slider touched
     RgbColor = new Color(_red.Percentage, _green.Percentage, _blue.Percentage);
 }
Ejemplo n.º 10
0
        private void ChildAddHandler(Event e)
        {
            ChildExistenceChangedEvent cece = (ChildExistenceChangedEvent)e;
            var child = cece.RelatedObject;
            var index = GetChildIndex(child);

            //Debug.Log("ChildAddHandler: " + child);

            if (child is InteractiveComponent)
            {
                var uiChild = (InteractiveComponent)child;
                // ViewStack creates all of its children initially invisible.
                // They are made as they become the selected child.
                uiChild.Visible = false;
                //Debug.Log("Set invisible: " + uiChild);
            }
            //if (child is INavigatorContent)
            //{
            //    child.addEventListener("labelChanged", navigatorChildChangedHandler);
            //    child.addEventListener("iconChanged", navigatorChildChangedHandler);
            //}

            // If we just created the first child and no selected index has
            // been proposed, then propose this child to be selected.
            if (NumberOfChildren == 1 && proposedSelectedIndex == -1)
            {
                SelectedIndex = 0;
            }
            else if (index <= _selectedIndex && NumberOfChildren > 1 && proposedSelectedIndex == -1)
            {
                SelectedIndex++;
            }
        }
Ejemplo n.º 11
0
 private void ContentGroupElementAddedHandler(Event e)
 {
     ElementExistenceEvent eee = (ElementExistenceEvent)e;
     eee.Element.Owner = this;
 
     // Re-dispatch the event
     DispatchEvent(e);
 }
Ejemplo n.º 12
0
 private void PressHandler(Event e)
 {
     if (e.Target == _btnSubmit)
     {
         DoLogin();
         return;
     }
 }
Ejemplo n.º 13
0
 private void OnTimerTick(Event e)
 {
     var frame = _animation.Next();
     FrameChangeSignal.Emit(frame);
     if (frame.Duration > 0) {
         _timer.Delay = frame.Duration;_timer.Start();
     }
 }
Ejemplo n.º 14
0
        /**
         *
         */
        private void removedFromStageHandler(Event e)
        {
            if (null != _popup && (_popup).Parent != null)
            {
                RemoveAndResetPopUp();
            }

            _addedToStage = false;
        }
Ejemplo n.º 15
0
        private void ContentGroupElementRemovedHandler(Event e)
        {
            ElementExistenceEvent eee = (ElementExistenceEvent)e;

            eee.Element.Owner = null;

            // Re-dispatch the event
            DispatchEvent(e);
        }
Ejemplo n.º 16
0
        private void OnTimerTick(Event e)
        {
            var frame = _animation.Next();

            FrameChangeSignal.Emit(frame);
            if (frame.Duration > 0)
            {
                _timer.Delay = frame.Duration; _timer.Start();
            }
        }
Ejemplo n.º 17
0
 /// <summary>
 /// Fires after the message is sent
 /// </summary>
 /// <param name="e"></param>
 private void MessageSentHandler(Event e)
 {
     _mask.Unmask();
     _mask = null;
     _timer.RemoveEventListener(Timer.COMPLETE, MessageSentHandler);
     Alert.Show("Info", "Message sent!", AlertButtonFlag.Ok,
                delegate
     {
         SetFocus();
     });
 }
Ejemplo n.º 18
0
// ReSharper disable VirtualMemberNeverOverriden.Global
        /// <summary>
        ///
        /// </summary>
        /// <param name="e"></param>
        protected virtual void OnButton(Event e)
// ReSharper restore VirtualMemberNeverOverriden.Global
        {
            ButtonEvent be = (ButtonEvent)e;

            if (be.ButtonId == "submit") // the default button ID for submittion
            {
                //Debug.Log("Submitting form...");
                Submit();
            }
        }
Ejemplo n.º 19
0
 /// <summary>
 /// Fires after the message is sent
 /// </summary>
 /// <param name="e"></param>
 private void LogInHandler(Event e)
 {
     _mask.Unmask();
     _mask = null;
     _timer.RemoveEventListener(Timer.COMPLETE, LogInHandler);
     DispatchLoginEvent();
     Alert.Show("Info", "You are logged in.", AlertButtonFlag.Ok,
                delegate
     {
         SetFocus();
     });
 }
Ejemplo n.º 20
0
        private void ChildRemoveHandler(Event e)
        {
            ChildExistenceChangedEvent cece = (ChildExistenceChangedEvent)e;
            var child = cece.RelatedObject;
            var index = GetChildIndex(child);

            //if (child is INavigatorContent)
            //{
            //    child.removeEventListener("labelChanged", navigatorChildChangedHandler);
            //    child.removeEventListener("iconChanged", navigatorChildChangedHandler);
            //}

            // Handle the simple case.
            if (index > _selectedIndex)
            {
                return;
            }

            var currentSelectedIndex = _selectedIndex;

            // This matches one of the two conditions:
            // 1. a view before the current was deleted, or
            // 2. the current view was deleted and it was also
            //    at the end of the stack.
            // In both cases, we need to decrement selectedIndex.
            if (index < currentSelectedIndex ||
                currentSelectedIndex == (NumberOfChildren - 1))
            {
                // If the selectedIndex was already 0, it should go to -1.
                // -1 is a special value; in order to avoid runtime errors
                // in various methods, we need to skip the range checking in
                // commitSelectedIndex() and set _selectedIndex explicitly here.
                if (currentSelectedIndex == 0)
                {
                    SelectedIndex  = -1;
                    _selectedIndex = -1;
                }
                else
                {
                    SelectedIndex--;
                }
            }
            else if (index == currentSelectedIndex)
            {
                // If we're deleting the currentSelectedIndex and there is another
                // child after it, it will become the new selected child so we
                // need to make sure it is instantiated.
                _needToInstantiateSelectedChild = true;
                InvalidateProperties();
            }
        }
Ejemplo n.º 21
0
        private void ChildRemoveHandler(Event e)
        {
            ChildExistenceChangedEvent cece = (ChildExistenceChangedEvent) e;
            var child = cece.RelatedObject;
            var index = GetChildIndex(child);
            
            //if (child is INavigatorContent)
            //{
            //    child.removeEventListener("labelChanged", navigatorChildChangedHandler);
            //    child.removeEventListener("iconChanged", navigatorChildChangedHandler);
            //}

            // Handle the simple case.
            if (index > _selectedIndex)
                return;

            var currentSelectedIndex = _selectedIndex;

            // This matches one of the two conditions:
            // 1. a view before the current was deleted, or
            // 2. the current view was deleted and it was also
            //    at the end of the stack.
            // In both cases, we need to decrement selectedIndex.
            if (index < currentSelectedIndex ||
                currentSelectedIndex == (NumberOfChildren - 1))
            {
                // If the selectedIndex was already 0, it should go to -1.
                // -1 is a special value; in order to avoid runtime errors
                // in various methods, we need to skip the range checking in
                // commitSelectedIndex() and set _selectedIndex explicitly here.
                if (currentSelectedIndex == 0)
                {
                    SelectedIndex = -1;
                    _selectedIndex = -1;
                }
                else
                {
                    SelectedIndex--;
                }
            }
            else if (index == currentSelectedIndex)
            {
                // If we're deleting the currentSelectedIndex and there is another
                // child after it, it will become the new selected child so we
                // need to make sure it is instantiated.
                _needToInstantiateSelectedChild = true;
                InvalidateProperties();
            }
        }
Ejemplo n.º 22
0
        private void RedispatchLayoutEvent(Event e)
        {
            PropertyChangeEvent pce = e as PropertyChangeEvent;

            if (null != pce)
            {
                switch (pce.Property)
                {
                case "verticalScrollPosition":
                case "horizontalScrollPosition":
                    DispatchEvent(e);
                    break;
                }
            }
        }
Ejemplo n.º 23
0
        private void SetResolution(Event e)
        {
            bool fullScreen = _chkFullScreen.Selected;
            ResolutionDescriptor resolutionDescriptor = (ResolutionDescriptor)_list.SelectedItem;

            OptionsModel.Instance.FullScreen = fullScreen;
            OptionsModel.Instance.Resolution = resolutionDescriptor;

            Resolution resolution = resolutionDescriptor.Resolution;

            Debug.Log(string.Format("Setting resoulution to {0} [full screen: {1}]", new Point(resolution.width, resolution.height), fullScreen));
            Screen.SetResolution(resolution.width, resolution.height, fullScreen);

            ExecCallback(SUBMIT);
        }
Ejemplo n.º 24
0
        /// <summary>
        /// Handler on button press
        /// </summary>
        /// <param name="e"></param>
        private void PressHandler(Event e)
        {
#if DEBUG
            if (DebugMode)
            {
                Debug.Log("Press");
            }
#endif
            if (!DictButton2Id.ContainsKey((Button)e.Target))
            {
                return;
            }

            //Hide(); // crutial - start Hide() here
            ExecCallback(DictButton2Id[(Button)e.Target]);
        }
Ejemplo n.º 25
0
 private void PressHandler(Event e)
 {
     if (e.Target == _btnCc)
     {
         var parent = (Group)_txtCc.Parent;
         parent.Visible = parent.IncludeInLayout = _btnCc.Selected;
     }
     else if (e.Target == _btnBcc)
     {
         var parent = (Group)_txtBcc.Parent;
         parent.Visible = parent.IncludeInLayout = _btnBcc.Selected;
     }
     else if (e.Target == _btnSend)
     {
         SendMessage();
         return;
     }
 }
Ejemplo n.º 26
0
        /**
         *
         *  Called when contents within the dataProvider changes.
         *
         *  Param: event The collection change event
         */
        protected virtual void DataProviderCollectionChangeHandler(Event e)
        {
            if (e is CollectionEvent)
            {
                var ce = (CollectionEvent)e;

                if (ce.Kind == CollectionEventKind.ADD)
                {
                    ItemAdded(ce.Location);
                }
                else if (ce.Kind == CollectionEventKind.REMOVE)
                {
                    ItemRemoved(ce.Location);
                }
                else if (ce.Kind == CollectionEventKind.RESET)
                {
                    // Data provider is being reset, clear out the selection
                    if (DataProvider.Length == 0)
                    {
                        SetSelectedIndex(NO_SELECTION, false);
                        SetCurrentCaretIndex(NO_CARET);
                    }
                    else
                    {
                        _dataProviderChanged = true;
                        InvalidateProperties();
                    }
                }
                else if (ce.Kind == CollectionEventKind.REPLACE ||
                         ce.Kind == CollectionEventKind.MOVE ||
                         ce.Kind == CollectionEventKind.REFRESH)
                {
                    //These cases are handled by the DataGroup skinpart
                }
            }
        }
Ejemplo n.º 27
0
 /// <summary>
 /// Fires after the message is sent
 /// </summary>
 /// <param name="e"></param>
 private void MessageSentHandler(Event e)
 {
     _mask.Unmask();
     _mask = null;
     _timer.RemoveEventListener(Timer.COMPLETE, MessageSentHandler);
     Alert.Show("Info", "Message sent!", AlertButtonFlag.Ok,
                delegate
                    {
                        SetFocus();
                    });
 }
Ejemplo n.º 28
0
 protected void ReturnHandler(Event e)
 {
     if (e.Target is TextField)
         SendMessage();
 }
Ejemplo n.º 29
0
        private void PressHandler(Event e)
        {
            Alert.Show("Info", string.Format(@"The button was pressed. The input text is:

""{0}""", _textField.Text), AlertButtonFlag.Ok, delegate { SetFocus(); });
        }
Ejemplo n.º 30
0
        /// <summary>
        /// Handler on button press
        /// </summary>
        /// <param name="e"></param>
        private void PressHandler(Event e)
        {
#if DEBUG
            if (DebugMode)
            {
                Debug.Log("Press");
            }
#endif
            if (!DictButton2Id.ContainsKey((Button)e.Target))
                return;

            //Hide(); // crutial - start Hide() here
            ExecCallback(DictButton2Id[(Button)e.Target]);
        }
Ejemplo n.º 31
0
 public void Load(Event e)
 {
     Debug.Log("Loading level 1");
     Application.LoadLevel(1);
 }
 private static void OnGizmoTimerComplete(Event e)
 {
     Hide();
 }
Ejemplo n.º 33
0
		private void LayoutUseVirtualLayoutChangedHandler(Event e)
		{
			ChangeUseVirtualLayout();
		}
Ejemplo n.º 34
0
 protected void ReturnHandler(Event e)
 {
     if (e.Target is TextField)
         DoLogin();
 }
Ejemplo n.º 35
0
 private void PressHandler(Event e)
 {
     if (e.Target == _btnSubmit)
     {
         DoLogin();
         return;
     }
 }
Ejemplo n.º 36
0
 private void OnTimerComplete(eDriven.Core.Events.Event e)
 {
     _timer.Stop();
     SystemManager.Instance.Enabled = false;
 }
Ejemplo n.º 37
0
 /// <summary>
 /// Fires after the message is sent
 /// </summary>
 /// <param name="e"></param>
 private void LogInHandler(Event e)
 {
     _mask.Unmask();
     _mask = null;
     _timer.RemoveEventListener(Timer.COMPLETE, LogInHandler);
     DispatchLoginEvent();
     Alert.Show("Info", "You are logged in.", AlertButtonFlag.Ok,
     delegate
     {
         SetFocus();
     });
 }
Ejemplo n.º 38
0
        /// <summary>
        /// Used for deffered parts
        /// </summary>
        /// <param name="e"></param>
        private void SkinPropertyChangeHandler(Event e)
        {
            if (null != SkinParts)
            {
                PropertyChangeEvent pce = (PropertyChangeEvent) e;
                string skinPartID = pce.Property;
                if (SkinParts.ContainsKey(skinPartID))
                {
                    var part = CoreReflector.GetValue(Skin, skinPartID);

                    if (pce.NewValue == null)
                    {
                        if (!(part is IFactory))
                            PartRemoved(skinPartID, part);
                        CoreReflector.SetValue(this, skinPartID, pce.NewValue);
                    }
                    else
                    {
                        part = pce.NewValue;
                        if (!(part is IFactory))
                            PartAdded(skinPartID, part);
                    }
                }
            }
        }
Ejemplo n.º 39
0
 private static void OnGizmoTimerComplete(Event e)
 {
     Hide();
 }
Ejemplo n.º 40
0
 /**
  *   
  */
 private void removedFromStageHandler(Event e)
 {
     if (null != _popup && (_popup).Parent != null)
         RemoveAndResetPopUp();
 
     _addedToStage = false;
 }
Ejemplo n.º 41
0
 private void RedispatchLayoutEvent(Event e)
 {
     PropertyChangeEvent pce = e as PropertyChangeEvent;
     if (null != pce)
     {
         switch (pce.Property)
         {
             case "verticalScrollPosition":
             case "horizontalScrollPosition":
                 DispatchEvent(e);
                 break;
         }
     }
 }
Ejemplo n.º 42
0
 public void Load(Event e)
 {
     Debug.Log("Loading level 1");
     Application.LoadLevel(1);
 }
Ejemplo n.º 43
0
        //--------------------------------------------------------------------------
        //
        //  Event Handlers
        //
        //--------------------------------------------------------------------------

        /**
         *
         */
        private void addedToStageHandler(Event e)
        {
            _addedToStage = true;
            AddOrRemovePopup();
        }
Ejemplo n.º 44
0
     //--------------------------------------------------------------------------
     //
     //  Event Handlers
     //
     //-------------------------------------------------------------------------- 
 
     /**
      *   
      */ 
     private void addedToStageHandler(Event e)
     {
         _addedToStage = true;
         AddOrRemovePopup();    
     }
Ejemplo n.º 45
0
 private void OnInspectorActiveChanged(Event e)
 {
     if (_chkInspect.Selected != OptionsModel.Instance.InspectorActive)
         _chkInspect.Selected = OptionsModel.Instance.InspectorActive;
 }
Ejemplo n.º 46
0
		/**
		 *  
		 *  Called when contents within the dataProvider changes.  
		 *
		 *  Param: event The collection change event
		 */
		protected virtual void DataProviderCollectionChangeHandler(Event e)
		{
			if (e is CollectionEvent)
			{
				var ce = (CollectionEvent) e;

				if (ce.Kind == CollectionEventKind.ADD)
				{
					ItemAdded(ce.Location);
				}
				else if (ce.Kind == CollectionEventKind.REMOVE)
				{
					ItemRemoved(ce.Location);
				}
				else if (ce.Kind == CollectionEventKind.RESET)
				{
					// Data provider is being reset, clear out the selection
					if (DataProvider.Length == 0)
					{
						SetSelectedIndex(NO_SELECTION, false);
						SetCurrentCaretIndex(NO_CARET);
					}
					else
					{
						_dataProviderChanged = true; 
						InvalidateProperties(); 
					}
				}
				else if (ce.Kind == CollectionEventKind.REPLACE ||
					ce.Kind == CollectionEventKind.MOVE ||
					ce.Kind == CollectionEventKind.REFRESH)
				{
					//These cases are handled by the DataGroup skinpart  
				}
			}
				
		}
Ejemplo n.º 47
0
 private void OnDetailsActiveChanged(Event e)
 {
     //if (_chkDetails.Selected != OptionsModel.Instance.DetailsActive)
     //_chkDetails.Selected = OptionsModel.Instance.DetailsActive;
 }
Ejemplo n.º 48
0
 private void PressHandler(Event e)
 {
     if (e.Target == _btnCc)
     {
         var parent = (Group)_txtCc.Parent;
         parent.Visible = parent.IncludeInLayout = _btnCc.Selected;
     }
     else if (e.Target == _btnBcc)
     {
         var parent = (Group)_txtBcc.Parent;
         parent.Visible = parent.IncludeInLayout = _btnBcc.Selected;
     }
     else if (e.Target == _btnSend)
     {
         SendMessage();
         return;
     }
 }
Ejemplo n.º 49
0
 private void OnRunInBackgroundChanged(Event e)
 {
     if (_chkRunInBackground.Selected != OptionsModel.Instance.RunInBackground)
         _chkRunInBackground.Selected = OptionsModel.Instance.RunInBackground;
 }
Ejemplo n.º 50
0
        private void SetResolution(Event e)
        {
            bool fullScreen = _chkFullScreen.Selected;
            ResolutionDescriptor resolutionDescriptor = (ResolutionDescriptor)_list.SelectedItem;
            
            OptionsModel.Instance.FullScreen = fullScreen;
            OptionsModel.Instance.Resolution = resolutionDescriptor;

            Resolution resolution = resolutionDescriptor.Resolution;

            Debug.Log(string.Format("Setting resoulution to {0} [full screen: {1}]", new Point(resolution.width, resolution.height), fullScreen));
            Screen.SetResolution(resolution.width, resolution.height, fullScreen);

            ExecCallback(SUBMIT);
        }
Ejemplo n.º 51
0
 private void OnVolumeChanged(Event e)
 {
     if (_sliderVolume.Value != OptionsModel.Instance.Volume)
         _sliderVolume.Value = OptionsModel.Instance.Volume;
 }
Ejemplo n.º 52
0
// ReSharper disable VirtualMemberNeverOverriden.Global
        /// <summary>
        /// 
        /// </summary>
        /// <param name="e"></param>
        protected virtual void OnButton(Event e)
// ReSharper restore VirtualMemberNeverOverriden.Global
        {
            ButtonEvent be = (ButtonEvent)e;
            if (be.ButtonId == "submit") // the default button ID for submittion
            {
                //Debug.Log("Submitting form...");
                Submit();
            }
        }
Ejemplo n.º 53
0
 private void OnDetailsActiveChanged(Event e)
 {
     //if (_chkDetails.Selected != OptionsModel.Instance.DetailsActive)
     //_chkDetails.Selected = OptionsModel.Instance.DetailsActive;
 }
Ejemplo n.º 54
0
        private void PressHandler(Event e)
        {
            Alert.Show("Info", string.Format(@"The button was pressed. The input text is:

""{0}""", _textField.Text), AlertButtonFlag.Ok, delegate { SetFocus(); });
        }
Ejemplo n.º 55
0
		private void DataProviderCollectionChangeHandler(Event e)
		{
			CollectionEvent ce = (CollectionEvent) e;

			switch (ce.Kind)
			{
				case CollectionEventKind.ADD:
				{
					// items are added
					// figure out what items were added and where
					// for virtualization also figure out if items are now in view
					AdjustAfterAdd(ce.Items, ce.Location);
					break;
				}
					
				case CollectionEventKind.REPLACE:
				{
					// items are replaced
					AdjustAfterReplace(ce.Items, ce.Location);
					break;
				}
					
				case CollectionEventKind.REMOVE:
				{
					// items are added
					// figure out what items were removed
					// for virtualization also figure out what items are now in view
					AdjustAfterRemove(ce.Items, ce.Location);
					break;
				}
					
				case CollectionEventKind.MOVE:
				{
					// one item is moved
					AdjustAfterMove(ce.Items[0], ce.Location, ce.OldLocation);
					break;
				}
					
				case CollectionEventKind.REFRESH:
				{
					// from a filter or sort...let's just reset everything
					RemoveDataProviderListener();
					_dataProviderChanged = true;
					InvalidateProperties();
					break;
				}
					
				case CollectionEventKind.RESET:
				{
					// reset everything
					RemoveDataProviderListener();                
					_dataProviderChanged = true;
					InvalidateProperties();
					break;
				}
					
				case CollectionEventKind.UPDATE:
				{
					// if a renderer is currently being updated, let's 
					// just ignore any UPDATE events.
					if (_renderersBeingUpdated)
						break;
					
					//update the renderer's data and data-dependant
					//properties. 
					for (int i = 0; i < ce.Items.Count; i++)
					{
						PropertyChangeEvent pce = (PropertyChangeEvent) ce.Items[i]; 
						if (null != pce)
						{
							int index = DataProvider.GetItemIndex(pce.Source);
                            IVisualElement renderer = _indexToRenderer[index];
                            SetUpItemRenderer(renderer, index, pce.Source); 
						}
					}
					break;
				}
			}
		}