Rediger

Del via


System.Windows Namespace

Provides several important Windows Presentation Foundation (WPF) base element classes, various classes that support the WPF property system and event logic, and other types that are more broadly consumed by the WPF core and framework.

Classes

Application

Encapsulates a Windows Presentation Foundation application.

AttachedPropertyBrowsableAttribute

Provides a base class for .NET attributes that report the use scope of attached properties.

AttachedPropertyBrowsableForChildrenAttribute

Specifies that an attached property has a browsable scope that extends to child elements in the logical tree.

AttachedPropertyBrowsableForTypeAttribute

Specifies that an attached property is browsable only for elements that derive from a specified type.

AttachedPropertyBrowsableWhenAttributePresentAttribute

Specifies that an attached property is only browsable on an element that also has another specific .NET attribute applied to its class definition.

AutoResizedEventArgs

Provides data for the AutoResized event raised by HwndSource.

BaseCompatibilityPreferences

Contains properties that specify how an application should behave relative to new WPF features that are in the WindowsBase assembly.

Clipboard

Provides static methods that facilitate transferring data to and from the system Clipboard.

ColorConvertedBitmapExtension

Implements a markup extension that enables ColorConvertedBitmap creation. A ColorConvertedBitmap does not have an embedded profile, the profile instead being based on source and destination values.

ComponentResourceKey

Defines or references resource keys based on class names in external assemblies, as well as an additional identifier.

Condition

Represents a condition for the MultiTrigger and the MultiDataTrigger, which apply changes to property values based on a set of conditions.

ConditionCollection

Represents a collection of Condition objects.

ContentElement

Provides a WPF core-level base class for content elements. Content elements are designed for flow-style presentation, using an intuitive markup-oriented layout model and a deliberately simple object model.

ContentOperations

Provides static utility methods for getting or setting the position of a ContentElement in an element tree.

CoreCompatibilityPreferences

Contains properties that specify how an application should behave relative to WPF features that are in the PresentationCore assembly.

CornerRadiusConverter

Converts instances of other types to and from a CornerRadius.

CultureInfoIetfLanguageTagConverter

Converts instances of CultureInfo to and from other data types.

DataFormat

Represents a data format by using a format name and numeric ID.

DataFormats

Provides a set of predefined data format names that can be used to identify data formats available in the clipboard or drag-and-drop operations.

DataObject

Provides a basic implementation of the IDataObject interface, which defines a format-independent mechanism for transferring data.

DataObjectCopyingEventArgs

Arguments for the DataObject.Copying event.

DataObjectEventArgs

Provides an abstract base class for events associated with the DataObject class.

DataObjectPastingEventArgs

Contains arguments for the DataObject.Pasting event.

DataObjectSettingDataEventArgs

Contains arguments for the DataObject.SettingData event.

DataTemplate

Describes the visual structure of a data object.

DataTemplateKey

Represents the resource key for the DataTemplate class.

DataTrigger

Represents a trigger that applies property values or performs actions when the bound data meets a specified condition.

DeferrableContent

Represents deferrable content that is held within BAML as a stream.

DeferrableContentConverter

Converts a stream to a DeferrableContent instance.

DependencyObject

Represents an object that participates in the dependency property system.

DependencyObjectType

Implements an underlying type cache for all DependencyObject derived types.

DependencyProperty

Represents a property that can be set through methods such as, styling, data binding, animation, and inheritance.

DependencyPropertyHelper

Provides a single helper method (GetValueSource(DependencyObject, DependencyProperty)) that reports the property system source for the effective value of a dependency property.

DependencyPropertyKey

Provides a dependency property identifier for limited write access to a read-only dependency property.

DialogResultConverter

Converts the DialogResult property, which is a Nullable<T> value of type Boolean, to and from other types.

DpiChangedEventArgs

This class passes necessary information to any listener of the DpiChangedEvent event, such as when a window is moved to a monitor with different DPI, or the DPI of the current monitor changes.

DragDrop

Provides helper methods and fields for initiating drag-and-drop operations, including a method to begin a drag-and-drop operation, and facilities for adding and removing drag-and-drop related event handlers.

DragEventArgs

Contains arguments relevant to all drag-and-drop events (DragEnter, DragLeave, DragOver, and Drop).

DurationConverter

Converts instances of Duration to and from other type representations.

DynamicResourceExtension

Implements a markup extension that supports dynamic resource references made from XAML.

DynamicResourceExtensionConverter

Converts from parsed XAML to DynamicResourceExtension and supports dynamic resource references made from XAML.

EventManager

Provides event-related utility methods that register routed events for class owners and add class handlers.

EventPrivateKey

Provides unique identification for events whose handlers are stored into an internal hashtable.

EventRoute

Represents the container for the route to be followed by a routed event.

EventSetter

Represents an event setter in a style. Event setters invoke the specified event handlers in response to events.

EventTrigger

Represents a trigger that applies a set of actions in response to an event.

ExceptionRoutedEventArgs

Provides data for the Image and MediaElement failed events.

ExitEventArgs

Event arguments for the Exit event.

Expression

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

ExpressionConverter

Converts instances of Expression to and from other types.

FigureLengthConverter

Converts instances of other types to and from a FigureLength.

FontSizeConverter

Converts font size values to and from other type representations.

FontStretchConverter

Converts instances of FontStretch to and from other type representations.

FontStretches

Provides a set of static predefined FontStretch values.

FontStyleConverter

Converts instances of FontStyle to and from other data types.

FontStyles

Provides a set of static predefined FontStyle values.

FontWeightConverter

Converts instances of FontWeight to and from other data types.

FontWeights

Provides a set of static predefined FontWeight values.

FrameworkCompatibilityPreferences

Contains properties that specify how an application should behave relative to WPF features that are in the PresentationFramework assembly.

FrameworkContentElement

FrameworkContentElement is the WPF framework-level implementation and expansion of the ContentElement base class. FrameworkContentElement adds support for additional input APIs (including tooltips and context menus), storyboards, data context for data binding, styles support, and logical tree helper APIs.

FrameworkElement

Provides a WPF framework-level set of properties, events, and methods for Windows Presentation Foundation (WPF) elements. This class represents the provided WPF framework-level implementation that is built on the WPF core-level APIs that are defined by UIElement.

FrameworkElementFactory

Supports the creation of templates.

FrameworkPropertyMetadata

Reports or applies metadata for a dependency property, specifically adding framework-specific property system characteristics.

FrameworkTemplate

Enables the instantiation of a tree of FrameworkElement and/or FrameworkContentElement objects.

Freezable

Defines an object that has a modifiable state and a read-only (frozen) state. Classes that derive from Freezable provide detailed change notification, can be made immutable, and can clone themselves.

FreezableCollection<T>

Represents a collection of DependencyObject, Freezable, or Animatable objects. FreezableCollection<T> is itself an Animatable type.

GiveFeedbackEventArgs

Contains arguments for the GiveFeedback event.

GridLengthConverter

Converts instances of other types to and from GridLength instances.

HierarchicalDataTemplate

Represents a DataTemplate that supports HeaderedItemsControl, such as TreeViewItem or MenuItem.

HwndDpiChangedEventArgs

Represents a type of HandledEventArgs that is relevant to a DpiChanged event.

Int32RectConverter

Converts instances of other types to and from an Int32Rect.

KeySplineConverter

Converts instances of other types to and from a KeySpline.

KeyTimeConverter

Converts instances of KeyTime to and from other types.

LengthConverter

Converts instances of other types to and from instances of a Double that represent an object's length.

LocalizabilityAttribute

Specifies the localization attributes for a binary XAML (BAML) class or class member.

Localization

The Localization class defines attached properties for localization attributes and comments.

LogicalTreeHelper

Provides static helper methods for querying objects in the logical tree.

LostFocusEventManager

Provides a WeakEventManager implementation so that you can use the "weak event listener" pattern to attach listeners for the LostFocus or LostFocus events.

MediaScriptCommandRoutedEventArgs

Provides data for the ScriptCommand and ScriptCommand events.

MessageBox

Displays a message box.

MultiDataTrigger

