TextBlock Class

Definition

Provides a lightweight control for displaying small amounts of flow content.

[System.Windows.Localizability(System.Windows.LocalizationCategory.Text)]
[System.Windows.Markup.ContentProperty("Inlines")]
public class TextBlock : System.Windows.FrameworkElement, IServiceProvider, System.Windows.IContentHost
Inheritance
Attributes
Implements

Examples

The following example shows how to use the TextBlock element.

<TextBlock Name="textBlock1" TextWrapping="Wrap">
  <Bold>TextBlock</Bold> is designed to be <Italic>lightweight</Italic>,
  and is geared specifically at integrating <Italic>small</Italic> portions
  of flow content into a UI.
</TextBlock>
<Button Width="100" Margin="10">Click Me</Button>
<TextBlock  Name="textBlock2" 
  TextWrapping="Wrap" Background="AntiqueWhite" TextAlignment="Center"
>
  By default, a TextBlock provides no UI beyond simply displaying its contents.
</TextBlock>
<Button Width="100" Margin="10">Click Me</Button>

The following figure shows how this example renders.

Screenshot: TextBlocks  and buttons

The following example shows how to shows how to achieve similar results programmatically.

TextBlock textBlock1 = new TextBlock();
TextBlock textBlock2 = new TextBlock();

textBlock1.TextWrapping = textBlock2.TextWrapping = TextWrapping.Wrap;
textBlock2.Background = Brushes.AntiqueWhite;
textBlock2.TextAlignment = TextAlignment.Center;

textBlock1.Inlines.Add(new Bold(new Run("TextBlock")));
textBlock1.Inlines.Add(new Run(" is designed to be "));
textBlock1.Inlines.Add(new Italic(new Run("lightweight")));
textBlock1.Inlines.Add(new Run(", and is geared specifically at integrating "));
textBlock1.Inlines.Add(new Italic(new Run("small")));
textBlock1.Inlines.Add(new Run(" portions of flow content into a UI."));

textBlock2.Text =
    "By default, a TextBlock provides no UI beyond simply displaying its contents.";
Dim textBlock1 As New TextBlock()
Dim textBlock2 As New TextBlock()

textBlock2.TextWrapping = TextWrapping.Wrap
textBlock1.TextWrapping = textBlock2.TextWrapping
textBlock2.Background = Brushes.AntiqueWhite
textBlock2.TextAlignment = TextAlignment.Center

textBlock1.Inlines.Add(New Bold(New Run("TextBlock")))
textBlock1.Inlines.Add(New Run(" is designed to be "))
textBlock1.Inlines.Add(New Italic(New Run("lightweight")))
textBlock1.Inlines.Add(New Run(", and is geared specifically at integrating "))
textBlock1.Inlines.Add(New Italic(New Run("small")))
textBlock1.Inlines.Add(New Run(" portions of flow content into a UI."))

textBlock2.Text = "By default, a TextBlock provides no UI beyond simply displaying its contents."

Remarks

A TextBlock can contain a string in its Text property or Inline flow content elements, such as Bold, Hyperlink, and InlineUIContainer, in its Inlines property.

TextBlock is designed to be lightweight, and is geared specifically at integrating small portions of flow content into a user interface (UI). TextBlock is optimized for single-line display, and provides good performance for displaying up to a few lines of content.

TextBlock is not optimized for scenarios that need to display more than a few lines of content; for such scenarios, a FlowDocument coupled with an appropriate viewing control is a better choice than TextBlock, in terms of performance. After TextBlock, FlowDocumentScrollViewer is the next lightest-weight control for displaying flow content, and simply provides a scrolling content area with minimal UI. FlowDocumentPageViewer is optimized around "page-at-a-time" viewing mode for flow content. Finally, FlowDocumentReader supports the richest set functionality for viewing flow content, but is correspondingly heavier-weight.

Horizontally aligning text within a TextBlock is done with the TextAlignment property. Aligning the TextBlock within the layout of the page is done with the HorizontalAlignment and VerticalAlignment properties.

Constructors

TextBlock()

Initializes a new instance of the TextBlock class.

TextBlock(Inline)

Initializes a new instance of the TextBlock class, adding a specified Inline element as the initial display content.

Fields

BackgroundProperty

Identifies the Background dependency property.

BaselineOffsetProperty

Identifies the BaselineOffset dependency property.

FontFamilyProperty

Identifies the FontFamily dependency property.

FontSizeProperty

Identifies the FontSize dependency property.

FontStretchProperty

Identifies the FontStretch dependency property.

FontStyleProperty

Identifies the FontStyle dependency property.

FontWeightProperty

Identifies the FontWeight dependency property.

ForegroundProperty

Identifies the Foreground dependency property.

IsHyphenationEnabledProperty

Identifies the IsHyphenationEnabled dependency property.

LineHeightProperty

Identifies the LineHeight dependency property.

LineStackingStrategyProperty

Identifies the LineStackingStrategy dependency property.

PaddingProperty

Identifies the Padding dependency property.

TextAlignmentProperty

Identifies the TextAlignment dependency property.

TextDecorationsProperty

Identifies the TextDecorations dependency property.

TextEffectsProperty

Identifies the TextEffects dependency property.

TextProperty

Identifies the Text dependency property.

TextTrimmingProperty

Identifies the TextTrimming dependency property.

TextWrappingProperty

Identifies the TextWrapping dependency property.

Properties

Background

Gets or sets the Brush used to fill the background of content area.

BaselineOffset

Gets or sets the amount by which each line of text is offset from the baseline.

BreakAfter

Gets a LineBreakCondition that indicates how content should break after the current element.

BreakBefore

Gets a LineBreakCondition that indicates how content should break before the current element.

ContentEnd

Gets a TextPointer to the end of content in the TextBlock.

ContentStart

Gets a TextPointer to the beginning of content in the TextBlock.

FontFamily

Gets or sets the preferred top-level font family for the TextBlock.

FontSize

Gets or sets the top-level font size for the TextBlock.

FontStretch

Gets or sets the top-level font-stretching characteristics for the TextBlock.

FontStyle

Gets or sets the top-level font style for the TextBlock.

FontWeight

Gets or sets the top-level font weight for the TextBlock.

Foreground

Gets or sets the Brush to apply to the text contents of the TextBlock.

HostedElementsCore

Gets an enumerator that can be used iterate the elements hosted by this TextBlock.

Inlines

Gets an InlineCollection containing the top-level Inline elements that comprise the contents of the TextBlock.

IsHyphenationEnabled

Gets or sets a value that indicates whether automatic hyphenation of words is enabled or disabled.

LineHeight

Gets or sets the height of each line of content.

LineStackingStrategy

Gets or sets the mechanism by which a line box is determined for each line of text within the TextBlock.

LogicalChildren

Gets an enumerator that can iterate the logical children of the TextBlock.

Padding

Gets or sets a value that indicates the thickness of padding space between the boundaries of the content area, and the content displayed by a TextBlock.

Text

Gets or sets the text contents of a TextBlock.

TextAlignment

Gets or sets a value that indicates the horizontal alignment of text content.

TextDecorations

Gets or sets a TextDecorationCollection that contains the effects to apply to the text of a TextBlock.

TextEffects

Gets or sets the effects to apply to the text content in this element.

TextTrimming

Gets or sets the text trimming behavior to employ when content overflows the content area.

TextWrapping

Gets or sets how the TextBlock should wrap text.

Typography

Gets the currently effective typography variations for the contents of this element.

VisualChildrenCount

Gets the number of Visual children hosted by the TextBlock.

Methods

ArrangeOverride(Size)

Positions child elements and determines a size for the TextBlock.

GetBaselineOffset(DependencyObject)

Returns the value of the BaselineOffset attached property for a specified dependency object.

GetFontFamily(DependencyObject)

Returns the value of the FontFamilyProperty attached property for a specified dependency object.

GetFontSize(DependencyObject)

Returns the value of the FontSize attached property for a specified dependency object.

GetFontStretch(DependencyObject)

Returns the value of the FontStretch attached property for a specified dependency object.

GetFontStyle(DependencyObject)

Returns the value of the FontStyle attached property for a specified dependency object.

GetFontWeight(DependencyObject)

Returns the value of the FontWeight attached property for a specified dependency object.

GetForeground(DependencyObject)

Returns the value of the Foreground attached property for a specified dependency object.

GetLineHeight(DependencyObject)

Returns the value of the LineHeight attached property for a specified dependency object.

GetLineStackingStrategy(DependencyObject)

Returns the value of the LineStackingStrategy attached property for a specified dependency object.

GetPositionFromPoint(Point, Boolean)

Returns a TextPointer to the position closest to a specified Point.

GetRectanglesCore(ContentElement)

Returns a read-only collection of bounding rectangles for a specified ContentElement.

GetTextAlignment(DependencyObject)

Returns the value of the TextAlignment attached property for a specified dependency object.

GetVisualChild(Int32)

Returns the Visual child at a specified index.

HitTestCore(PointHitTestParameters)

Returns a PointHitTestResult for specified PointHitTestParameters.

InputHitTestCore(Point)

Returns the IInputElement at a specified Point within the TextBlock.

MeasureOverride(Size)

Called to re-measure the TextBlock.

OnChildDesiredSizeChangedCore(UIElement)

Called when a child element deriving from UIElement changes its DesiredSize.

OnCreateAutomationPeer()

Creates and returns an AutomationPeer object for this TextBlock.

OnPropertyChanged(DependencyPropertyChangedEventArgs)

Called when the value one or more hosted dependency properties changes.

OnRender(DrawingContext)

Renders the contents of a TextBlock.

SetBaselineOffset(DependencyObject, Double)

Sets the value of the BaselineOffset attached property on a specified dependency object.

SetFontFamily(DependencyObject, FontFamily)

Sets the value of the FontFamily attached property on a specified dependency object.

SetFontSize(DependencyObject, Double)

Sets the value of the FontSize attached property on a specified dependency object.

SetFontStretch(DependencyObject, FontStretch)

Sets the value of the FontStretch attached property on a specified dependency object.

SetFontStyle(DependencyObject, FontStyle)

Sets the value of the FontStyle attached property on a specified dependency object.

SetFontWeight(DependencyObject, FontWeight)

Sets the value of the FontWeight attached property on a specified dependency object.

SetForeground(DependencyObject, Brush)

Sets the value of the Foreground attached property on a specified dependency object.

SetLineHeight(DependencyObject, Double)

Sets the value of the LineHeight attached property on a specified dependency object.

SetLineStackingStrategy(DependencyObject, LineStackingStrategy)

Sets the value of the LineStackingStrategy attached property on a specified dependency object.

SetTextAlignment(DependencyObject, TextAlignment)

Sets the value of the TextAlignment attached property on a specified dependency object.

ShouldSerializeBaselineOffset()

