摘要:
A method is described for managing property information related to a resource such as a computer file or directory. First, a property file is created for storing property information related to the resource. Next, the property file is directly associated with the resource such that if the resource is moved, copied, or deleted, the corresponding property file is also moved, copied, or deleted, thus protecting against disassociation. The property file is also directly associated with the resource without having to refer to a separate look-up or sequel database, thus saving computer time. Organizing the property file in this manner allows for searches to be performed on the property information as well as on the content of the resource.
摘要:
A data structure is provided for storing a digital document to be rendered on a printer or viewer. The data structure includes a plurality of objects that define the content and layout of the document. The objects include at least one graphics object representative of a portion of at least one of the pages, a page object for each page, a document root object, a job object, and an index object. A canvas object can be provided which includes a list of graphics objects to be rendered on the associated page and the coordinates on the page at which each graphics object is located. Each page object includes a reference to the at least one graphics object, or a canvas object, for that page, and each document root object includes a list of the page objects for the document. The job object includes a list of all the document root objects for the documents to be rendered by the data structure, and the index object identifies the location of each of the objects in the data structure.
摘要:
A method and system for maintaining the integrity of links in a computer network. The method and system is realized in a link tracking service including a local link tracking service, preferably running on all of the computers within the network, and a centralized link tracking server, preferably running on a network server. The local link tracking service manages the link tracking activities for the machine on which it resides. These activities include searching for link sources and tracking link source moves. The centralized link tracking service is provided to cooperate with the local link tracking services and, more particularly, for recording link source file movements as reported to it by the local link tracking services. The recorded information is available to be used by the local link tracking services should the local link tracking services need assistance in finding a link source that has been moved.
摘要:
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.
摘要:
Smooth transitions between rich media (e.g., animations of visual elements of a UI) are provided when a “second” animation is started on a property of a visual element for which a “first” animation is already running. When the second animation is started, an animation system causes a current value of the property that resulted from the running of the “first” animation (i.e., snapshot) to be stored, terminates or releases the first animation, and then causes the second animation to run using the snapshot as the “from” value of the property. Because the second animation “begins” at exactly the point at which the first animation ended, the transition between the first and second animation is smooth. An animation storage object can be created for a property for which an animation has been triggered to store base values and snapshots of the property while being animated.
摘要:
Described is a method and system in which storyboard objects coordinate the animation of multiple elements and/or media displayed on a computer graphics display. Storyboards relate properties of elements in an element tree to a timeline, such that the properties associated with a storyboard are animated/play together as a group by starting, stopping, seeking or pausing the storyboard. Triggers, such as controlled by user interaction with the displayed information, including property triggers that change values in response to a state change, and event triggers that fire events, may cause the storyboard to start, stop, pause and seek. Storyboards may be used in XAML-based programs, and may be directly associated with elements, or indirectly associated with elements via styles. Complex properties and changeables are supported. Media playback may be controlled via storyboards, and thereby coordinated with other media playback and/or animations.
摘要:
Determining compatibility of data structures. A method may be practiced in a computing environment. The method includes accessing a first type defined in a mark-up object. The first type includes a first structure including a first plurality of fields. A second type defined in a mark-up object is accessed. The second type includes a second structure including a second plurality of fields. The first structure and the second structure are compared. Based on the comparison, a determination is made that the first type is compatible with the second type.
摘要:
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.