- Пространства имен в Visual Basic Namespaces in Visual Basic
- Предотвращение конфликтов имен Avoiding Name Collisions
- полные имена Fully Qualified Names
- Операторы уровня пространства имен Namespace Level Statements
- Ключевое слово Global в полных именах Global Keyword in Fully Qualified Names
- Ключевое слово Global в операторах пространства имен Global Keyword in Namespace Statements
- The type or namespace name ‘Windows’ does not exist in the namespace ‘System’
- 5 Answers 5
- System. Windows Namespace
- Classes
- Structs
- Interfaces
- Enums
- Delegates
Пространства имен в Visual Basic Namespaces in Visual Basic
Пространства имен упорядочивают объекты, определенные в сборке. Namespaces organize the objects defined in an assembly. Сборки могут содержать несколько пространств имен, которые, в свою очередь, могут содержать другие пространства имен. Assemblies can contain multiple namespaces, which can in turn contain other namespaces. Пространства имен предотвращают неоднозначность и упрощают ссылки при использовании больших групп объектов, таких как библиотеки классов. Namespaces prevent ambiguity and simplify references when using large groups of objects such as class libraries.
Например, платформа .NET Framework определяет ListBox класс в System.Windows.Forms пространстве имен. For example, the .NET Framework defines the ListBox class in the System.Windows.Forms namespace. В следующем фрагменте кода показано, как объявить переменную, используя полное имя для этого класса: The following code fragment shows how to declare a variable using the fully qualified name for this class:
Предотвращение конфликтов имен Avoiding Name Collisions
Платформа .NET Framework пространства имен устраняют проблему, которая иногда называется засорением пространства имен, при которой разработчик библиотеки классов страдает от использования аналогичных имен в другой библиотеке. .NET Framework namespaces address a problem sometimes called namespace pollution, in which the developer of a class library is hampered by the use of similar names in another library. Такие конфликты с существующими компонентами иногда называют конфликтами имен. These conflicts with existing components are sometimes called name collisions.
Например, если вы создаете новый класс ListBox , то можете использовать его внутри проекта без уточнения. For example, if you create a new class named ListBox , you can use it inside your project without qualification. Однако если вы хотите использовать ListBox класс платформа .NET Framework в том же проекте, необходимо использовать полную ссылку, чтобы сделать ссылку уникальной. However, if you want to use the .NET Framework ListBox class in the same project, you must use a fully qualified reference to make the reference unique. Если ссылка не является уникальной, Visual Basic выдает ошибку, сообщающую, что имя неоднозначно. If the reference is not unique, Visual Basic produces an error stating that the name is ambiguous. В примере кода ниже показано, как объявить эти объекты: The following code example demonstrates how to declare these objects:
На следующем рисунке показаны две иерархии пространства имен, содержащие объект с именем ListBox : The following illustration shows two namespace hierarchies, both containing an object named ListBox :
По умолчанию каждый исполняемый файл, созданный с помощью Visual Basic, содержит пространство имен с тем же именем, что и у проекта. By default, every executable file you create with Visual Basic contains a namespace with the same name as your project. Например, если вы определяете объект в проекте ListBoxProject , то исполняемый файл ListBoxProject.exe содержит пространство имен ListBoxProject . For example, if you define an object within a project named ListBoxProject , the executable file ListBoxProject.exe contains a namespace called ListBoxProject .
Несколько сборок могут использовать одно и то же пространство имен. Multiple assemblies can use the same namespace. Visual Basic обрабатывает их как единый набор имен. Visual Basic treats them as a single set of names. Например, можно определить классы для пространства имен SomeNameSpace в сборке Assemb1 , а также определить дополнительные классы для того же пространства имен из сборки Assemb2 . For example, you can define classes for a namespace called SomeNameSpace in an assembly named Assemb1 , and define additional classes for the same namespace from an assembly named Assemb2 .
полные имена Fully Qualified Names
Полные имена — это ссылки на объекты, имеющие префикс в виде имени пространства имен, в котором определен объект. Fully qualified names are object references that are prefixed with the name of the namespace in which the object is defined. Вы можете использовать объекты, определенные в других проектах, если создадите ссылку на класс (выбрав Добавить ссылку в меню Проект ) и затем используете полное имя объекта в коде. You can use objects defined in other projects if you create a reference to the class (by choosing Add Reference from the Project menu) and then use the fully qualified name for the object in your code. В следующем фрагменте кода показано, как использовать полное имя объекта из пространства имен другого проекта: The following code fragment shows how to use the fully qualified name for an object from another project’s namespace:
Полные имена предотвращают возникновение конфликтов имен, так как позволяют компилятору определить, какой именно объект используется. Fully qualified names prevent naming conflicts because they make it possible for the compiler to determine which object is being used. Однако сами эти имена могут получиться длинными и громоздкими. However, the names themselves can get long and cumbersome. Чтобы обойти эту проблему, можно использовать оператор Imports для определения псевдонима— сокращенного имени, которое можно применить вместо полного имени. To get around this, you can use the Imports statement to define an alias—an abbreviated name you can use in place of a fully qualified name. Например, в следующем примере кода создаются псевдонимы для двух полных имен, которые затем используются для определения двух объектов. For example, the following code example creates aliases for two fully qualified names, and uses these aliases to define two objects.
Если вы применяете оператор Imports без псевдонима, можно использовать все имена в данном пространстве имен без уточнения при условии, что они являются уникальными в данном проекте. If you use the Imports statement without an alias, you can use all the names in that namespace without qualification, provided they are unique to the project. Если проект содержит операторы Imports для пространств имен, где есть элементы с одинаковым именем, необходимо полностью уточнять это имя. If your project contains Imports statements for namespaces that contain items with the same name, you must fully qualify that name when you use it. Предположим, что проект содержал два следующих оператора Imports : Suppose, for example, your project contained the following two Imports statements:
При попытке использовать Class1 без полного указания этого имени Visual Basic выдает ошибку, сообщающую, что имя Class1 неоднозначно. If you attempt to use Class1 without fully qualifying it, Visual Basic produces an error stating that the name Class1 is ambiguous.
Операторы уровня пространства имен Namespace Level Statements
В пространстве имен можно определить такие элементы, как модули, интерфейсы, классы, делегаты, перечисления, структуры и другие пространства имен. Within a namespace, you can define items such as modules, interfaces, classes, delegates, enumerations, structures, and other namespaces. Вы не можете определить такие элементы, как свойства, процедуры, переменные и события, на уровне пространства имен. You cannot define items such as properties, procedures, variables and events at the namespace level. Их следует объявить внутри контейнеров, таких как модули, структуры или классы. These items must be declared within containers such as modules, structures, or classes.
Ключевое слово Global в полных именах Global Keyword in Fully Qualified Names
Если вы определили вложенную иерархию пространств имен, доступ кода внутри этой иерархии к пространству имен System платформы .NET Framework может быть заблокирован. If you have defined a nested hierarchy of namespaces, code inside that hierarchy might be blocked from accessing the System namespace of the .NET Framework. В следующем примере показана иерархия, где пространство имен SpecialSpace.System блокирует доступ к System. The following example illustrates a hierarchy in which the SpecialSpace.System namespace blocks access to System.
В результате компилятору Visual Basic не удается разрешить успешно ссылку в System.Int32, так как SpecialSpace.System не определяет Int32 . As a result, the Visual Basic compiler cannot successfully resolve the reference to System.Int32, because SpecialSpace.System does not define Int32 . Можно использовать ключевое слово Global для запуска цепочки квалификации на самом внешнем уровне библиотеки классов .NET Framework. You can use the Global keyword to start the qualification chain at the outermost level of the .NET Framework class library. Это позволяет указать пространство имен System или любое другое пространство имен в библиотеке классов. This allows you to specify the System namespace or any other namespace in the class library. Это показано в следующем примере. The following example illustrates this.
Можно использовать Global для доступа к другим пространствам имен корневого уровня, таким как Microsoft.VisualBasic, и любому пространству имен, сопоставленному с проектом. You can use Global to access other root-level namespaces, such as Microsoft.VisualBasic, and any namespace associated with your project.
Ключевое слово Global в операторах пространства имен Global Keyword in Namespace Statements
Можно также использовать ключевое слово Global в Namespace Statement. You can also use the Global keyword in a Namespace Statement. Это позволяет определить пространство имен из корневых пространств имен проекта. This lets you define a namespace out of the root namespace of your project.
Все пространства имен в проекте основаны на его корневом пространстве имен. All namespaces in your project are based on the root namespace for the project. Visual Studio назначает имя проекта в качестве корневого пространства имен по умолчанию для всего кода в проекте. Visual Studio assigns your project name as the default root namespace for all code in your project. Например, если проект называется ConsoleApplication1 , его программные элементы относятся к пространству имен ConsoleApplication1 . For example, if your project is named ConsoleApplication1 , its programming elements belong to namespace ConsoleApplication1 . При объявлении Namespace Magnetosphere ссылки на Magnetosphere в проекте будут обращаться к ConsoleApplication1.Magnetosphere . If you declare Namespace Magnetosphere , references to Magnetosphere in the project will access ConsoleApplication1.Magnetosphere .
В следующих примерах используется ключевое слово Global для объявления пространства имен из корневого пространства имен для проекта. The following examples use the Global keyword to declare a namespace out of the root namespace for the project.
В объявлении пространства имен Global не может быть вложенным в другое пространство имен. In a namespace declaration, Global cannot be nested in another namespace.
Вы можете использовать Application Page, Project Designer (Visual Basic) для просмотра и изменения значения Корневое пространство имен проекта. You can use the Application Page, Project Designer (Visual Basic) to view and modify the Root Namespace of the project. Для новых проектов параметру Корневое пространство имен по умолчанию присваивается имя проекта. For new projects, the Root Namespace defaults to the project name. Чтобы сделать Global пространством имен верхнего уровня, можно очистить запись Корневое пространство имен , оставив поле пустым. To cause Global to be the top-level namespace, you can clear the Root Namespace entry so that the box is empty. Очистка значения Корневое пространство имен избавляет от необходимости использовать ключевое слово Global в объявлениях пространств имен. Clearing Root Namespace removes the need for the Global keyword in namespace declarations.
Когда оператор Namespace объявляет имя, которое также является пространством имен в платформе .NET Framework, пространство имен .NET Framework станет недоступным, если в полном имени не используется ключевое слово Global . If a Namespace statement declares a name that is also a namespace in the .NET Framework, the .NET Framework namespace becomes unavailable if the Global keyword is not used in a fully qualified name. Для обеспечения доступа к пространству имен .NET Framework без использования ключевого слова Global можно включить ключевое слово Global в оператор Namespace . To enable access to that .NET Framework namespace without using the Global keyword, you can include the Global keyword in the Namespace statement.
The type or namespace name ‘Windows’ does not exist in the namespace ‘System’
I am trying to code for pop up message box for displaying message for successful record insertion in C#.net
Error :
The type or namespace name ‘Windows’ does not exist in the namespace ‘System’ (are you missing an assembly reference?)
Code :
5 Answers 5
You are not missing any DLL , It seems like you are using the wrong type of project.
If you are using MS Visual Studio:
- Right click on the Project
- Select «Add Reference. «
- Navigate to the «.NET» tab
- Find «System.Windows.Forms» and select it
- Click OK.
P. S.: Additionally, I had to do the same with «System.Drawing» for everything to work correctly in my first GUI Windows program.
global::System.Windows.Forms.MessageBox.Show(«Test»); in an ASP.NET MVC application? And where did you expect this message box to pop out?
In an ASP.NET MVC application you could use client side javascript to show message boxes.
For example inside your view you could put the following:
And when you navigate to the corresponding controller action the user will be greeted with the message box.
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
Encapsulates a Windows Presentation Foundation application.
Provides a base class for .NET attributes that report the use scope of attached properties.
Specifies that an attached property has a browsable scope that extends to child elements in the logical tree.
Specifies that an attached property is browsable only for elements that derive from a specified type.
Specifies that an attached property is only browsable on an element that also has another specific .NET attribute applied to its class definition.
Provides data for the AutoResized event raised by HwndSource.
Contains properties that specify how an application should behave relative to new WPF features that are in the WindowsBase assembly.
Provides static methods that facilitate transferring data to and from the system Clipboard.
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.
Defines or references resource keys based on class names in external assemblies, as well as an additional identifier.
Represents a condition for the MultiTrigger and the MultiDataTrigger, which apply changes to property values based on a set of conditions.
Represents a collection of Condition objects.
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.
Provides static utility methods for getting or setting the position of a ContentElement in an element tree.
Contains properties that specify how an application should behave relative to WPF features that are in the PresentationCore assembly.
Converts instances of other types to and from a CornerRadius.
Converts instances of CultureInfo to and from other data types.
Represents a data format by using a format name and numeric ID.
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.
Provides a basic implementation of the IDataObject interface, which defines a format-independent mechanism for transferring data.
Arguments for the DataObject.Copying event.
Provides an abstract base class for events associated with the DataObject class.
Contains arguments for the DataObject.Pasting event.
Contains arguments for the DataObject.SettingData event.
Describes the visual structure of a data object.
Represents the resource key for the DataTemplate class.
Represents a trigger that applies property values or performs actions when the bound data meets a specified condition.
Represents deferrable content that is held within BAML as a stream.
Converts a stream to a DeferrableContent instance.
Represents an object that participates in the dependency property system.
Implements an underlying type cache for all DependencyObject derived types.
Represents a property that can be set through methods such as, styling, data binding, animation, and inheritance.
Provides a single helper method (GetValueSource(DependencyObject, DependencyProperty)) that reports the property system source for the effective value of a dependency property.
Provides a dependency property identifier for limited write access to a read-only dependency property.
Converts the DialogResult property, which is a Nullable value of type Boolean, to and from other types.
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.
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.
Contains arguments relevant to all drag-and-drop events (DragEnter, DragLeave, DragOver, and Drop).
Converts instances of Duration to and from other type representations.
Implements a markup extension that supports dynamic resource references made from XAML.
Converts from parsed XAML to DynamicResourceExtension and supports dynamic resource references made from XAML.
Provides event-related utility methods that register routed events for class owners and add class handlers.
Provides unique identification for events whose handlers are stored into an internal hashtable.
Represents the container for the route to be followed by a routed event.
Represents an event setter in a style. Event setters invoke the specified event handlers in response to events.
Represents a trigger that applies a set of actions in response to an event.
Provides data for the Image and MediaElement failed events.
Event arguments for the Exit event.
This type supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Converts instances of Expression to and from other types.
Converts instances of other types to and from a FigureLength.
Converts font size values to and from other type representations.
Converts instances of FontStretch to and from other type representations.
Provides a set of static predefined FontStretch values.
Converts instances of FontStyle to and from other data types.
Provides a set of static predefined FontStyle values.
Converts instances of FontWeight to and from other data types.
Provides a set of static predefined FontWeight values.
Contains properties that specify how an application should behave relative to WPF features that are in the PresentationFramework assembly.
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.
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.
Supports the creation of templates.
Reports or applies metadata for a dependency property, specifically adding framework-specific property system characteristics.
Enables the instantiation of a tree of FrameworkElement and/or FrameworkContentElement objects.
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.
Contains arguments for the GiveFeedback event.
Converts instances of other types to and from GridLength instances.
Represents a type of HandledEventArgs that is relevant to a DpiChanged event.
Converts instances of other types to and from an Int32Rect.
Converts instances of other types to and from a KeySpline.
Converts instances of KeyTime to and from other types.
Converts instances of other types to and from instances of a Double that represent an object’s length.
Specifies the localization attributes for a binary XAML (BAML) class or class member.
The Localization class defines attached properties for localization attributes and comments.
Provides static helper methods for querying objects in the logical tree.
Provides a WeakEventManager implementation so that you can use the «weak event listener» pattern to attach listeners for the LostFocus or LostFocus events.
Provides data for the ScriptCommand and ScriptCommand events.
Displays a message box.
Represents a trigger that applies property values or performs actions when the bound data meet a set of conditions.
Represents a trigger that applies property values or performs actions when a set of conditions are satisfied.
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.
Converts to and from the Nullable type (using the Boolean type constraint on the generic).
Converts instances of other types to and from a Point.
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.
Defines certain behavior aspects of a dependency property as it is applied to a specific type, including conditions it was registered with.
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.
Provides a type converter for PropertyPath objects.
Contains arguments for the QueryContinueDrag event.
Converts instances of other types to and from instances of Rect.
Provides data for the RequestBringIntoView routed event.
Provides a hash table / dictionary implementation that contains WPF resources used by components and other elements of a WPF application.
Provides an abstract base class for various resource keys.
The exception that is thrown when a resource reference key cannot be found during parsing or serialization of markup extension resources.
Represents and identifies a routed event and declares its characteristics.
Contains state information and event data associated with a routed event.
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.
Contains the event arguments for the SessionEnding event.
Represents a setter that applies a property value.
Represents the base class for value setters.
Represents a collection of SetterBase objects.
Provides data related to the SizeChanged event.
Report the specifics of a value change involving a Size. This is used as a parameter in OnRenderSizeChanged(SizeChangedInfo) overrides.
Converts instances of other types to and from instances of the Size class.
Provides data for the SourceChanged event, used for interoperation. This class cannot be inherited.
Provides a startup screen for a Windows Presentation Foundation (WPF) application.
Contains the arguments for the Startup event.
Implements a markup extension that supports static (XAML load time) resource references made from XAML.
Converts a StrokeCollection to a string.
Enables the sharing of properties, resources, and event handlers between instances of a type.
Represents an attribute that is applied to the class definition and determines the TargetTypes of the properties that are of type Style.
Contains system colors, system brushes, and system resource keys that correspond to system display elements.
Defines routed commands that are common to window management.
Contains properties that expose the system resources that concern fonts.
Contains properties that you can use to query system settings.
Describes a run-time instance of a TemplateBindingExtension.
A type converter that is used to construct a markup extension from a TemplateBindingExpression instance during serialization.
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.
A type converter that is used to construct a TemplateBindingExtension from an instance during serialization.
Implements the record and playback logic that templates use for deferring content when they interact with XAML readers and writers.
Implements XamlDeferringLoader in order to defer loading of the XAML content that is defined for a template in WPF XAML.
When used as a resource key for a data template, allows the data template to participate in the lookup process.
Represents an attribute that is applied to the class definition to identify the types of the named parts that are used for templating.
Specifies that a control can be in a certain state and that a VisualState is expected in the control’s ControlTemplate.
Represents a text decoration, which a visual ornamentation that is added to text (such as an underline).
Represents a collection of TextDecoration instances.
Converts instances of TextDecorationCollection from other data types.
Provides a set of static predefined text decorations.
Implements a markup extension that enables application authors to customize control styles based on the current system theme.
Specifies the location in which theme dictionaries are stored for an assembly.
Converts instances of other types to and from instances of Thickness.
Represents a trigger that applies property values or performs actions conditionally.
Describes an action to perform for a trigger.
Represents a collection of TriggerAction objects.
Represents the base class for specifying a conditional value within a Style object.
Represents a collection of TriggerBase objects.
UIElement is a base class for WPF core level implementations building on Windows Presentation Foundation (WPF) elements and basic presentation characteristics.
UIElement3D is a base class for WPF core level implementations building on Windows Presentation Foundation (WPF) elements and basic presentation characteristics.
Provides property metadata for non-framework properties that do have rendering/user interface impact at the core level.
Converts instances of other types to and from a Vector.
Represents the visual appearance of the control when it is in a specific state.
Contains mutually exclusive VisualState objects and VisualTransition objects that are used to move from one state to another.
Manages states and the logic for transitioning between states for controls.
Represents the visual behavior that occurs when a control transitions from one state to another.
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.
Provides a built-in collection list for storing listeners for a WeakEventManager.
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.
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.
Provides the ability to create, configure, show, and manage the lifetime of windows and dialog boxes.
Represents a collection of Window objects. This class cannot be inherited.
Structs
Represents the radiuses of a rectangle’s corners.
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.
Stores DPI information from which a Visual or UIElement is rendered.
Represents the duration of time that a Timeline is active.
Describes the height or width of a Figure.
Describes the degree to which a font has been stretched compared to the normal aspect ratio of that font.
Defines a structure that represents the style of a font face as normal, italic, or oblique.
Refers to the density of a typeface, in terms of the lightness or heaviness of the strokes.
Enumerates the members of a FreezableCollection .
Represents the length of elements that explicitly support Star unit types.
Describes the width, height, and location of an integer rectangle.
Represents a property identifier and the property value for a locally set dependency property.
Provides enumeration support for the local values of any dependency properties that exist on a DependencyObject.
Represents an x- and y-coordinate pair in two-dimensional space.
Describes the width, height, and location of a rectangle.
Provides special handling information to inform event listeners whether specific handlers should be invoked.
Implements a structure that is used to describe the Size of an object.
Describes the thickness of a frame around a rectangle. Four Double values describe the Left, Top, Right, and Bottom sides of the rectangle, respectively.
Represents a displacement in 2-D space.
Interfaces
This interface is implemented by layouts which host ContentElement.
Provides a format-independent mechanism for transferring data.
Declares a namescope contract for framework elements.
Establishes the common events and also the event-related properties and methods for basic input processing by Windows Presentation Foundation (WPF) elements.
Provides event listening support for classes that expect to receive events through the WeakEvent pattern and a WeakEventManager.
Enums
Provides a set of values that describes how the dispatcher responds to failures that are encountered while requesting processing.
Describes how the baseline for a text-based element is positioned on the vertical axis, relative to the established baseline for text.
Identifies the property system source of a particular dependency property value.
Describes how to distribute space in columnated flow content.
Specifies how and if a drag-and-drop operation should continue.
Specifies the effects of a drag-and-drop operation.
Specifies the current state of the modifier keys (SHIFT, CTRL, and ALT), as well as the state of the mouse buttons.
Describes a position reference for a figure in a horizontal direction.
Describes the unit type associated with the width or height of a FigureLength.
Describes the point of reference of a figure in the vertical direction.
Defines constants that specify the content flow direction for text and user interface (UI) elements.
Describes the capital letter style for a Typography object.
Provides a mechanism for the user to select font-specific versions of glyphs for a specified East Asian writing system or language.
Provides a mechanism for the user to select glyphs of different width styles.
Describes the fraction style for a Typography object.
Describes the numeral alignment for a Typography object.
Describes the numeral style for a Typography object.
Renders variant typographic glyph forms.
Specifies the types of framework-level property behavior that pertain to a particular dependency property in the Windows Presentation Foundation (WPF) property system.
Describes the kind of value that a GridLength object is holding.
Indicates where an element should be displayed on the horizontal axis relative to the allocated layout slot of the parent element.
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.
Describes the breaking condition around an inline object.
Describes a mechanism by which a line box is determined for each line.
Specifies the category value of a LocalizabilityAttribute for a binary XAML (BAML) class or class member.
Specifies the buttons that are displayed on a message box. Used as an argument of the Show method.
Specifies the icon that is displayed by a message box.
Specifies special display options for a message box.
Specifies which message box button that a user clicks. MessageBoxResult is returned by the Show method.
Specifies the modifiability value of a LocalizabilityAttribute for a binary XAML (BAML) class or class member.
Indicates whether the system power is online, or that the system power status is unknown.
Specifies the readability value of a LocalizabilityAttribute for a binary XAML (BAML) class or class member.
Specifies the reason for which the user’s session is ending. Used by the ReasonSessionEnding property.
Specifies whether a window can be resized and, if so, how it can be resized. Used by the ResizeMode property.
Specifies the locations where theme resource dictionaries are located.
Indicates the routing strategy of a routed event.
Specifies how an application will shutdown. Used by the ShutdownMode property.
Specifies how a window will automatically size itself to fit the size of its content. Used by the SizeToContent property.
Describes the different types of templates that use TemplateKey.
Specifies whether the text in the object is left-aligned, right-aligned, centered, or justified.
Specifies the data format of the text data.
Specifies the vertical position of a TextDecoration object.
Specifies the unit type of either a TextDecorationPenOffset or a Pen thickness value.
Describes the appearance of a list item’s bullet style.
Describes how text is trimmed when it overflows the edge of its containing box.
Specifies whether text wraps when it reaches the edge of the containing box.
Describes how a child element is vertically positioned or stretched within a parent’s layout slot.
Specifies the display state of an element.
Specifies the position that a Window will be shown in when it is first opened. Used by the WindowStartupLocation property.
Specifies whether a window is minimized, maximized, or restored. Used by the WindowState property.
Specifies the type of border that a Window has. Used by the WindowStyle property.
Specifies the allowable directions that content can wrap around an object.
Delegates
Represents the method that will handle the AutoResized event raised by HwndSource.
Provides a template for a method that is called whenever a dependency property value is being re-evaluated, or coercion is specifically requested.
Represents a method that will handle the Copying attached event.
Represents a method that will handle the Pasting attached event.
Represents a method that will handle the SettingData attached event.
Represents the method that will handle events raised when a DependencyProperty is changed on a particular DependencyObject implementation.
Represents a method that will handle DpiChangedEventArgs.
Represents a method that will handle drag-and-drop routed events, for example DragEnter.
Represents the method that handles the Exit event.
Represents a method that will handle the feedback routed event from in-process drag-and-drop operations, for instance GiveFeedback.
The delegate to use for handlers that receive DPI change notification.
Represents the callback that is invoked when the effective property value of a dependency property changes.
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.
Represents the method that will handle the RequestBringIntoView routed event.
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.
Represents methods that will handle various routed events that track property value changes.
Represents the method that handles the SessionEnding event.
Represents the method that will handle the SizeChanged routed event.
Represents the method that will handle the «SourceChanged» event on specific listener elements.
Represents the method that handles the Startup event.
Represents a method used as a callback that validates the effective value of a dependency property.