Represents a trigger that applies property values or performs actions when the bound data meet a set of conditions.

MultiTrigger

Represents a trigger that applies property values or performs actions when a set of conditions are satisfied.

NameScope

Implements base WPF support for the INameScope methods that store or retrieve name-object mappings into a particular XAML namescope. Adds attached property support to make it simpler to get or set XAML namescope names dynamically at the element level.

NullableBoolConverter

Converts to and from the Nullable<T> type (using the Boolean type constraint on the generic).

PointConverter

Converts instances of other types to and from a Point.

PresentationSource

Provides an abstract base for classes that present content from another technology as part of an interoperation scenario. In addition, this class provides static methods for working with these sources, as well as the basic visual-layer presentation architecture.

PropertyMetadata

Defines certain behavior aspects of a dependency property as it is applied to a specific type, including conditions it was registered with.

PropertyPath

Implements a data structure for describing a property as a path below another property, or below an owning type. Property paths are used in data binding to objects, and in storyboards and timelines for animations.

PropertyPathConverter

Provides a type converter for PropertyPath objects.

QueryContinueDragEventArgs

Contains arguments for the QueryContinueDrag event.

ReachCompatibilityPreferences
RectConverter

Converts instances of other types to and from instances of Rect.

RequestBringIntoViewEventArgs

Provides data for the RequestBringIntoView routed event.

ResourceDictionary

Provides a hash table / dictionary implementation that contains WPF resources used by components and other elements of a WPF application.

ResourceKey

Provides an abstract base class for various resource keys.

ResourceReferenceKeyNotFoundException

The exception that is thrown when a resource reference key cannot be found during parsing or serialization of markup extension resources.

RoutedEvent

Represents and identifies a routed event and declares its characteristics.

RoutedEventArgs

Contains state information and event data associated with a routed event.

RoutedPropertyChangedEventArgs<T>

Provides data about a change in value to a dependency property as reported by particular routed events, including the previous and current value of the property that changed.

SessionEndingCancelEventArgs

Contains the event arguments for the SessionEnding event.

Setter

Represents a setter that applies a property value.

SetterBase

Represents the base class for value setters.

SetterBaseCollection

Represents a collection of SetterBase objects.

SizeChangedEventArgs

Provides data related to the SizeChanged event.

SizeChangedInfo

Report the specifics of a value change involving a Size. This is used as a parameter in OnRenderSizeChanged(SizeChangedInfo) overrides.

SizeConverter

Converts instances of other types to and from instances of the Size class.

SourceChangedEventArgs

Provides data for the SourceChanged event, used for interoperation. This class cannot be inherited.

SplashScreen

Provides a startup screen for a Windows Presentation Foundation (WPF) application.

StartupEventArgs

Contains the arguments for the Startup event.

StaticResourceExtension

Implements a markup extension that supports static (XAML load time) resource references made from XAML.

StrokeCollectionConverter

Converts a StrokeCollection to a string.

Style

Enables the sharing of properties, resources, and event handlers between instances of a type.

StyleTypedPropertyAttribute

Represents an attribute that is applied to the class definition and determines the TargetTypes of the properties that are of type Style.

SystemColors

Contains system colors, system brushes, and system resource keys that correspond to system display elements.

SystemCommands

Defines routed commands that are common to window management.

SystemFonts

Contains properties that expose the system resources that concern fonts.

SystemParameters

Contains properties that you can use to query system settings.

TemplateBindingExpression

Describes a run-time instance of a TemplateBindingExtension.

TemplateBindingExpressionConverter

A type converter that is used to construct a markup extension from a TemplateBindingExpression instance during serialization.

TemplateBindingExtension

Implements a markup extension that supports the binding between the value of a property in a template and the value of some other exposed property on the templated control.

TemplateBindingExtensionConverter

A type converter that is used to construct a TemplateBindingExtension from an instance during serialization.

TemplateContent

Implements the record and playback logic that templates use for deferring content when they interact with XAML readers and writers.

TemplateContentLoader

Implements XamlDeferringLoader in order to defer loading of the XAML content that is defined for a template in WPF XAML.

TemplateKey

When used as a resource key for a data template, allows the data template to participate in the lookup process.

TemplatePartAttribute

Represents an attribute that is applied to the class definition to identify the types of the named parts that are used for templating.

TemplateVisualStateAttribute

Specifies that a control can be in a certain state and that a VisualState is expected in the control's ControlTemplate.

TextDecoration

Represents a text decoration, which a visual ornamentation that is added to text (such as an underline).

TextDecorationCollection

Represents a collection of TextDecoration instances.

TextDecorationCollectionConverter

Converts instances of TextDecorationCollection from other data types.

TextDecorations

Provides a set of static predefined text decorations.

ThemeDictionaryExtension

Implements a markup extension that enables application authors to customize control styles based on the current system theme.

ThemeInfoAttribute

Specifies the location in which theme dictionaries are stored for an assembly.

ThemeModeConverter

Converts instances of other types to and from ThemeMode instances.

ThicknessConverter

Converts instances of other types to and from instances of Thickness.

Trigger

Represents a trigger that applies property values or performs actions conditionally.

TriggerAction

Describes an action to perform for a trigger.

TriggerActionCollection

Represents a collection of TriggerAction objects.

TriggerBase

Represents the base class for specifying a conditional value within a Style object.

TriggerCollection

Represents a collection of TriggerBase objects.

UIElement

UIElement is a base class for WPF core level implementations building on Windows Presentation Foundation (WPF) elements and basic presentation characteristics.

UIElement3D

UIElement3D is a base class for WPF core level implementations building on Windows Presentation Foundation (WPF) elements and basic presentation characteristics.

UIPropertyMetadata

Provides property metadata for non-framework properties that do have rendering/user interface impact at the core level.

VectorConverter

Converts instances of other types to and from a Vector.

VisualState

Represents the visual appearance of the control when it is in a specific state.

VisualStateChangedEventArgs

Provides data for the CurrentStateChanging and CurrentStateChanged events.

VisualStateGroup

Contains mutually exclusive VisualState objects and VisualTransition objects that are used to move from one state to another.

VisualStateManager

Manages states and the logic for transitioning between states for controls.

VisualTransition

Represents the visual behavior that occurs when a control transitions from one state to another.

WeakEventManager

Provides a base class for the event manager that is used in the weak event pattern. The manager adds and removes listeners for events (or callbacks) that also use the pattern.

WeakEventManager.ListenerList

Provides a built-in collection list for storing listeners for a WeakEventManager.

WeakEventManager<TEventSource,TEventArgs>

Provides a type-safe WeakEventManager that enables you to specify the event handler to use for the "weak event listener" pattern. This class defines a type parameter for the source of the event and a type parameter for the event data that is used.

WeakEventManager.ListenerList<TEventArgs>

Provides a type-safe collection list for storing listeners for a WeakEventManager. This class defines a type parameter for the event data that is used.

Window

Provides the ability to create, configure, show, and manage the lifetime of windows and dialog boxes.

WindowCollection

Represents a collection of Window objects. This class cannot be inherited.

Structs

CornerRadius

Represents the radiuses of a rectangle's corners.

DependencyPropertyChangedEventArgs

Provides data for various property changed events. Typically these events report effective value changes in the value of a read-only dependency property. Another usage is as part of a PropertyChangedCallback implementation.

DpiScale

Stores DPI information from which a Visual or UIElement is rendered.

Duration

Represents the duration of time that a Timeline is active.

FigureLength

Describes the height or width of a Figure.

FontStretch

Describes the degree to which a font has been stretched compared to the normal aspect ratio of that font.

FontStyle

Defines a structure that represents the style of a font face as normal, italic, or oblique.

FontWeight

Refers to the density of a typeface, in terms of the lightness or heaviness of the strokes.

FreezableCollection<T>.Enumerator

Enumerates the members of a FreezableCollection<T>.

GridLength

Represents the length of elements that explicitly support Star unit types.

Int32Rect

Describes the width, height, and location of an integer rectangle.

LocalValueEntry

Represents a property identifier and the property value for a locally set dependency property.

LocalValueEnumerator

