摘要:
A user interface is described that temporarily displays portions of a page that reside outside of the viewable area of the screen. An animated transition creates a brief preview of at least one user interface feature. Additionally, the user interface feature is then animated out of the viewable area in a way to suggest a location of the feature. In one embodiment, a target page that is being opened controls the transition and animates features into and out of the viewable area to create the temporary preview. In another embodiment, the target page includes user interface elements that can asynchronously control the preview animation independent from the main content of the target page. In yet another embodiment, a transition coordinator can coordinate the timing between animating out a foreground application while animating in a target application.
摘要:
An inheritance context is created for a graphics primitive object that is a property of a visual element. The inheritance context can be used to make some element information (e.g., information in resource dictionaries, name dictionaries, and inheritable properties that reside in the element tree containing the visual element) available to the graphics primitive object.
摘要:
A programming interface provides functions for generating applications, documents, media presentations and other content. These functions allow developers to obtain services from an operating system, object model service, or other system or service.
摘要:
Described is a mechanism for allowing new functionality for an object to be expressed as a property that is not built into the class from which the object derives. More specifically, the mechanism associates properties in one class with another class. A computer-readable medium, that includes an object having a property in a first set of properties, further includes a data structure. The data structure includes definitions for each of a second set of properties and includes at least one static method. The static method is associated with one property out of the second set of properties and includes a first parameter. The first parameter uniquely identifies the one property. The static method is operative to associate the one property with the object without specifying an explicit reference to the one property in the object. The property is registered during run-time in order to receive the unique identifier.
摘要:
A user interface control implementing a global keyboard navigation system by way of printable keyboard character input to extend an incremental type search across all window components within a defined scope. A recursive search is executed to match any number of printable characters input by a user to any component name of any window component among the parent and child generations existing in a given system within a defined scope. Repeat prefix searches for subsequent window component names are executed based on a user repeating the most recently input printable character that exists in an input buffer.
摘要:
The application programming interfaces described herein are directed at property management mechanisms that operate within an on-demand property system. The property management mechanisms support the caching of property values on an as needed basis, allow a plurality of object instances to utilize the same property via attached properties, overriding default information associated with a property on a per type basis, obtaining values for a property from an external source, and the like. In addition, the on-demand property system provides validation and control for each property instance. The property management mechanisms minimize the storage requirements and provide flexibility without requiring additional code from the developers.
摘要:
A method and system for mapping a tag in a markup language (ML) document to a class using namespaces is described. A parser in a computing system analyzes the tag in the ML document. A definition file location attribute related to the tag is referenced in the ML document. A definition file associated with definition file location attribute is retrieved. A namespace related to the tag is referenced within the definition file to determine the class associated with the tag. The class is located in an assembly such that the tag is mapped to the class.
摘要:
A hybrid tree data structure is suitable for use in scenarios involving intermingled text and user interface elements. Trees of two different types can be combined via one or more proxy nodes. For example, one type can be efficient at processing user interface elements and another can be efficient at processing text. Operations suitable for user interface elements can be efficiently performed on portions of the hybrid tree having user interface elements, and operations suitable for sequential data can be efficiently performed on portions of the hybrid tree having sequential data. The structure is thus suited for representing documents or graphical user interfaces. A hypertext document can be represented via the hybrid tree to enable more efficient searching, navigation, rendering, or editing of the document. Hybrid tree services can be provided by an operating system service.
摘要:
A method and system for dynamically processing instance data are provided. A namespace manager obtains declarative language instance data including tags, attributes and values for generating user interface objects. The instance data refers to one or more modules registered with a namespace manager in which the modules include meta-data defining one or more class definitions in a class hierarchy. Each class definition defines one or more properties of the class and references to a superclass/subclass(es) for the class. Thereafter, the namespace manager validates the instance data according to the class hierarchy and generates object code for instantiating an object hierarchy having classes, properties and values corresponding to the instance data.
摘要:
A tree view control is provided as a system resource that may be used by application programs. The tree view control enables an application program to display a hierarchical list of items. The hierarchical list of items may be expandable or collapsible so as to vary the view of the hierarchical tree that is visible to a user. The expansion and collapsing of the tree is performed by a mechanism that is independent of the selection mechanism that is used to select items in the hierarchical tree. An in-place editing mechanism is provided to facilitate the in place editing of labels of items in the hierarchical tree. As an optimization, the tree view control may provide for deferred evaluation of items such that the display information needed to display an item on an output device is not evaluated until needed.