ContentControl Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Constitutes the base class for all controls that contain a single piece of content.

Namespace:  Microsoft.SPOT.Presentation.Controls
Assembly:  Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)

public abstract class ContentControl : Control

The ContentControl type exposes the following members.

  NameDescription
Protected methodContentControlInitializes a new instance of the ContentControl class.
Top

  NameDescription
Public propertyActualHeightGets the rendered height of this element. (Inherited from UIElement.)
Public propertyActualWidthGets the rendered width of this element. (Inherited from UIElement.)
Public propertyBackgroundGets or sets the brush used to paint a control's background. (Inherited from Control.)
Public propertyChildGets or sets a child element (child control) contained in the current ContentControl object.
Public propertyFontGets or sets a control's font. (Inherited from Control.)
Public propertyForegroundGets or sets the brush used to paint a control's foreground. (Inherited from Control.)
Public propertyHeightGets or sets the suggested height of this element. (Inherited from UIElement.)
Public propertyHorizontalAlignmentGets or sets the horizontal alignment characteristics that are applied to this element when it is composed within a parent element, such as a Panel. (Inherited from UIElement.)
Protected propertyInstanceEventHandlersStoreGets the event-handler store for this element. (Inherited from UIElement.)
Public propertyIsArrangeValidGets a value indicating whether the computed size and position of child elements in this element's layout are valid. (Inherited from UIElement.)
Public propertyIsEnabledGets or sets a value indicating whether this element is enabled in the user interface (UI). (Inherited from UIElement.)
Public propertyIsFocusedGets a value that determines whether this element has logical focus. (Inherited from UIElement.)
Public propertyIsMeasureValidGets a value indicating whether the current size returned by layout measure is valid. (Inherited from UIElement.)
Public propertyIsVisibleGets a value indicating whether this element is visible in the user interface (UI). (Inherited from UIElement.)
Protected propertyLogicalChildrenGets an enumerator for this element's logical child elements. (Inherited from UIElement.)
Public propertyParentGets the logical parent element of this element. (Inherited from UIElement.)
Public propertyRootUIElementGets the logical root element of this element. (Inherited from UIElement.)
Public propertyVerticalAlignmentGets or sets the vertical alignment characteristics that are applied to this element when it is composed within a parent element, such as a Panel. (Inherited from UIElement.)
Public propertyVisibilityGets or sets the user interface (UI) visibility of this element. (Inherited from UIElement.)
Public propertyWidthGets or sets the suggested width of this element. (Inherited from UIElement.)
Top

  NameDescription
