콘텐츠로 이동

FrameworkElement class

이 콘텐츠는 아직 번역되지 않았습니다.

Base class for elements with size, margin, alignment, and data binding support.

Guide: C# Markup reference: Misc

public abstract class FrameworkElement : UIElement, IDisposable
name description
ActualHeight { get; } Gets the height from the last arrange pass, in DIPs.
ActualWidth { get; } Gets the width from the last arrange pass, in DIPs.
ContextMenu { get; set; } Gets or sets the menu shown when the pointer is right-pressed over this element.
Height { get; set; } Gets or sets the explicit height; NaN means automatic sizing.
HorizontalAlignment { get; set; } Gets or sets the horizontal alignment within the parent.
Margin { get; set; } Gets or sets the outer margin.
MaxHeight { get; set; } Gets or sets the maximum height in DIPs; the default is no bound.
MaxWidth { get; set; } Gets or sets the maximum width in DIPs; the default is no bound.
MinHeight { get; set; } Gets or sets the minimum height in DIPs.
MinWidth { get; set; } Gets or sets the minimum width in DIPs.
StyleSheet { get; set; } Gets or sets a StyleSheet that provides named styles and type-based style rules for descendant controls.
Tag { get; set; } Gets or sets an arbitrary object value for custom use.
ToolTip { get; set; } Gets or sets what to show when the pointer rests on this element.
VerticalAlignment { get; set; } Gets or sets the vertical alignment within the parent.
Width { get; set; } Gets or sets the explicit width; NaN means automatic sizing.
event SizeChanged Occurs when the element’s size changes.
Dispose() Hides the tooltip, releases bindings and calls OnDispose; later calls do nothing.
GetDpi() Gets the DPI of the window hosting this element, or the system DPI when detached.
static readonly ContextMenuProperty The menu shown when the pointer is right-pressed over this element, or null for none.
static readonly HeightProperty The explicit height in DIPs; NaN sizes to content.
static readonly HorizontalAlignmentProperty The horizontal alignment within the parent; the default is Stretch.
static readonly MarginProperty The outer margin in DIPs.
static readonly MaxHeightProperty The maximum height in DIPs; infinity is no bound.
static readonly MaxWidthProperty The maximum width in DIPs; infinity is no bound.
static readonly MinHeightProperty The minimum height in DIPs.
static readonly MinWidthProperty The minimum width in DIPs.
static readonly TagProperty An arbitrary object value for custom use.
static readonly ToolTipProperty What to show when the pointer rests on this element, or null for nothing.
static readonly VerticalAlignmentProperty The vertical alignment within the parent; the default is Stretch.
static readonly WidthProperty The explicit width in DIPs; NaN sizes to content.