System.Windows Namespace
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Provides general "framework" presentation classes for the Silverlight client, as well as many Silverlight base classes for presentation features. These classes are often analogous to classes that exist in the Windows Presentation Foundation (WPF).
Classes
Class | Description | |
---|---|---|
Analytics | Exposes read-only data about how an application is performing. | |
Application | Encapsulates a Silverlight application. | |
ApplicationServiceContext | Represents the initial state of a Silverlight application when application extension services are started. | |
ApplicationUnhandledExceptionEventArgs | Provides data for the Application.UnhandledException event. | |
AssemblyPart | An assembly part is an assembly that is to be included in a Silverlight-based application package (.xap). | |
AssemblyPartCollection | Stores a collection of AssemblyPart objects. Provides collection support for the Deployment.Parts property. | |
CheckAndDownloadUpdateCompletedEventArgs | Provides data for the Application.CheckAndDownloadUpdateCompleted event. | |
Clipboard | Provides static methods that facilitate transferring data to and from the system clipboard. In Silverlight 5, this access is limited to Unicode text strings. | |
DataFormats | Provides static, predefined format names for data objects. Use the named constants to identify the format of the data that you request from an IDataObject object. | |
DataObject | Provides a basic implementation of the IDataObject interface, which defines a format-independent mechanism for transferring data. | |
DataTemplate | Describes the visual structure of a data object. | |
DataTemplateKey | Represents the resource key for the DataTemplate class. | |
DependencyObject | Represents an object that participates in the Silverlight dependency property system. DependencyObject is the immediate base class of several other important Silverlight classes, such as UIElement, Geometry, FrameworkTemplate, Style, and ResourceDictionary. | |
DependencyObjectCollection<T> | Represents a collection of DependencyObject instances of a specified type. | |
DependencyProperty | Represents a dependency property that is registered with the Silverlight dependency property system. Dependency properties provide support for value expressions, data binding, animation, and property change notification. | |
Deployment | Provides application part and localization information in the application manifest when deploying a Silverlight-based application. | |
DragEventArgs | Provides data for drag-and-drop events in Silverlight. | |
DurationConverter | Provides type conversion support for the Duration structure. | |
EventTrigger | Represents a trigger that applies a set of actions (animation storyboards) in response to an event. | |
ExceptionRoutedEventArgs | Provides event data for exceptions that are raised as events by asynchronous operations, such as MediaFailed or ImageFailed. | |
Expression | Infrastructure. This type is not intended to be used from your code or to be derived from. | |
ExtensionPart | Represents a zip file containing assemblies used by application library caching. | |
ExternalPart | Defines a base class for specifying parts of a Silverlight application that are external to the application package (.xap file). | |
ExternalPartCollection | Represents a collection of ExternalPart instances that indicate parts of a Silverlight application that are external to the application package (.xap file). | |
FontStretches | Provides a set of predefined font stretches as static property values. | |
FontStyles | Provides a set of predefined font styles as static property values. | |
FontWeights | Provides a set of predefined font weights as static property values. | |
FrameworkElement | Provides a framework of common APIs for objects that participate in Silverlight layout. FrameworkElement also defines APIs related to data binding, object tree, and object lifetime feature areas in Silverlight. | |
FrameworkTemplate | Creates an element tree of elements. | |
GpuInformation | Represents details for graphics processor unit (GPU) information as reported by the system of the local computer. | |
HierarchicalDataTemplate | Represents a DataTemplate that supports HeaderedItemsControl objects, such as TreeViewItem. | |
Icon | Represents an icon that is used to identify an offline application. | |
IconCollection | Represents a collection of Icon instances. | |
InBrowserSettings | Represents information about an application that is configured for in-browser support. | |
LayoutCycleException | An exception that is thrown by the layout cycle. | |
MediaFailedRoutedEventArgs | Provides event data for media failed events. | |
MessageBox | Displays a message to the user and optionally prompts for a response. | |
NotificationWindow | Represents a notification area that is displayed in the system area. Notifications can only be enabled for an out-of-browser application; browser-hosted applications cannot access this notification area. | |
NullableBoolConverter | Converts Nullable<T> types (using the Boolean type constraint on the generic) from strings. | |
OutOfBrowserSettings | Represents information about an application that is configured for out-of-browser support. | |
PresentationFrameworkCollection<T> | Provides a common collection class for Silverlight collections. | |
PropertyMetadata | Defines certain behavior aspects of a dependency property, 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 type conversion support for the PropertyPath type. | |
ResourceDictionary | Provides a dictionary that contains resources used by components of a Silverlight-based application. | |
RoutedEvent | Represents a routed event to the Silverlight event system. | |
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. | |
SecuritySettings | Represents the security configuration of an out-of-browser application. | |
Setter | Applies a value to a property in a Style. | |
SetterBase | Represents the base class for value setters. | |
SetterBaseCollection | Represents a collection of objects that inherit from SetterBase. | |
SizeChangedEventArgs | Provides data related to the SizeChanged event. | |
StartupEventArgs | Contains the event data for the Startup event. | |
Style | Contains property setters that can be shared between instances of a type. | |
StyleTypedPropertyAttribute | Represents an attribute that is applied to the class definition and reports the TargetType of the properties that are of type Style. | |
SystemColors | Contains system colors, system brushes, and system resource keys that correspond to system display elements. | |
SystemParameters | Contains properties that you can use to query system settings. | |
TemplateBindingExpression | Infrastructure. Supports template binding. | |
TemplatePartAttribute | Represents an attribute that is applied to the class definition to identify the types of the named parts that are used for control templating. | |
TemplateVisualStateAttribute | Specifies that a control can be in a certain state and that a VisualState is expected in the control's ControlTemplate. | |
TextDecorationCollection | Provides the value for the TextBlock.TextDecorations and Inline.TextDecorations properties. | |
TextDecorations | Implements a set of predefined text decorations. | |
TriggerAction | Serves as the base class for BeginStoryboard. | |
TriggerActionCollection | Represents a collection of BeginStoryboard objects. | |
TriggerBase | Serves as the base class for EventTrigger. | |
TriggerCollection | Represents a collection of EventTrigger objects. | |
UIElement | UIElement is a base class for most of the objects that have visual appearance and can process basic input in Silverlight. | |
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 go 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 the control transitions from one state to another. | |
Window | Represents an out-of-browser application window. | |
WindowCollection | Represents a collection of Window instances. | |
WindowSettings | Represents information about an out-of-browser application window. |
Structures
Structure | Description | |
---|---|---|
CornerRadius | Describes the characteristics of a rounded corner, such as can be applied to a Border. | |
DependencyPropertyChangedEventArgs | Provides data for a PropertyChangedCallback implementation. | |
Duration | Represents the duration of time that a Timeline is active. | |
FontStretch | Describes the degree to which a font has been stretched, compared to the normal aspect ratio of that font. | |
FontStyle | Represents the style of a font face (for instance, as normal or italic). | |
FontWeight | Refers to the density of a typeface, in terms of the lightness or heaviness of the strokes. | |
GridLength | Represents the length of elements that explicitly support Star unit types. | |
Point | Represents an x- and y-coordinate pair in two-dimensional space. Can also represent a logical point for certain property usages. | |
Rect | Describes the width, height, and point origin of a rectangle. | |
Size | Describes the width and height of an object. | |
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. |
Interfaces
Interface | Description | |
---|---|---|
IApplicationLifetimeAware | Defines methods that application extension services can optionally implement in order to respond to application lifetime events. | |
IApplicationService | Defines methods that application extension services must implement in order to enable an application to start and stop the service. | |
IDataObject | Provides a format-independent mechanism for transferring data. |
Delegates
Delegate | Description | |
---|---|---|
CheckAndDownloadUpdateCompletedEventHandler | Represents the method that will handle the Application.CheckAndDownloadUpdateCompleted event. | |
DependencyPropertyChangedEventHandler | Represents the method that will handle events raised when a DependencyProperty is changed on a particular DependencyObject implementation. | |
DragEventHandler | Represents the method that will handle the DragEnter, DragLeave, DragOver, and Drop events of a UIElement. | |
ExceptionRoutedEventHandler | Represents the method that will handle certain events that report exceptions. These exceptions generally come from asynchronous operations where holding up the UI thread for exception checking is not an option. | |
MediaFailedRoutedEventHandler | Represents the method that handles media failed events. | |
PropertyChangedCallback | Represents the callback that is invoked when the effective property value of a dependency property changes. | |
RoutedEventHandler | Represents the method that will handle routed events. | |
RoutedPropertyChangedEventHandler<T> | Represents methods that will handle various routed events that track property value changes. | |
SizeChangedEventHandler | Represents the method that will handle the SizeChanged event. | |
StartupEventHandler | Represents the method that will handle the Application.Startup event. |
Enumerations
Enumeration | Description | |
---|---|---|
CrossDomainAccess | Defines values that specify the access that cross-domain callers have to a Silverlight-based application. | |
ElevatedPermissions | Defines constants that indicate whether elevated permissions are required for an out-of-browser application. | |
FlowDirection | Defines constants that specify the content flow direction for text and 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 | Defines access to registered OpenType font variants. | |
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. | |
InstallState | Defines constants that indicate the installation state of an application that is configured to run outside the browser. | |
LineStackingStrategy | Describes the mechanism by which a line box is determined for each line. | |
MessageBoxButton | Specifies the buttons to include when you display a message box. | |
MessageBoxResult | Represents a user's response to a message box. | |
TextAlignment | Specifies whether text is centered, left-aligned, or right-aligned. | |
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 its container. | |
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. | |
WindowResizeEdge | Defines constants that represent the edges and corners of a Silverlight out-of-browser application window. | |
WindowStartupLocation | Defines constants that indicate how an out-of-browser application window is positioned at startup. | |
WindowState | Defines constants that indicate the state of an out-of-browser application window. | |
WindowStyle | Defines constants that indicate the appearance of the title bar and border of an out-of-browser application window. |