Public methodAddHandlerAdds a routed-event handler for a specified routed event, adding the handler to the current element's event handler collection. (Inherited from UIElement.)
Public methodAddToEventRouteAdds handlers to the specified event route for the current element's event handler collection. (Inherited from UIElement.)
Public methodArrangePositions child elements in a particular region on the screen. (Inherited from UIElement.)
Protected methodArrangeOverridePositions child elements and determines a size for a UIElement-derived class when implemented in a derived class. (Inherited from UIElement.)
Public methodCheckAccessDetermines whether the calling thread has access to the current DispatcherObject object. (Inherited from DispatcherObject.)
Public methodChildElementFromPointReturns the most recently created child control that is located at a specified point on the display. (Inherited from UIElement.)
Public methodContainsPointDetermines whether a specified point is contained by this UIElement. (Inherited from UIElement.)
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetDesiredSizeGets the current element's size, as computed during the measure pass of the layout process. (Inherited from UIElement.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetLayoutOffsetGets the current element's offset, relative to the upper-left corner of the screen. (Inherited from UIElement.)
Public methodGetMarginGets the width of the current element's margins. (Inherited from UIElement.)
Public methodGetPointerTargetReturns the visible child of this UIElement that contains a specified screen point. (Inherited from UIElement.)
Public methodGetRenderSizeGets the final render size of the current element. (Inherited from UIElement.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetUnclippedSizeReturns the unclipped size of this element. (Inherited from UIElement.)
Public methodInvalidateInvalidates the rendering of the current element and forces a complete new layout pass. (Inherited from UIElement.)
Public methodInvalidateArrangeInvalidates the arrange state of the current element's layout. (Inherited from UIElement.)
Public methodInvalidateMeasureInvalidates the measurement state of the current element's layout. (Inherited from UIElement.)
Public methodInvalidateRectInvalidates the specified rectangle. (Inherited from UIElement.)
Public methodMeasureDetermines the size requirements for the layout of a child element. (Inherited from UIElement.)
Protected methodMeasureOverrideRe-measures a control for layout on a display device. (Overrides UIElement..::..MeasureOverride(Int32, Int32, Int32%, Int32%).)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnButtonDownAdds class handling for an unhandled ButtonDownEvent attached event when that event reaches, by way of its route, an element that is derived from the UIElement class. (Inherited from UIElement.)
Protected methodOnButtonUpAdds class handling for an unhandled ButtonUpEvent attached event when that event reaches, by way of its route, an element that is derived from the UIElement class. (Inherited from UIElement.)
Protected methodOnChildDesiredSizeChangedSupports the layout system when a child element is resized. (Inherited from UIElement.)
Protected methodOnChildrenChangedCalled when the UIElementCollection of this UIElement is edited. (Inherited from UIElement.)
Protected methodOnGenericEventCalled when this UIElement generates a generic event. (Inherited from UIElement.)
Protected methodOnGotFocusAdds class handling for an unhandled GotFocusEvent attached event when that event reaches, by way of its route, an element that is derived from the UIElement class. (Inherited from UIElement.)
Protected methodOnLostFocusAdds class handling for an unhandled LostFocusEvent attached event when that event reaches, by way of its route, an element that is derived from the UIElement class. (Inherited from UIElement.)
Protected methodOnPreviewButtonDownAdds class handling for an unhandled PreviewButtonDownEvent attached event when that event reaches, by way of its route, an element that is derived from the UIElement class. (Inherited from UIElement.)
Protected methodOnPreviewButtonUpAdds class handling for an unhandled PreviewButtonUpEvent attached event when that event reaches, by way of its route, an element that is derived from the UIElement class. (Inherited from UIElement.)
Public methodOnRenderDraws a control to a display device. (Inherited from Control.)
Protected methodOnTouchDownHandles a touch down (or stylus down) event. (Inherited from UIElement.)
Protected methodOnTouchGestureChangedHandles a TouchGestureChanged event. (Inherited from UIElement.)
Protected methodOnTouchGestureEndedHandles a TouchGestureEnd event. (Inherited from UIElement.)
Protected methodOnTouchGestureStartedHandles a TouchGestureStart event. (Inherited from UIElement.)
Protected methodOnTouchMoveInvoked when an unhandled TouchMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement.)
Protected methodOnTouchUpInvoked when an unhandled TouchUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement.)
Public methodPointToClientReturns the client UIElement that is the top-level ancestor of this UIElement object, and expresses the given point in the coordinate space of that ancestor. (Inherited from UIElement.)
Public methodPointToScreenConverts a point expressed in the coordinate space of this UIElement into screen coordinates. (Inherited from UIElement.)
Public methodRaiseEventRaises a specific routed event. (Inherited from UIElement.)
Protected methodRenderRecursiveRenders this element and all its child elements. (Inherited from UIElement.)
Public methodSetMargin(Int32)Sets the size of the current element's margin, using the same (specified) width for each of the four sides of the element. (Inherited from UIElement.)
Public methodSetMargin(Int32, Int32, Int32, Int32)Sets the size of the current element's margin, using a specified width for each of the four sides of the element. (Inherited from UIElement.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodUpdateLayoutEnsures that all visual child elements of the current element are properly updated for layout. (Inherited from UIElement.)
Public methodVerifyAccessDetermines whether the calling thread has access to the current DispatcherObject object. (Inherited from DispatcherObject.)
Top

  NameDescription
Public eventIsEnabledChangedOccurs when the value of the IsEnabled property changes for the current element. (Inherited from UIElement.)
Public eventIsVisibleChangedOccurs when the value of the IsVisible property changes for the current element. (Inherited from UIElement.)
Public eventTouchDownOccurs when the user initially touches the tablet screen or puts the tip of the stylus onto the tablet screen. (Inherited from UIElement.)
Public eventTouchGestureChangedIndicates that a touch or stylus gesture changed. (Inherited from UIElement.)
Public eventTouchGestureEndIndicates that a touch or stylus gesture ended. (Inherited from UIElement.)
Public eventTouchGestureStartIndicates that a touch or stylus gesture started. (Inherited from UIElement.)
Public eventTouchMoveOccurs when the user's finger or stylus moves while it is touching the tablet. (Inherited from UIElement.)
Public eventTouchUpOccurs when the user raises their finger or stylus from the touch screen. (Inherited from UIElement.)
Top

  NameDescription
Protected field_backgroundContains the brush used to paint a control's background. (Inherited from Control.)
Protected field_fontSpecifies the current font used for text in a control. (Inherited from Control.)
Protected field_foregroundContains the brush used to paint a control's foreground. (Inherited from Control.)
Protected field_horizontalAlignmentSpecifies the horizontal alignment characteristics that are applied to the current element when it is composed within a parent element, such as a Panel object. (Inherited from UIElement.)
Protected field_verticalAlignmentSpecifies the vertical alignment characteristics that are applied to the current element when it is composed within a parent element, such as a Panel object. (Inherited from UIElement.)
Public fieldDispatcherContains the Dispatcher object that the current DispatcherObject object is associated with. (Inherited from DispatcherObject.)
Top

Note that ContentControl objects have a limited default style. Your program can instantiate a ContentControl object (that is, a control), but its appearance will be very simple. If you want to enhance the appearance of the control, derive a new class from ContentControl. The ContentControl class is useful for creating custom controls because it provides a model for controls that have a single piece of content.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: