ControlBase MethodsDocument Toolkit Help

The ControlBase type exposes the following members.

Methods

  NameDescription
Public methodAddHandler
Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element. Specify handledEventsToo as true to have the provided handler be invoked for routed event that had already been marked as handled by another element along the event route.
(Inherited from UIElement.)
Public methodApplyTemplate
Loads the relevant control template so that its parts can be referenced.
(Inherited from Control.)
Public methodArrange
Positions child objects and determines a size for a UIElement. Parent objects that implement custom layout for their child elements should call this method from their layout override implementations to form a recursive layout update.
(Inherited from UIElement.)
Protected methodArrangeOverride
Provides the behavior for the Arrange pass of Silverlight layout. Classes can override this method to define their own Arrange pass behavior.
(Inherited from FrameworkElement.)
Public methodCaptureMouse
Sets mouse capture to a UIElement.
(Inherited from UIElement.)
Public methodCheckAccess
Determines whether the calling thread has access to this object.
(Inherited from DependencyObject.)
Public methodClearValue
Clears the local value of a dependency property.
(Inherited from DependencyObject.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFindName
Retrieves an object that has the specified identifier name.
(Inherited from FrameworkElement.)
Public methodFocus
Attempts to set the focus on the control.
(Inherited from Control.)
Public methodGetAnimationBaseValue
Returns any base value established for a Silverlight dependency property, which would apply in cases where an animation is not active.
(Inherited from DependencyObject.)
Public methodGetBindingExpression
Retrieves the BindingExpression for a dependency property where a binding is established.
(Inherited from FrameworkElement.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Protected methodGetTemplateChild(String)
Retrieves the named element in the instantiated ControlTemplate visual tree.
(Inherited from Control.)
Protected methodGetTemplateChildT(String, Boolean)
Gets the template child and checks whether a required child exists and is of the correct type.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
Returns the current effective value of a dependency property from a DependencyObject.
(Inherited from DependencyObject.)
Public methodInvalidateArrange
Invalidates the arrange state (layout) for a UIElement. After the invalidation, the UIElement will have its layout updated, which will occur asynchronously.
(Inherited from UIElement.)
Public methodInvalidateMeasure
Invalidates the measurement state (layout) for a UIElement.
(Inherited from UIElement.)
Public methodMeasure
Updates the DesiredSize of a UIElement. Typically, objects that implement custom layout for their layout children call this method from their own MeasureOverride(Size) implementations to form a recursive layout update.
(Inherited from UIElement.)
Protected methodMeasureOverride
Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.
(Inherited from FrameworkElement.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnApplyTemplate
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.
(Inherited from FrameworkElement.)
Protected methodOnCreateAutomationPeer
When implemented in a derived class, returns class-specific AutomationPeer implementations for the Silverlight automation infrastructure.
(Inherited from UIElement.)
Protected methodOnDoubleTap
Called before the DoubleTap event occurs.
(Inherited from Control.)
Protected methodOnDragEnter
Called before the DragEnter event occurs.
(Inherited from Control.)
Protected methodOnDragLeave
Called before the DragLeave event occurs.
(Inherited from Control.)
Protected methodOnDragOver
Called before the DragOver event occurs.
(Inherited from Control.)
Protected methodOnDrop
Called before the Drop event occurs.
(Inherited from Control.)
Protected methodOnGotFocus
Called before the GotFocus event occurs.
(Inherited from Control.)
Protected methodOnHold
Called before the Hold event occurs.
(Inherited from Control.)
Protected methodOnKeyDown
Called before the KeyDown event occurs.
(Inherited from Control.)
Protected methodOnKeyUp
Called before the KeyUp event occurs.
(Inherited from Control.)
Protected methodOnLostFocus
Called before the LostFocus event occurs.
(Inherited from Control.)
Protected methodOnLostMouseCapture
Called before the LostMouseCapture event occurs to provide handling for the event in a derived class without attaching a delegate.
(Inherited from Control.)
Protected methodOnManipulationCompleted
Called before the ManipulationCompleted event occurs.
(Inherited from Control.)
Protected methodOnManipulationDelta
Called before the ManipulationDelta event occurs.
(Inherited from Control.)
Protected methodOnManipulationStarted
Called before the ManipulationStarted event occurs.
(Inherited from Control.)
Protected methodOnMouseEnter
Called before the MouseEnter event occurs.
(Inherited from Control.)
Protected methodOnMouseLeave
Called before the MouseLeave event occurs.
(Inherited from Control.)
Protected methodOnMouseLeftButtonDown
Called before the MouseLeftButtonDown event occurs.
(Inherited from Control.)
Protected methodOnMouseLeftButtonUp
Called before the MouseLeftButtonUp event occurs.
(Inherited from Control.)
Protected methodOnMouseMove
Called before the MouseMove event occurs.
(Inherited from Control.)
Protected methodOnMouseRightButtonDown
Called before the MouseRightButtonDown event occurs.
(Inherited from Control.)
Protected methodOnMouseRightButtonUp
Called before the MouseRightButtonUp event occurs.
(Inherited from Control.)
Protected methodOnMouseWheel
Called before the MouseWheel event occurs to provide handling for the event in a derived class without attaching a delegate.
(Inherited from Control.)
Protected methodOnTap
Called before the Tap event occurs.
(Inherited from Control.)
Protected methodOnTextInput
Called before the TextInput event occurs.
(Inherited from Control.)
Protected methodOnTextInputStart
Called before the TextInputStart event occurs.
(Inherited from Control.)
Protected methodOnTextInputUpdate
Called before the TextInputUpdate event occurs.
(Inherited from Control.)
Public methodReadLocalValue
Returns the local value of a dependency property, if a local value is set.
(Inherited from DependencyObject.)
Public methodReleaseMouseCapture
Removes mouse capture from a UIElement. After this call, typically no object holds mouse capture.
(Inherited from UIElement.)
Public methodRemoveHandler
Removes the specified routed event handler from this UIElement.
(Inherited from UIElement.)
Public methodSetBinding
Attaches a binding to a FrameworkElement, using the provided binding object, and returns a BindingExpressionBase for possible later use.
(Inherited from FrameworkElement.)
Public methodSetValue
Sets the local value of a dependency property on a DependencyObject.
(Inherited from DependencyObject.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTransformToVisual
Returns a transform object that can be used to transform coordinates from the UIElement to the specified object.
(Inherited from UIElement.)
Public methodUpdateLayout
Ensures that all positions of child objects of a UIElement are properly updated for layout.
(Inherited from UIElement.)
Top
Extension Methods

  NameDescription
Public Extension MethodAncestorsAndSelf
Returns a collection of visual elements that contain specified object, and the ancestors of specified object.
(Defined by DependencyObjectExtensions.)
Public Extension MethodDescendants
Retrieves all visual descendants of a framework element.
(Defined by DependencyObjectExtensions.)
Public Extension MethodElements
Retrieves the visual elements of a framework element.
(Defined by DependencyObjectExtensions.)
Public Extension MethodSafeTransformToVisual
Safely returns a transform object. Returns null a transform object could not be created.
(Defined by DependencyObjectExtensions.)
Top
See Also

Reference