Provides enumeration support for the local values of any dependency properties that exist on a DependencyObject.

Point

Represents an x- and y-coordinate pair in two-dimensional space.

Rect

Describes the width, height, and location of a rectangle.

RoutedEventHandlerInfo

Provides special handling information to inform event listeners whether specific handlers should be invoked.

Size

Implements a structure that is used to describe the Size of an object.

TextDecorationCollection.Enumerator

Enumerates TextDecoration items in a TextDecoration.

ThemeMode

Describes the Fluent theme mode to apply to an application or window.

Thickness

Describes the thickness of a frame around a rectangle. Four Double values describe the Left, Top, Right, and Bottom sides of the rectangle, respectively.

ValueSource

Reports the information returned from GetValueSource(DependencyObject, DependencyProperty).

Vector

Represents a displacement in 2-D space.

Interfaces

IContentHost

This interface is implemented by layouts which host ContentElement.

IDataObject

Provides a format-independent mechanism for transferring data.

IFrameworkInputElement

Declares a namescope contract for framework elements.

IInputElement

Establishes the common events and also the event-related properties and methods for basic input processing by Windows Presentation Foundation (WPF) elements.

IWeakEventListener

Provides event listening support for classes that expect to receive events through the WeakEvent pattern and a WeakEventManager.

Enums

BaseCompatibilityPreferences.HandleDispatcherRequestProcessingFailureOptions

Provides a set of values that describes how the dispatcher responds to failures that are encountered while requesting processing.

BaselineAlignment

Describes how the baseline for a text-based element is positioned on the vertical axis, relative to the established baseline for text.

BaseValueSource

Identifies the property system source of a particular dependency property value.

ColumnSpaceDistribution

Describes how to distribute space in columnated flow content.

DragAction

Specifies how and if a drag-and-drop operation should continue.

DragDropEffects

Specifies the effects of a drag-and-drop operation.

DragDropKeyStates

Specifies the current state of the modifier keys (SHIFT, CTRL, and ALT), as well as the state of the mouse buttons.

FigureHorizontalAnchor

Describes a position reference for a figure in a horizontal direction.

FigureUnitType

Describes the unit type associated with the width or height of a FigureLength.

FigureVerticalAnchor

Describes the point of reference of a figure in the vertical direction.

FlowDirection

Defines constants that specify the content flow direction for text and user interface (UI) elements.

FontCapitals

Describes the capital letter style for a Typography object.

FontEastAsianLanguage

Provides a mechanism for the user to select font-specific versions of glyphs for a specified East Asian writing system or language.

FontEastAsianWidths

Provides a mechanism for the user to select glyphs of different width styles.

FontFraction

Describes the fraction style for a Typography object.

FontNumeralAlignment

Describes the numeral alignment for a Typography object.

FontNumeralStyle

Describes the numeral style for a Typography object.

FontVariants

Renders variant typographic glyph forms.

FrameworkPropertyMetadataOptions

Specifies the types of framework-level property behavior that pertain to a particular dependency property in the Windows Presentation Foundation (WPF) property system.

GridUnitType

Describes the kind of value that a GridLength object is holding.

HorizontalAlignment

Indicates where an element should be displayed on the horizontal axis relative to the allocated layout slot of the parent element.

InheritanceBehavior

Indicates the current mode of lookup for property value inheritance, resource lookup, and RelativeSource FindAncestor lookup. A RelativeSource FindAncestor lookup occurs when a binding uses a RelativeSource that has its Mode property set to the FindAncestor value.

LineBreakCondition

Describes the breaking condition around an inline object.

LineStackingStrategy

Describes a mechanism by which a line box is determined for each line.

LocalizationCategory

Specifies the category value of a LocalizabilityAttribute for a binary XAML (BAML) class or class member.

MessageBoxButton

Specifies the buttons that are displayed on a message box. Used as an argument of the Show method.

MessageBoxImage

Specifies the icon that is displayed by a message box.

MessageBoxOptions

Specifies special display options for a message box.

MessageBoxResult

Specifies which message box button that a user clicks. MessageBoxResult is returned by the Show method.

Modifiability

