System.Windows.Controls.Control.Initialize C# (CSharp) Method

Initialize() private method

private Initialize ( ) : void
return void
		private new void Initialize ()
		{
			// FIXME this should not be handled using Events.AddHandler, since those handlers are removable via the plugin

			// this needs to be handled like the OnEventHandlers below, where it's called before the event
			// is raised.  the eventargs is a problem, though, since OnEventHandlers need to pass the native handle
			// down to the unmanaged layer which then emits the event (using that native handle as the eventargs
			// parameter).
			Events.AddHandler (this, EventIds.Control_IsEnabledChangedEvent, on_isenabledproperty_changed);

			Events.AddOnEventHandler (this, EventIds.UIElement_GotFocusEvent, on_got_focus);
			Events.AddOnEventHandler (this, EventIds.UIElement_LostFocusEvent, on_lost_focus);
			Events.AddOnEventHandler (this, EventIds.UIElement_LostMouseCaptureEvent, on_lost_mouse_capture);
			Events.AddOnEventHandler (this, EventIds.UIElement_KeyDownEvent, on_key_down);
			Events.AddOnEventHandler (this, EventIds.UIElement_KeyUpEvent, on_key_up);
			Events.AddOnEventHandler (this, EventIds.UIElement_MouseEnterEvent, on_mouse_enter);
			Events.AddOnEventHandler (this, EventIds.UIElement_MouseLeaveEvent, on_mouse_leave);
			Events.AddOnEventHandler (this, EventIds.UIElement_MouseMoveEvent, on_mouse_move);
			Events.AddOnEventHandler (this, EventIds.UIElement_MouseLeftButtonDownEvent, on_mouse_left_button_down);
			Events.AddOnEventHandler (this, EventIds.UIElement_MouseLeftButtonUpEvent, on_mouse_left_button_up);
			Events.AddOnEventHandler (this, EventIds.UIElement_MouseRightButtonDownEvent, on_mouse_right_button_down);
			Events.AddOnEventHandler (this, EventIds.UIElement_MouseRightButtonUpEvent, on_mouse_right_button_up);
			Events.AddOnEventHandler (this, EventIds.UIElement_MouseWheelEvent, on_mouse_wheel);
		}