Show / Hide Table of Contents

Class FrameworkElement

Provides a framework of common APIs for objects that participate in UI and programmatic layout. FrameworkElement also defines APIs related to data binding, object tree, and object lifetime feature areas.

Inheritance
System.Object
DependencyObject
UIElement
FrameworkElement
Border
ContentPresenter
Control
SeriesDefinition
Interpolator
Image
ItemsPresenter
MediaElement
MultiScaleImage
Panel
Popup
RichTextBlock
RichTextBlockOverflow
TextBlock
WebBrowser
Glyphs
Shape
Window
Inherited Members
UIElement.TransformToVisual(UIElement)
UIElement.OnCreateAutomationPeer()
UIElement.RenderSize
UIElement.DesiredSize
UIElement.InvalidateMeasure()
UIElement.InvalidateArrange()
UIElement.Measure(Size)
UIElement.Arrange(Rect)
UIElement.UpdateLayout()
UIElement.DragEnter
UIElement.DragLeave
UIElement.Drop
UIElement.DragOver
UIElement.CacheMode
UIElement.CacheModeProperty
UIElement.Projection
UIElement.ProjectionProperty
UIElement.VisualParent
UIElement.AddVisualChild(UIElement)
UIElement.RemoveVisualChild(UIElement)
UIElement.OnVisualChildrenChanged(DependencyObject, DependencyObject)
UIElement.XamlSourcePath
UIElement.ClipToBounds
UIElement.ClipToBoundsProperty
UIElement.ClipProperty
UIElement.Clip
UIElement.IsEnabledProperty
UIElement.IsEnabled
UIElement.IsEnabledChanged
UIElement.EffectProperty
UIElement.Effect
UIElement.RenderTransformProperty
UIElement.RenderTransform
UIElement.RenderTransformOriginProperty
UIElement.RenderTransformOrigin
UIElement.UseLayoutRounding
UIElement.UseLayoutRoundingProperty
UIElement.Visibility
UIElement.VisibilityProperty
UIElement.IsVisibleProperty
UIElement.IsVisible
UIElement.IsVisibleChanged
UIElement.OpacityProperty
UIElement.Opacity
UIElement.OpacityMaskProperty
UIElement.OpacityMask
UIElement.IsHitTestVisible
UIElement.IsHitTestVisibleProperty
UIElement.AllowDrop
UIElement.AllowDropProperty
UIElement.CaptureMouse()
UIElement.IsMouseCaptured
UIElement.ReleaseMouseCapture()
UIElement.AllowScrollOnTouchMove
UIElement.AllowScrollOnTouchMoveProperty
UIElement.AddHandler(RoutedEvent, Delegate, Boolean)
UIElement.RemoveHandler(RoutedEvent, Delegate)
UIElement.MouseMoveEvent
UIElement.MouseMove
UIElement.OnMouseMove(MouseEventArgs)
UIElement.MouseLeftButtonDownEvent
UIElement.MouseLeftButtonDown
UIElement.OnMouseLeftButtonDown(MouseButtonEventArgs)
UIElement.MouseRightButtonDownEvent
UIElement.MouseRightButtonDown
UIElement.OnMouseRightButtonDown(MouseButtonEventArgs)
UIElement.MouseWheelEvent
UIElement.MouseWheel
UIElement.OnMouseWheel(MouseWheelEventArgs)
UIElement.MouseLeftButtonUpEvent
UIElement.MouseLeftButtonUp
UIElement.OnMouseLeftButtonUp(MouseButtonEventArgs)
UIElement.MouseEnterEvent
UIElement.MouseEnter
UIElement.OnMouseEnter(MouseEventArgs)
UIElement.MouseLeaveEvent
UIElement.MouseLeave
UIElement.OnMouseLeave(MouseEventArgs)
UIElement.TextInputStartEvent
UIElement.TextInputStart
UIElement.OnTextInputStart(TextCompositionEventArgs)
UIElement.TextInputEvent
UIElement.TextInput
UIElement.OnTextInput(TextCompositionEventArgs)
UIElement.TextInputUpdateEvent
UIElement.TextInputUpdate
UIElement.TappedEvent
UIElement.Tapped
UIElement.OnTapped(TappedRoutedEventArgs)
UIElement.MouseRightButtonUpEvent
UIElement.MouseRightButtonUp
UIElement.OnMouseRightButtonUp(MouseButtonEventArgs)
UIElement.KeyDownEvent
UIElement.KeyDown
UIElement.OnKeyDown(KeyEventArgs)
UIElement.KeyUpEvent
UIElement.KeyUp
UIElement.OnKeyUp(KeyEventArgs)
UIElement.GotFocusEvent
UIElement.GotFocus
UIElement.OnGotFocus(RoutedEventArgs)
UIElement.LostFocusEvent
UIElement.LostFocus
UIElement.OnLostFocus(RoutedEventArgs)
UIElement.LostMouseCapture
UIElement.OnLostMouseCapture(MouseEventArgs)
UIElement.INTERNAL_AttachToDomEvents()
UIElement.INTERNAL_DetachFromDomEvents()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows
Assembly: OpenSilver.dll
Syntax
public abstract class FrameworkElement : UIElement, IFrameworkElement, IUIElement, IDependencyObject