Specifies the modifiability value of a LocalizabilityAttribute for a binary XAML (BAML) class or class member.

PowerLineStatus

Indicates whether the system power is online, or that the system power status is unknown.

Readability

Specifies the readability value of a LocalizabilityAttribute for a binary XAML (BAML) class or class member.

ReasonSessionEnding

Specifies the reason for which the user's session is ending. Used by the ReasonSessionEnding property.

ResizeMode

Specifies whether a window can be resized and, if so, how it can be resized. Used by the ResizeMode property.

ResourceDictionaryLocation

Specifies the locations where theme resource dictionaries are located.

RoutingStrategy

Indicates the routing strategy of a routed event.

ShutdownMode

Specifies how an application will shutdown. Used by the ShutdownMode property.

SizeToContent

Specifies how a window will automatically size itself to fit the size of its content. Used by the SizeToContent property.

TemplateKey.TemplateType

Describes the different types of templates that use TemplateKey.

TextAlignment

Specifies whether the text in the object is left-aligned, right-aligned, centered, or justified.

TextDataFormat

Specifies the data format of the text data.

TextDecorationLocation

Specifies the vertical position of a TextDecoration object.

TextDecorationUnit

Specifies the unit type of either a TextDecorationPenOffset or a Pen thickness value.

TextMarkerStyle

Describes the appearance of a list item's bullet style.

TextTrimming

Describes how text is trimmed when it overflows the edge of its containing box.

TextWrapping

Specifies whether text wraps when it reaches the edge of the containing box.

VerticalAlignment

Describes how a child element is vertically positioned or stretched within a parent's layout slot.

Visibility

Specifies the display state of an element.

WindowStartupLocation

Specifies the position that a Window will be shown in when it is first opened. Used by the WindowStartupLocation property.

WindowState

Specifies whether a window is minimized, maximized, or restored. Used by the WindowState property.

WindowStyle

Specifies the type of border that a Window has. Used by the WindowStyle property.

WrapDirection

Specifies the allowable directions that content can wrap around an object.

Delegates

AutoResizedEventHandler

Represents the method that will handle the AutoResized event raised by HwndSource.

CoerceValueCallback

Provides a template for a method that is called whenever a dependency property value is being re-evaluated, or coercion is specifically requested.

DataObjectCopyingEventHandler

Represents a method that will handle the Copying attached event.

DataObjectPastingEventHandler

Represents a method that will handle the Pasting attached event.

DataObjectSettingDataEventHandler

Represents a method that will handle the SettingData attached event.

DependencyPropertyChangedEventHandler

Represents the method that will handle events raised when a DependencyProperty is changed on a particular DependencyObject implementation.

DpiChangedEventHandler

Represents a method that will handle DpiChangedEventArgs.

DragEventHandler

Represents a method that will handle drag-and-drop routed events, for example DragEnter.

ExitEventHandler

Represents the method that handles the Exit event.

GiveFeedbackEventHandler

Represents a method that will handle the feedback routed event from in-process drag-and-drop operations, for instance GiveFeedback.

HwndDpiChangedEventHandler

The delegate to use for handlers that receive DPI change notification.

PropertyChangedCallback

Represents the callback that is invoked when the effective property value of a dependency property changes.

QueryContinueDragEventHandler

Represents a method that will handle the routed events that enables a drag-and-drop operation to be canceled by the drag source, for example QueryContinueDrag.

RequestBringIntoViewEventHandler

Represents the method that will handle the RequestBringIntoView routed event.

RoutedEventHandler

Represents the method that will handle various routed events that do not have specific event data beyond the data that is common for all routed events.

RoutedPropertyChangedEventHandler<T>

Represents methods that will handle various routed events that track property value changes.

SessionEndingCancelEventHandler

Represents the method that handles the SessionEnding event.

SizeChangedEventHandler

Represents the method that will handle the SizeChanged routed event.

SourceChangedEventHandler

Represents the method that will handle the "SourceChanged" event on specific listener elements.

StartupEventHandler

Represents the method that handles the Startup event.

ValidateValueCallback

Represents a method used as a callback that validates the effective value of a dependency property.