Returns a value that indicates whether the effective value of the BaselineOffset property should be serialized during serialization of a TextBlock object.

ShouldSerializeInlines(XamlDesignerSerializationManager)

Returns a value that indicates whether the effective value of the Inlines property should be serialized during serialization of a TextBlock object.

ShouldSerializeText()

Returns a value that indicates whether the effective value of the Text property should be serialized during serialization of a TextBlock object.

Equals(Object, Object) Inherited from Object
GetType() Inherited from Object
MemberwiseClone() Inherited from Object
ReferenceEquals(Object, Object) Inherited from Object
ToString() Inherited from Object
ClearValue(DependencyProperty) Inherited from DependencyObject
ClearValue(DependencyPropertyKey) Inherited from DependencyObject
CoerceValue(DependencyProperty) Inherited from DependencyObject
DependencyObjectType Inherited from DependencyObject
Equals(Object) Inherited from DependencyObject
GetHashCode() Inherited from DependencyObject
GetLocalValueEnumerator() Inherited from DependencyObject
GetValue(DependencyProperty) Inherited from DependencyObject
InvalidateProperty(DependencyProperty) Inherited from DependencyObject
IsSealed Inherited from DependencyObject
ReadLocalValue(DependencyProperty) Inherited from DependencyObject
SetCurrentValue(DependencyProperty, Object) Inherited from DependencyObject
SetValue(DependencyProperty, Object) Inherited from DependencyObject
SetValue(DependencyPropertyKey, Object) Inherited from DependencyObject
ShouldSerializeProperty(DependencyProperty) Inherited from DependencyObject
ActualHeight Inherited from FrameworkElement
ActualHeightProperty Inherited from FrameworkElement
ActualWidth Inherited from FrameworkElement
ActualWidthProperty Inherited from FrameworkElement
AddLogicalChild(Object) Inherited from FrameworkElement
ApplyTemplate() Inherited from FrameworkElement
ArrangeCore(Rect) Inherited from FrameworkElement
BeginInit() Inherited from FrameworkElement
BeginStoryboard(Storyboard) Inherited from FrameworkElement
BeginStoryboard(Storyboard, HandoffBehavior) Inherited from FrameworkElement
BeginStoryboard(Storyboard, HandoffBehavior, Boolean) Inherited from FrameworkElement
BindingGroup Inherited from FrameworkElement
BindingGroupProperty Inherited from FrameworkElement
BringIntoView() Inherited from FrameworkElement
BringIntoView(Rect) Inherited from FrameworkElement
ContextMenu Inherited from FrameworkElement
ContextMenuClosing Inherited from FrameworkElement
ContextMenuClosingEvent Inherited from FrameworkElement
ContextMenuOpening Inherited from FrameworkElement
ContextMenuOpeningEvent Inherited from FrameworkElement
ContextMenuProperty Inherited from FrameworkElement
Cursor Inherited from FrameworkElement
CursorProperty Inherited from FrameworkElement
DataContext Inherited from FrameworkElement
DataContextChanged Inherited from FrameworkElement
DataContextProperty Inherited from FrameworkElement
DefaultStyleKey Inherited from FrameworkElement
DefaultStyleKeyProperty Inherited from FrameworkElement
EndInit() Inherited from FrameworkElement
FindName(String) Inherited from FrameworkElement
FindResource(Object) Inherited from FrameworkElement
FlowDirection Inherited from FrameworkElement
FlowDirectionProperty Inherited from FrameworkElement
FocusVisualStyle Inherited from FrameworkElement
FocusVisualStyleProperty Inherited from FrameworkElement
ForceCursor Inherited from FrameworkElement
ForceCursorProperty Inherited from FrameworkElement
GetBindingExpression(DependencyProperty) Inherited from FrameworkElement
GetFlowDirection(DependencyObject) Inherited from FrameworkElement
GetLayoutClip(Size) Inherited from FrameworkElement
GetTemplateChild(String) Inherited from FrameworkElement
GetUIParentCore() Inherited from FrameworkElement
Height Inherited from FrameworkElement
HeightProperty Inherited from FrameworkElement
HorizontalAlignment Inherited from FrameworkElement
HorizontalAlignmentProperty Inherited from FrameworkElement
InheritanceBehavior Inherited from FrameworkElement
Initialized Inherited from FrameworkElement
InputScope Inherited from FrameworkElement
InputScopeProperty Inherited from FrameworkElement
IsInitialized Inherited from FrameworkElement
IsLoaded Inherited from FrameworkElement
Language Inherited from FrameworkElement
LanguageProperty Inherited from FrameworkElement
LayoutTransform Inherited from FrameworkElement
LayoutTransformProperty Inherited from FrameworkElement
Loaded Inherited from FrameworkElement
LoadedEvent Inherited from FrameworkElement
Margin Inherited from FrameworkElement
MarginProperty Inherited from FrameworkElement
MaxHeight Inherited from FrameworkElement
MaxHeightProperty Inherited from FrameworkElement
MaxWidth Inherited from FrameworkElement
MaxWidthProperty Inherited from FrameworkElement
MeasureCore(Size) Inherited from FrameworkElement
MinHeight Inherited from FrameworkElement
MinHeightProperty Inherited from FrameworkElement
MinWidth Inherited from FrameworkElement
MinWidthProperty Inherited from FrameworkElement
MoveFocus(TraversalRequest) Inherited from FrameworkElement
Name Inherited from FrameworkElement
NameProperty Inherited from FrameworkElement
OnApplyTemplate() Inherited from FrameworkElement
OnContextMenuClosing(ContextMenuEventArgs) Inherited from FrameworkElement
OnContextMenuOpening(ContextMenuEventArgs) Inherited from FrameworkElement
OnGotFocus(RoutedEventArgs) Inherited from FrameworkElement
OnInitialized(EventArgs) Inherited from FrameworkElement
OnRenderSizeChanged(SizeChangedInfo) Inherited from FrameworkElement
OnStyleChanged(Style, Style) Inherited from FrameworkElement
OnToolTipClosing(ToolTipEventArgs) Inherited from FrameworkElement
OnToolTipOpening(ToolTipEventArgs) Inherited from FrameworkElement
OnVisualParentChanged(DependencyObject) Inherited from FrameworkElement
OverridesDefaultStyle Inherited from FrameworkElement
OverridesDefaultStyleProperty Inherited from FrameworkElement
Parent Inherited from FrameworkElement
ParentLayoutInvalidated(UIElement) Inherited from FrameworkElement
PredictFocus(FocusNavigationDirection) Inherited from FrameworkElement
RegisterName(String, Object) Inherited from FrameworkElement
RemoveLogicalChild(Object) Inherited from FrameworkElement
RequestBringIntoView Inherited from FrameworkElement
RequestBringIntoViewEvent Inherited from FrameworkElement
Resources Inherited from FrameworkElement
SetBinding(DependencyProperty, String) Inherited from FrameworkElement
SetBinding(DependencyProperty, BindingBase) Inherited from FrameworkElement
SetFlowDirection(DependencyObject, FlowDirection) Inherited from FrameworkElement
SetResourceReference(DependencyProperty, Object) Inherited from FrameworkElement
ShouldSerializeResources() Inherited from FrameworkElement
ShouldSerializeStyle() Inherited from FrameworkElement
ShouldSerializeTriggers() Inherited from FrameworkElement
SizeChanged Inherited from FrameworkElement
SizeChangedEvent Inherited from FrameworkElement
SourceUpdated Inherited from FrameworkElement
Style Inherited from FrameworkElement
StyleProperty Inherited from FrameworkElement
IQueryAmbient.IsAmbientPropertyAvailable(String) Inherited from FrameworkElement
Tag Inherited from FrameworkElement
TagProperty Inherited from FrameworkElement
TargetUpdated Inherited from FrameworkElement
TemplatedParent Inherited from FrameworkElement
ToolTip Inherited from FrameworkElement
ToolTipClosing Inherited from FrameworkElement
ToolTipClosingEvent Inherited from FrameworkElement
ToolTipOpening Inherited from FrameworkElement
ToolTipOpeningEvent Inherited from FrameworkElement
ToolTipProperty Inherited from FrameworkElement
Triggers Inherited from FrameworkElement
TryFindResource(Object) Inherited from FrameworkElement
Unloaded Inherited from FrameworkElement
UnloadedEvent Inherited from FrameworkElement
UnregisterName(String) Inherited from FrameworkElement
UpdateDefaultStyle() Inherited from FrameworkElement
UseLayoutRounding Inherited from FrameworkElement
UseLayoutRoundingProperty Inherited from FrameworkElement
VerticalAlignment Inherited from FrameworkElement
VerticalAlignmentProperty Inherited from FrameworkElement
Width Inherited from FrameworkElement
WidthProperty Inherited from FrameworkElement
AddVisualChild(Visual) Inherited from Visual
FindCommonVisualAncestor(DependencyObject) Inherited from Visual
IsAncestorOf(DependencyObject) Inherited from Visual
IsDescendantOf(DependencyObject) Inherited from Visual
OnDpiChanged(DpiScale, DpiScale) Inherited from Visual
OnVisualChildrenChanged(DependencyObject, DependencyObject) Inherited from Visual
PointFromScreen(Point) Inherited from Visual
PointToScreen(Point) Inherited from Visual
RemoveVisualChild(Visual) Inherited from Visual
TransformToAncestor(Visual3D) Inherited from Visual
TransformToAncestor(Visual) Inherited from Visual
TransformToDescendant(Visual) Inherited from Visual
TransformToVisual(Visual) Inherited from Visual
VisualBitmapEffect Inherited from Visual
VisualBitmapEffectInput Inherited from Visual
VisualBitmapScalingMode Inherited from Visual
VisualCacheMode Inherited from Visual
VisualClearTypeHint Inherited from Visual
VisualClip Inherited from Visual
VisualEdgeMode Inherited from Visual
VisualEffect Inherited from Visual
VisualOffset Inherited from Visual
VisualOpacity Inherited from Visual
VisualOpacityMask Inherited from Visual
VisualParent Inherited from Visual
VisualScrollableAreaClip Inherited from Visual
VisualTextHintingMode Inherited from Visual
VisualTextRenderingMode Inherited from Visual
VisualTransform Inherited from Visual
VisualXSnappingGuidelines Inherited from Visual
VisualYSnappingGuidelines Inherited from Visual
CheckAccess() Inherited from DispatcherObject
Dispatcher Inherited from DispatcherObject
VerifyAccess() Inherited from DispatcherObject
AddHandler(RoutedEvent, Delegate) Inherited from UIElement
AddHandler(RoutedEvent, Delegate, Boolean) Inherited from UIElement
AddToEventRoute(EventRoute, RoutedEventArgs) Inherited from UIElement
AllowDrop Inherited from UIElement
AllowDropProperty Inherited from UIElement
ApplyAnimationClock(DependencyProperty, AnimationClock) Inherited from UIElement
ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) Inherited from UIElement
AreAnyTouchesCaptured Inherited from UIElement
AreAnyTouchesCapturedProperty Inherited from UIElement
AreAnyTouchesCapturedWithin Inherited from UIElement
AreAnyTouchesCapturedWithinProperty Inherited from UIElement
AreAnyTouchesDirectlyOver Inherited from UIElement
AreAnyTouchesDirectlyOverProperty Inherited from UIElement
AreAnyTouchesOver Inherited from UIElement
AreAnyTouchesOverProperty Inherited from UIElement
Arrange(Rect) Inherited from UIElement
BeginAnimation(DependencyProperty, AnimationTimeline) Inherited from UIElement
BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) Inherited from UIElement
BitmapEffect Inherited from UIElement
BitmapEffectInput Inherited from UIElement
BitmapEffectInputProperty Inherited from UIElement
BitmapEffectProperty Inherited from UIElement
CacheMode Inherited from UIElement
CacheModeProperty Inherited from UIElement
CaptureMouse() Inherited from UIElement
CaptureStylus() Inherited from UIElement
CaptureTouch(TouchDevice) Inherited from UIElement
Clip Inherited from UIElement
ClipProperty Inherited from UIElement
ClipToBounds Inherited from UIElement
ClipToBoundsProperty Inherited from UIElement
CommandBindings Inherited from UIElement
DesiredSize Inherited from UIElement
DragEnter Inherited from UIElement
DragEnterEvent Inherited from UIElement
DragLeave Inherited from UIElement
DragLeaveEvent Inherited from UIElement
DragOver Inherited from UIElement
DragOverEvent Inherited from UIElement
Drop Inherited from UIElement
DropEvent Inherited from UIElement
Effect Inherited from UIElement
EffectProperty Inherited from UIElement
Focus() Inherited from UIElement
Focusable Inherited from UIElement
FocusableChanged Inherited from UIElement
FocusableProperty Inherited from UIElement
GetAnimationBaseValue(DependencyProperty) Inherited from UIElement
GiveFeedback Inherited from UIElement
GiveFeedbackEvent Inherited from UIElement
GotFocus Inherited from UIElement
GotFocusEvent Inherited from UIElement
GotKeyboardFocus Inherited from UIElement
GotKeyboardFocusEvent Inherited from UIElement
GotMouseCapture Inherited from UIElement
GotMouseCaptureEvent Inherited from UIElement
GotStylusCapture Inherited from UIElement
GotStylusCaptureEvent Inherited from UIElement
GotTouchCapture Inherited from UIElement
GotTouchCaptureEvent Inherited from UIElement
HasAnimatedProperties Inherited from UIElement
HasEffectiveKeyboardFocus Inherited from UIElement
HitTestCore(GeometryHitTestParameters) Inherited from UIElement
InputBindings Inherited from UIElement
InputHitTest(Point) Inherited from UIElement
InvalidateArrange() Inherited from UIElement
InvalidateMeasure() Inherited from UIElement
InvalidateVisual() Inherited from UIElement
IsArrangeValid Inherited from UIElement
IsEnabled Inherited from UIElement
IsEnabledChanged Inherited from UIElement
IsEnabledCore Inherited from UIElement
IsEnabledProperty Inherited from UIElement
IsFocused Inherited from UIElement
IsFocusedProperty Inherited from UIElement
IsHitTestVisible Inherited from UIElement
IsHitTestVisibleChanged Inherited from UIElement
IsHitTestVisibleProperty Inherited from UIElement
IsInputMethodEnabled Inherited from UIElement
IsKeyboardFocused Inherited from UIElement
IsKeyboardFocusedChanged Inherited from UIElement
IsKeyboardFocusedProperty Inherited from UIElement
IsKeyboardFocusWithin Inherited from UIElement
IsKeyboardFocusWithinChanged Inherited from UIElement
IsKeyboardFocusWithinProperty Inherited from UIElement
IsManipulationEnabled Inherited from UIElement
IsManipulationEnabledProperty Inherited from UIElement
IsMeasureValid Inherited from UIElement
IsMouseCaptured Inherited from UIElement
IsMouseCapturedChanged Inherited from UIElement
IsMouseCapturedProperty Inherited from UIElement
IsMouseCaptureWithin Inherited from UIElement
IsMouseCaptureWithinChanged Inherited from UIElement
IsMouseCaptureWithinProperty Inherited from UIElement
IsMouseDirectlyOver Inherited from UIElement
IsMouseDirectlyOverChanged Inherited from UIElement
IsMouseDirectlyOverProperty Inherited from UIElement
IsMouseOver Inherited from UIElement
IsMouseOverProperty Inherited from UIElement
IsStylusCaptured Inherited from UIElement
IsStylusCapturedChanged Inherited from UIElement
IsStylusCapturedProperty Inherited from UIElement
IsStylusCaptureWithin Inherited from UIElement
IsStylusCaptureWithinChanged Inherited from UIElement
IsStylusCaptureWithinProperty Inherited from UIElement
IsStylusDirectlyOver Inherited from UIElement
IsStylusDirectlyOverChanged Inherited from UIElement
IsStylusDirectlyOverProperty Inherited from UIElement
IsStylusOver Inherited from UIElement
IsStylusOverProperty Inherited from UIElement
IsVisible Inherited from UIElement
IsVisibleChanged Inherited from UIElement
IsVisibleProperty Inherited from UIElement
KeyDown Inherited from UIElement
KeyDownEvent Inherited from UIElement
KeyUp Inherited from UIElement
KeyUpEvent Inherited from UIElement
LayoutUpdated Inherited from UIElement
LostFocus Inherited from UIElement
LostFocusEvent Inherited from UIElement
LostKeyboardFocus Inherited from UIElement
LostKeyboardFocusEvent Inherited from UIElement
LostMouseCapture Inherited from UIElement
LostMouseCaptureEvent Inherited from UIElement
LostStylusCapture Inherited from UIElement
LostStylusCaptureEvent Inherited from UIElement
LostTouchCapture Inherited from UIElement
LostTouchCaptureEvent Inherited from UIElement
ManipulationBoundaryFeedback Inherited from UIElement
ManipulationBoundaryFeedbackEvent Inherited from UIElement
ManipulationCompleted Inherited from UIElement
ManipulationCompletedEvent Inherited from UIElement
ManipulationDelta Inherited from UIElement
ManipulationDeltaEvent Inherited from UIElement
ManipulationInertiaStarting Inherited from UIElement
ManipulationInertiaStartingEvent Inherited from UIElement
ManipulationStarted Inherited from UIElement
ManipulationStartedEvent Inherited from UIElement
ManipulationStarting Inherited from UIElement
ManipulationStartingEvent Inherited from UIElement
Measure(Size) Inherited from UIElement
MouseDown Inherited from UIElement
MouseDownEvent Inherited from UIElement
MouseEnter Inherited from UIElement
MouseEnterEvent Inherited from UIElement
MouseLeave Inherited from UIElement
MouseLeaveEvent Inherited from UIElement
MouseLeftButtonDown Inherited from UIElement
MouseLeftButtonDownEvent Inherited from UIElement
MouseLeftButtonUp Inherited from UIElement
MouseLeftButtonUpEvent Inherited from UIElement
MouseMove Inherited from UIElement
MouseMoveEvent Inherited from UIElement
MouseRightButtonDown Inherited from UIElement
MouseRightButtonDownEvent Inherited from UIElement
MouseRightButtonUp Inherited from UIElement
MouseRightButtonUpEvent Inherited from UIElement
MouseUp Inherited from UIElement
MouseUpEvent Inherited from UIElement
MouseWheel Inherited from UIElement
MouseWheelEvent Inherited from UIElement
OnAccessKey(AccessKeyEventArgs) Inherited from UIElement
OnChildDesiredSizeChanged(UIElement) Inherited from UIElement
OnDragEnter(DragEventArgs) Inherited from UIElement
OnDragLeave(DragEventArgs) Inherited from UIElement
OnDragOver(DragEventArgs) Inherited from UIElement
OnDrop(DragEventArgs) Inherited from UIElement
OnGiveFeedback(GiveFeedbackEventArgs) Inherited from UIElement
OnGotKeyboardFocus(KeyboardFocusChangedEventArgs) Inherited from UIElement
OnGotMouseCapture(MouseEventArgs) Inherited from UIElement
OnGotStylusCapture(StylusEventArgs) Inherited from UIElement
OnGotTouchCapture(TouchEventArgs) Inherited from UIElement
OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs) Inherited from UIElement
OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs) Inherited from UIElement
OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs) Inherited from UIElement
OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs) Inherited from UIElement
OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs) Inherited from UIElement
OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs) Inherited from UIElement
OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs) Inherited from UIElement
OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs) Inherited from UIElement
OnKeyDown(KeyEventArgs) Inherited from UIElement
OnKeyUp(KeyEventArgs) Inherited from UIElement
OnLostFocus(RoutedEventArgs) Inherited from UIElement
OnLostKeyboardFocus(KeyboardFocusChangedEventArgs) Inherited from UIElement
OnLostMouseCapture(MouseEventArgs) Inherited from UIElement
OnLostStylusCapture(StylusEventArgs) Inherited from UIElement
OnLostTouchCapture(TouchEventArgs) Inherited from UIElement
OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs) Inherited from UIElement
OnManipulationCompleted(ManipulationCompletedEventArgs) Inherited from UIElement
OnManipulationDelta(ManipulationDeltaEventArgs) Inherited from UIElement
OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs) Inherited from UIElement
OnManipulationStarted(ManipulationStartedEventArgs) Inherited from UIElement
OnManipulationStarting(ManipulationStartingEventArgs) Inherited from UIElement
OnMouseDown(MouseButtonEventArgs) Inherited from UIElement
OnMouseEnter(MouseEventArgs) Inherited from UIElement
OnMouseLeave(MouseEventArgs) Inherited from UIElement
OnMouseLeftButtonDown(MouseButtonEventArgs) Inherited from UIElement
OnMouseLeftButtonUp(MouseButtonEventArgs) Inherited from UIElement
OnMouseMove(MouseEventArgs) Inherited from UIElement
OnMouseRightButtonDown(MouseButtonEventArgs) Inherited from UIElement
OnMouseRightButtonUp(MouseButtonEventArgs) Inherited from UIElement
OnMouseUp(MouseButtonEventArgs) Inherited from UIElement
OnMouseWheel(MouseWheelEventArgs) Inherited from UIElement
OnPreviewDragEnter(DragEventArgs) Inherited from UIElement
OnPreviewDragLeave(DragEventArgs) Inherited from UIElement
OnPreviewDragOver(DragEventArgs) Inherited from UIElement
OnPreviewDrop(DragEventArgs) Inherited from UIElement
OnPreviewGiveFeedback(GiveFeedbackEventArgs) Inherited from UIElement
OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs) Inherited from UIElement
OnPreviewKeyDown(KeyEventArgs) Inherited from UIElement
OnPreviewKeyUp(KeyEventArgs) Inherited from UIElement
OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs) Inherited from UIElement
OnPreviewMouseDown(MouseButtonEventArgs) Inherited from UIElement
OnPreviewMouseLeftButtonDown(MouseButtonEventArgs) Inherited from UIElement
OnPreviewMouseLeftButtonUp(MouseButtonEventArgs) Inherited from UIElement
OnPreviewMouseMove(MouseEventArgs) Inherited from UIElement
OnPreviewMouseRightButtonDown(MouseButtonEventArgs) Inherited from UIElement
OnPreviewMouseRightButtonUp(MouseButtonEventArgs) Inherited from UIElement
OnPreviewMouseUp(MouseButtonEventArgs) Inherited from UIElement
OnPreviewMouseWheel(MouseWheelEventArgs) Inherited from UIElement
OnPreviewQueryContinueDrag(QueryContinueDragEventArgs) Inherited from UIElement
OnPreviewStylusButtonDown(StylusButtonEventArgs) Inherited from UIElement
OnPreviewStylusButtonUp(StylusButtonEventArgs) Inherited from UIElement
OnPreviewStylusDown(StylusDownEventArgs) Inherited from UIElement
OnPreviewStylusInAirMove(StylusEventArgs) Inherited from UIElement
OnPreviewStylusInRange(StylusEventArgs) Inherited from UIElement
OnPreviewStylusMove(StylusEventArgs) Inherited from UIElement
OnPreviewStylusOutOfRange(StylusEventArgs) Inherited from UIElement
OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs) Inherited from UIElement
OnPreviewStylusUp(StylusEventArgs) Inherited from UIElement
OnPreviewTextInput(TextCompositionEventArgs) Inherited from UIElement
OnPreviewTouchDown(TouchEventArgs) Inherited from UIElement
OnPreviewTouchMove(TouchEventArgs) Inherited from UIElement
OnPreviewTouchUp(TouchEventArgs) Inherited from UIElement
OnQueryContinueDrag(QueryContinueDragEventArgs) Inherited from UIElement
OnQueryCursor(QueryCursorEventArgs) Inherited from UIElement
OnStylusButtonDown(StylusButtonEventArgs) Inherited from UIElement
OnStylusButtonUp(StylusButtonEventArgs) Inherited from UIElement
OnStylusDown(StylusDownEventArgs) Inherited from UIElement
OnStylusEnter(StylusEventArgs) Inherited from UIElement
OnStylusInAirMove(StylusEventArgs) Inherited from UIElement
OnStylusInRange(StylusEventArgs) Inherited from UIElement
OnStylusLeave(StylusEventArgs) Inherited from UIElement
OnStylusMove(StylusEventArgs) Inherited from UIElement
OnStylusOutOfRange(StylusEventArgs) Inherited from UIElement
OnStylusSystemGesture(StylusSystemGestureEventArgs) Inherited from UIElement
OnStylusUp(StylusEventArgs) Inherited from UIElement
OnTextInput(TextCompositionEventArgs) Inherited from UIElement
OnTouchDown(TouchEventArgs) Inherited from UIElement
OnTouchEnter(TouchEventArgs) Inherited from UIElement
OnTouchLeave(TouchEventArgs) Inherited from UIElement
OnTouchMove(TouchEventArgs) Inherited from UIElement
OnTouchUp(TouchEventArgs) Inherited from UIElement
Opacity Inherited from UIElement
OpacityMask Inherited from UIElement
OpacityMaskProperty Inherited from UIElement
OpacityProperty Inherited from UIElement
PersistId Inherited from UIElement
PreviewDragEnter Inherited from UIElement
PreviewDragEnterEvent Inherited from UIElement
PreviewDragLeave Inherited from UIElement
PreviewDragLeaveEvent Inherited from UIElement
PreviewDragOver Inherited from UIElement
PreviewDragOverEvent Inherited from UIElement
PreviewDrop Inherited from UIElement
PreviewDropEvent Inherited from UIElement
PreviewGiveFeedback Inherited from UIElement
PreviewGiveFeedbackEvent Inherited from UIElement
PreviewGotKeyboardFocus Inherited from UIElement
PreviewGotKeyboardFocusEvent Inherited from UIElement
PreviewKeyDown Inherited from UIElement
PreviewKeyDownEvent Inherited from UIElement
PreviewKeyUp Inherited from UIElement
PreviewKeyUpEvent Inherited from UIElement
PreviewLostKeyboardFocus Inherited from UIElement
PreviewLostKeyboardFocusEvent Inherited from UIElement
PreviewMouseDown Inherited from UIElement
PreviewMouseDownEvent Inherited from UIElement
PreviewMouseLeftButtonDown Inherited from UIElement
PreviewMouseLeftButtonDownEvent Inherited from UIElement
PreviewMouseLeftButtonUp Inherited from UIElement
PreviewMouseLeftButtonUpEvent Inherited from UIElement
PreviewMouseMove Inherited from UIElement
PreviewMouseMoveEvent Inherited from UIElement
PreviewMouseRightButtonDown Inherited from UIElement
PreviewMouseRightButtonDownEvent Inherited from UIElement
PreviewMouseRightButtonUp Inherited from UIElement
PreviewMouseRightButtonUpEvent Inherited from UIElement
PreviewMouseUp Inherited from UIElement
PreviewMouseUpEvent Inherited from UIElement
PreviewMouseWheel Inherited from UIElement
PreviewMouseWheelEvent Inherited from UIElement
PreviewQueryContinueDrag Inherited from UIElement
PreviewQueryContinueDragEvent Inherited from UIElement
PreviewStylusButtonDown Inherited from UIElement
PreviewStylusButtonDownEvent Inherited from UIElement
PreviewStylusButtonUp Inherited from UIElement
PreviewStylusButtonUpEvent Inherited from UIElement
PreviewStylusDown Inherited from UIElement
PreviewStylusDownEvent Inherited from UIElement
PreviewStylusInAirMove Inherited from UIElement
PreviewStylusInAirMoveEvent Inherited from UIElement
PreviewStylusInRange Inherited from UIElement
PreviewStylusInRangeEvent Inherited from UIElement
PreviewStylusMove Inherited from UIElement
PreviewStylusMoveEvent Inherited from UIElement
PreviewStylusOutOfRange Inherited from UIElement
PreviewStylusOutOfRangeEvent Inherited from UIElement
PreviewStylusSystemGesture Inherited from UIElement
PreviewStylusSystemGestureEvent Inherited from UIElement
PreviewStylusUp Inherited from UIElement
PreviewStylusUpEvent Inherited from UIElement
PreviewTextInput Inherited from UIElement
PreviewTextInputEvent Inherited from UIElement
PreviewTouchDown Inherited from UIElement
PreviewTouchDownEvent Inherited from UIElement
PreviewTouchMove Inherited from UIElement
PreviewTouchMoveEvent Inherited from UIElement
PreviewTouchUp Inherited from UIElement
PreviewTouchUpEvent Inherited from UIElement
QueryContinueDrag Inherited from UIElement
QueryContinueDragEvent Inherited from UIElement
QueryCursor Inherited from UIElement
QueryCursorEvent Inherited from UIElement
RaiseEvent(RoutedEventArgs) Inherited from UIElement
ReleaseAllTouchCaptures() Inherited from UIElement
ReleaseMouseCapture() Inherited from UIElement
ReleaseStylusCapture() Inherited from UIElement
ReleaseTouchCapture(TouchDevice) Inherited from UIElement
RemoveHandler(RoutedEvent, Delegate) Inherited from UIElement
RenderSize Inherited from UIElement
RenderTransform Inherited from UIElement
RenderTransformOrigin Inherited from UIElement
RenderTransformOriginProperty Inherited from UIElement
RenderTransformProperty Inherited from UIElement
ShouldSerializeCommandBindings() Inherited from UIElement
ShouldSerializeInputBindings() Inherited from UIElement
SnapsToDevicePixels Inherited from UIElement
SnapsToDevicePixelsProperty Inherited from UIElement
StylusButtonDown Inherited from UIElement
StylusButtonDownEvent Inherited from UIElement
StylusButtonUp Inherited from UIElement
StylusButtonUpEvent Inherited from UIElement
StylusDown Inherited from UIElement
StylusDownEvent Inherited from UIElement
StylusEnter Inherited from UIElement
StylusEnterEvent Inherited from UIElement
StylusInAirMove Inherited from UIElement
StylusInAirMoveEvent Inherited from UIElement
StylusInRange Inherited from UIElement
StylusInRangeEvent Inherited from UIElement
StylusLeave Inherited from UIElement
StylusLeaveEvent Inherited from UIElement
StylusMove Inherited from UIElement
StylusMoveEvent Inherited from UIElement
StylusOutOfRange Inherited from UIElement
StylusOutOfRangeEvent Inherited from UIElement
StylusPlugIns Inherited from UIElement
StylusSystemGesture Inherited from UIElement
StylusSystemGestureEvent Inherited from UIElement
StylusUp Inherited from UIElement
StylusUpEvent Inherited from UIElement
TextInput Inherited from UIElement
TextInputEvent Inherited from UIElement
TouchDown Inherited from UIElement
TouchDownEvent Inherited from UIElement
TouchEnter Inherited from UIElement
TouchEnterEvent Inherited from UIElement
TouchesCaptured Inherited from UIElement
TouchesCapturedWithin Inherited from UIElement
TouchesDirectlyOver Inherited from UIElement
TouchesOver Inherited from UIElement
TouchLeave Inherited from UIElement
TouchLeaveEvent Inherited from UIElement
TouchMove Inherited from UIElement
TouchMoveEvent Inherited from UIElement
TouchUp Inherited from UIElement
TouchUpEvent Inherited from UIElement
TranslatePoint(Point, UIElement) Inherited from UIElement
Uid Inherited from UIElement
UidProperty Inherited from UIElement
UpdateLayout() Inherited from UIElement
Visibility Inherited from UIElement
VisibilityProperty Inherited from UIElement

Explicit Interface Implementations

IServiceProvider.GetService(Type)

This method supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

IContentHost.GetRectangles(ContentElement)

This method supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. Use the type-safe GetRectanglesCore(ContentElement) method instead.

IContentHost.HostedElements

This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. Use the type-safe HostedElementsCore property instead.

IContentHost.InputHitTest(Point)

This method supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. Use the type-safe InputHitTestCore(Point) method instead.

IContentHost.OnChildDesiredSizeChanged(UIElement)

This method supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. Use the type-safe OnChildDesiredSizeChangedCore(UIElement) method instead.

IAddChild.AddChild(Object)

This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

IAddChild.AddText(String)

This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

Applies to