Constructors

| Improve this Doc View Source

FrameworkElement()

Provides base class initialization behavior for FrameworkElement-derived classes.

Declaration
public FrameworkElement()

Fields

| Improve this Doc View Source

ActualHeightProperty

Identifies the ActualHeight dependency property.

Declaration
public static readonly DependencyProperty ActualHeightProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

ActualWidthProperty

Identifies the ActualWidth dependency property.

Declaration
public static readonly DependencyProperty ActualWidthProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

ContextMenuProperty

Identifies the ContextMenu dependency property.

Declaration
public static readonly DependencyProperty ContextMenuProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

CursorProperty

Identifies the Cursor dependency property.

Declaration
public static readonly DependencyProperty CursorProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

DataContextProperty

Identifies the DataContext dependency property.

Declaration
public static readonly DependencyProperty DataContextProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

DefaultStyleKeyProperty

Identifies the DefaultStyleKey dependency property.

Declaration
public static readonly DependencyProperty DefaultStyleKeyProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

FlowDirectionProperty

Identifies the FlowDirection dependency property.

Declaration
public static readonly DependencyProperty FlowDirectionProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

HeightProperty

Identifies the Height dependency property.

Declaration
public static readonly DependencyProperty HeightProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

HorizontalAlignmentProperty

Identifies the HorizontalAlignment dependency property.

Declaration
public static readonly DependencyProperty HorizontalAlignmentProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

LanguageProperty

Identifies the Language dependency property.

Declaration
public static readonly DependencyProperty LanguageProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

LoadedEvent

Declaration
public static readonly RoutedEvent LoadedEvent
Field Value
Type Description
RoutedEvent
| Improve this Doc View Source

MarginProperty

Identifies the Margin dependency property.

Declaration
public static readonly DependencyProperty MarginProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

MaxHeightProperty

Identifies the MaxHeight dependency property.

Declaration
public static readonly DependencyProperty MaxHeightProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

MaxWidthProperty

Identifies the MaxWidth dependency property.

Declaration
public static readonly DependencyProperty MaxWidthProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

MinHeightProperty

Identifies the MinHeight dependency property.

Declaration
public static readonly DependencyProperty MinHeightProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

MinWidthProperty

Identifies the MinWidth dependency property.

Declaration
public static readonly DependencyProperty MinWidthProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

NameProperty

Identifies the Name dependency property.

Declaration
public static readonly DependencyProperty NameProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

OverridesDefaultStyleProperty

Identifies the OverridesDefaultStyle dependency property.

Declaration
public static readonly DependencyProperty OverridesDefaultStyleProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

StyleProperty

Identifies the Style dependency property.

Declaration
public static readonly DependencyProperty StyleProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

TagProperty

Identifies the Tag dependency property.

Declaration
public static readonly DependencyProperty TagProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

ToolTipProperty

Identifies the ToolTip dependency property.

Declaration
public static readonly DependencyProperty ToolTipProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

VerticalAlignmentProperty

Identifies the VerticalAlignment dependency property.

Declaration
public static readonly DependencyProperty VerticalAlignmentProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

WidthProperty

Identifies the Width dependency property.

Declaration
public static readonly DependencyProperty WidthProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

ActualHeight

Gets the rendered height of a FrameworkElement.

Declaration
public double ActualHeight { get; }
Property Value
Type Description
System.Double

The height, in pixels, of the object. The default is 0. The default might be encountered if the object has not been loaded and undergone a layout pass.

| Improve this Doc View Source

ActualWidth

Gets the rendered width of a FrameworkElement.

Declaration
public double ActualWidth { get; }
Property Value
Type Description
System.Double

The width, in pixels, of the object. The default is 0. The default might be encountered if the object has not been loaded and undergone a layout pass.

| Improve this Doc View Source

ContextMenu

Gets or sets the context menu element that should appear whenever the context menu is requested through user interface (UI) from within this element.

Declaration
public ContextMenu ContextMenu { get; set; }
Property Value
Type Description
ContextMenu

The context menu assigned to this element.

| Improve this Doc View Source

Cursor

Gets or sets the cursor that displays when the mouse pointer is over this element.

Declaration
public Cursor Cursor { get; set; }
Property Value
Type Description
Cursor
| Improve this Doc View Source

DataContext

Gets or sets the data context for a FrameworkElement when it participates in data binding.

Declaration
public object DataContext { get; set; }
Property Value
Type Description
System.Object
| Improve this Doc View Source

DefaultStyleKey

Gets or sets the key that references the default style for the control.

Declaration
protected object DefaultStyleKey { get; set; }
Property Value
Type Description
System.Object
| Improve this Doc View Source

FlowDirection

Gets or sets the direction that text and other user interface elements flow within any parent element that controls their layout.

Declaration
public FlowDirection FlowDirection { get; set; }
Property Value
Type Description
FlowDirection

The direction that text and other UI elements flow within their parent element, as a value of the enumeration. The default value is LeftToRight.

| Improve this Doc View Source

Height

Gets or sets the suggested height of a FrameworkElement.

Declaration
[TypeConverter(typeof(LengthConverter))]
public double Height { get; set; }
Property Value
Type Description
System.Double

The height, in pixels, of the object. The default is System.Double.NaN. Except for the special System.Double.NaN value, this value must be equal to or greater than 0.

| Improve this Doc View Source

HorizontalAlignment

Gets or sets the horizontal alignment characteristics that are applied to a FrameworkElement when it is composed in a layout parent, such as a panel or items control.

Declaration
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
Type Description
HorizontalAlignment
| Improve this Doc View Source

IsLoaded

Gets a value that indicates whether this element is in the Visual Tree, that is, if it has been loaded for presentation.

Declaration
public bool IsLoaded { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Language

Gets or sets localization/globalization language information that applies to a FrameworkElement.

Declaration
[TypeConverter(typeof(XmlLanguageConverter))]
public XmlLanguage Language { get; set; }
Property Value
Type Description
XmlLanguage

The language information for this object. The default is an XmlLanguage object that has its IetfLanguageTag value set to the string "en-US".

| Improve this Doc View Source

LogicalChildren

Gets an enumerator for logical child elements of this element.

Declaration
protected virtual IEnumerator LogicalChildren { get; }
Property Value
Type Description
System.Collections.IEnumerator

An enumerator for logical child elements of this element.

| Improve this Doc View Source

Margin

Gets or sets the outer margin of a FrameworkElement.

Declaration
public Thickness Margin { get; set; }
Property Value
Type Description
Thickness
| Improve this Doc View Source

MaxHeight

Gets or sets the maximum height constraint of a FrameworkElement.

Declaration
public double MaxHeight { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

MaxWidth

Gets or sets the maximum width constraint of a FrameworkElement.

Declaration
public double MaxWidth { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

MinHeight

Gets or sets the minimum height constraint of a FrameworkElement.

Declaration
public double MinHeight { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

MinWidth

Gets or sets the minimum width constraint of a FrameworkElement.

Declaration
public double MinWidth { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

Name

Gets or sets the identifying name of the object. When a XAML processor creates the object tree from XAML markup, run-time code can refer to the XAML-declared object by this name.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

OverridesDefaultStyle

Gets or sets a value that indicates whether this element incorporates style properties from theme styles.

Declaration
public bool OverridesDefaultStyle { get; set; }
Property Value
Type Description
System.Boolean

true if this element does not use theme style properties; all style-originating properties come from local application styles, and theme style properties do not apply. false if application styles apply first, and then theme styles apply for properties that were not specifically set in application styles. The default is false.

| Improve this Doc View Source

Parent

Gets the parent object of this FrameworkElement in the object tree.

Declaration
public DependencyObject Parent { get; }
Property Value
Type Description
DependencyObject
| Improve this Doc View Source

ResourceLookupMode

Indicates the current mode of lookup for resources.

Declaration
public InheritanceBehavior ResourceLookupMode { get; set; }
Property Value
Type Description
InheritanceBehavior
| Improve this Doc View Source

Resources

Gets the locally defined resource dictionary. In XAML, you can establish resource items as child object elements of a frameworkElement.Resources property element, through XAML implicit collection syntax.

Declaration
public ResourceDictionary Resources { get; set; }
Property Value
Type Description
ResourceDictionary
| Improve this Doc View Source

Style

Gets or sets an instance Style that is applied for this object during rendering.

Declaration
public Style Style { get; set; }
Property Value
Type Description
Style
| Improve this Doc View Source

Tag

Gets or sets an arbitrary object value that can be used to store custom information about this object.

Declaration
public object Tag { get; set; }
Property Value
Type Description
System.Object
| Improve this Doc View Source

TemplatedParent

Gets a reference to the template parent of this element. This property is not relevant if the element was not created through a template.

Declaration
public DependencyObject TemplatedParent { get; }
Property Value
Type Description
DependencyObject

The element whose FrameworkTemplate caused this element to be created. This value is frequently null.

| Improve this Doc View Source

ToolTip

Gets or sets the tool-tip object that is displayed for this element in the user interface (UI).

Declaration
public object ToolTip { get; set; }
Property Value
Type Description
System.Object

The tooltip object.

| Improve this Doc View Source

Triggers

Gets the collection of triggers for animations that are defined for a FrameworkElement.

Declaration
public TriggerCollection Triggers { get; }
Property Value
Type Description
TriggerCollection

The collection of triggers for animations that are defined for this object.

| Improve this Doc View Source

VerticalAlignment

Gets or sets the vertical alignment characteristics that are applied to a FrameworkElement when it is composed in a parent object such as a panel or items control.

Declaration
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
Type Description
VerticalAlignment
| Improve this Doc View Source

VisualChildrenCount

Gets the number of visual child elements within this element.

Declaration
protected override int VisualChildrenCount { get; }
Property Value
Type Description
System.Int32

The number of visual child elements for this element.

Overrides
UIElement.VisualChildrenCount
| Improve this Doc View Source

Width

Gets or sets the width of a FrameworkElement.

Declaration
[TypeConverter(typeof(LengthConverter))]
public double Width { get; set; }
Property Value
Type Description
System.Double

The width of the object, in pixels. The default is System.Double.NaN. Except for the special System.Double.NaN value, this value must be equal to or greater than 0.

Methods

| Improve this Doc View Source

AddLogicalChild(Object)

Adds the provided object to the logical tree of this element.

Declaration
protected void AddLogicalChild(object child)
Parameters
Type Name Description
System.Object child

Child element to be added.

| Improve this Doc View Source

ArrangeOverride(Size)

Provides the behavior for the Arrange pass of Silverlight layout. Classes can override this method to define their own Arrange pass behavior.

Declaration
protected virtual Size ArrangeOverride(Size finalSize)
Parameters
Type Name Description
Size finalSize

The final area within the parent that this object should use to arrange itself and its children.

Returns
Type Description
Size

The actual size that is used after the element is arranged in layout.

| Improve this Doc View Source

CreateDomElement(Object, out Object)

Provides a base implementation for creating the dom elements designed to represent an instance of a FrameworkElement and defines the place where its child(ren) will be added.

Declaration
public override object CreateDomElement(object parentRef, out object domElementWhereToPlaceChildren)
Parameters
Type Name Description
System.Object parentRef

The parent of the FrameworkElement

System.Object domElementWhereToPlaceChildren

The dom element where the FrameworkElement's children will be added.

Returns
Type Description
System.Object

The "root" dom element of the FrameworkElement.

Overrides
UIElement.CreateDomElement(Object, out Object)
| Improve this Doc View Source

FindName(String)

Retrieves an object that has the specified identifier name.

Declaration
public object FindName(string name)
Parameters
Type Name Description
System.String name

The name of the requested object.

Returns
Type Description
System.Object

The requested object. This can be null if no matching object was found in the current XAML namescope.

| Improve this Doc View Source

GetBindingExpression(DependencyProperty)

Retrieves the BindingExpression for a dependency property where a binding is established.

Declaration
public BindingExpression GetBindingExpression(DependencyProperty dp)
Parameters
Type Name Description
DependencyProperty dp

The dependency property identifier for the specific property on this FrameworkElement where you want to obtain the BindingExpression.

Returns
Type Description
BindingExpression

A BindingExpression for the binding, if the local value represented a data-bound value. May return null if the property is not a data-bound value.

| Improve this Doc View Source

GetVisualChild(Int32)

Overrides GetVisualChild(Int32), and returns a child at the specified index from a collection of child elements.

Declaration
protected override UIElement GetVisualChild(int index)
Parameters
Type Name Description
System.Int32 index

The zero-based index of the requested child element in the collection.

Returns
Type Description
UIElement

The requested child element. This should not return null; if the provided index is out of range, an exception is thrown.

Overrides
UIElement.GetVisualChild(Int32)
| Improve this Doc View Source

INTERNAL_OnAttachedToVisualTree()

Declaration
protected override void INTERNAL_OnAttachedToVisualTree()
Overrides
DependencyObject.INTERNAL_OnAttachedToVisualTree()
| Improve this Doc View Source

INTERNAL_OnDetachedFromVisualTree()

Declaration
protected override void INTERNAL_OnDetachedFromVisualTree()
Overrides
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
| Improve this Doc View Source

ManageIsEnabled(Boolean)

Declaration
protected override void ManageIsEnabled(bool isEnabled)
Parameters
Type Name Description
System.Boolean isEnabled
Overrides
UIElement.ManageIsEnabled(Boolean)
| Improve this Doc View Source

MeasureOverride(Size)

Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.

Declaration
protected virtual Size MeasureOverride(Size availableSize)
Parameters
Type Name Description
Size availableSize

The available size that this object can give to child objects. Infinity (System.Double.PositiveInfinity) can be specified as a value to indicate that the object will size to whatever content is available.

Returns
Type Description
Size

The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects; or based on other considerations, such as a fixed container size.

| Improve this Doc View Source

OnApplyTemplate()

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 your app. Override this method to influence the default post-template logic of a class.

Declaration
public virtual void OnApplyTemplate()
| Improve this Doc View Source

OnPropertyChanged(DependencyPropertyChangedEventArgs)

Invoked whenever the effective value of any dependency property on this DependencyObject has been updated. The specific dependency property that changed is reported in the event data.

Declaration
protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type Name Description
DependencyPropertyChangedEventArgs e

Event data that will contain the dependency property identifier of interest, the property metadata for the type, and old and new values.

Overrides
UIElement.OnPropertyChanged(DependencyPropertyChangedEventArgs)
| Improve this Doc View Source

OnVisualParentChanged(DependencyObject)

Invoked when the parent of this element in the visual tree is changed. Overrides OnVisualParentChanged(DependencyObject).

Declaration
protected override void OnVisualParentChanged(DependencyObject oldParent)
Parameters
Type Name Description
DependencyObject oldParent

The old parent element. May be null to indicate that the element did not have a visual parent previously.

Overrides
UIElement.OnVisualParentChanged(DependencyObject)
| Improve this Doc View Source

RemoveLogicalChild(Object)

Removes the provided object from this element's logical tree. FrameworkElement updates the affected logical tree parent pointers to keep in sync with this deletion.

Declaration
protected void RemoveLogicalChild(object child)
Parameters
Type Name Description
System.Object child

The element to remove.

| Improve this Doc View Source

SetBinding(DependencyProperty, Binding)

Attaches a binding to a FrameworkElement, using the provided binding object, and returns a BindingExpression for possible later use.

Declaration
public BindingExpression SetBinding(DependencyProperty dependencyProperty, Binding binding)
Parameters
Type Name Description
DependencyProperty dependencyProperty

The dependency property identifier of the property that is data bound.

Binding binding

The binding to use for the property.

Returns
Type Description
BindingExpression

A BindingExpression object.

Exceptions
Type Condition
System.ArgumentException

binding is specified as TwoWay, but has an empty Path. or dp or binding parameters are null.

| Improve this Doc View Source

SetBinding(DependencyProperty, BindingBase)

Attaches a binding to this element, based on the provided binding object.

Declaration
public BindingExpressionBase SetBinding(DependencyProperty dp, BindingBase binding)
Parameters
Type Name Description
DependencyProperty dp

Identifies the property where the binding should be established.

BindingBase binding

Represents the specifics of the data binding.

Returns
Type Description
BindingExpressionBase

Records the conditions of the binding. This return value can be useful for error checking.

Events

| Improve this Doc View Source

BindingValidationError

Occurs when a data validation error is reported by a binding source.

Declaration
public event EventHandler<ValidationErrorEventArgs> BindingValidationError
Event Type
Type Description
System.EventHandler<ValidationErrorEventArgs>
| Improve this Doc View Source

ContextMenuOpening

Occurs when any context menu on the element is opened.

Declaration
public event ContextMenuEventHandler ContextMenuOpening
Event Type
Type Description
ContextMenuEventHandler
| Improve this Doc View Source

DataContextChanged

Occurs when the data context for this element changes.

Declaration
public event DependencyPropertyChangedEventHandler DataContextChanged
Event Type
Type Description
DependencyPropertyChangedEventHandler
| Improve this Doc View Source

LayoutUpdated

Occurs when the layout of the Silverlight visual tree changes.

Declaration
public event EventHandler LayoutUpdated
Event Type
Type Description
System.EventHandler
| Improve this Doc View Source

Loaded

Occurs when a FrameworkElement has been constructed and added to the object tree.

Declaration
public event RoutedEventHandler Loaded
Event Type
Type Description
RoutedEventHandler
| Improve this Doc View Source

SizeChanged

Occurs when either the ActualHeight or the ActualWidth properties change value on a FrameworkElement.

Declaration
public event SizeChangedEventHandler SizeChanged
Event Type
Type Description
SizeChangedEventHandler
| Improve this Doc View Source

Unloaded

Occurs when this object is no longer connected to the main object tree.

Declaration
public event RoutedEventHandler Unloaded
Event Type
Type Description
RoutedEventHandler

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
UIElementExtendedRoutedEventExtensions.AddHandler(UIElement, ExtendedRoutedEvent, Delegate, Boolean)
UIElementExtendedRoutedEventExtensions.RemoveHandler(UIElement, ExtendedRoutedEvent, Delegate)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
VisualTreeExtensions.GetBoundsRelativeTo(FrameworkElement, UIElement)
VisualTreeExtensions.InvokeOnLayoutUpdated(FrameworkElement, Action)
  • Improve this Doc
  • View Source