# HG changeset patch # User Steven Hollidge # Date 1334681872 -3600 # Node ID 502f5f365649101b2cc4622a873c6737aad5b3f8 # Parent d617b54e1f47343af57f241d17b934833a35eb02 Initial load for Silverlight Example Application diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/Divelements.SandRibbon.XML --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/Libs/Divelements.SandRibbon.XML Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,3581 @@ + + + + Divelements.SandRibbon + + + + + Draws the title of a window, consisting of a window title and application title. + + + + + Identifies the ApplicationName dependency property. + + + + + Identifies the Title dependency property. + + + + + Identifies the IsActive dependency property. + + + + + Initializes a new instance of the WindowTitle class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Indicates whether the title is displayed active. + + + + + The title of the window. + + + + + The name of the application. + + + + + Provides facilities for keyboard access to ribbon controls. + + + + + Identifies the Keys attached property. + + + + + Sets the value of the Keys attached property for a given element. + + The element to set the property on. + The new value of the property. + + + + Obtains the value of the Keys attached property for a given element. + + The element to obtain the property value for. + The value of the property. + + + + Occurs when keyboard access is about to start. + + + + + Obtains the keyboard access manager currently in use. + + + + + A visual separator for use in a ribbon group or menu. + + + + + Initializes a new instance of the Separator class. + + + + + Provides facilities for licensing Silverlight controls. + + + + + Activates the product with a customer-specific license key. + + The license key to use. + + + + Indicates whether the product has been activated. + + + + + Provides a ribbon view over tabs containing child controls. + + + + + Provides a level of type safety and hooks for an ItemsControl derivative. + + The primary type of item to host. + + + + Initializes a new instance of the TypedItemsControl class. + + + + + Inserts an element of a type different from the standard hosted type. + + The element to insert. + + + + Removes and element of a type different from the standard hosted type. + + The element to remove. + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Performs the actions required to insert an item into the control. + + The index at which the item should be inserted. + The item to insert. + + + + Performs the actions required to remove an item from the control. + + The index of the item being removed. + The item to remove. + + + + A collection of children belonging to the control. + + + + + Provides collection facilities for a strongly-typed items control. + + The type of item to store in the collection. + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + A contract for elements capable of displaying a ribbon popup to implement. + + + + + The popup associated with the element. + + + + + Indicates whether the mouse is over the element. + + + + + A contract for elements wishing to control placement of their popups to implement. + + + + + Calculates the placement rectangle of a popup. + + The popup being opened. + An element that represents the whole screen, used for transformation purposes. + The desired size of the popup. + A rectangle representing the final layout of the popup. + + + + Identifies the IsMinimized dependency property. + + + + + Identifies the SelectedTab dependency property. + + + + + Identifies the ControlAreaHeight dependency property. + + + + + Identifies the TabDividerBrush dependency property. + + + + + Identifies the ApplicationName dependency property. + + + + + Identifies the Title dependency property. + + + + + Identifies the MinimizedPopupTemplate dependency property. + + + + + Identifies the ApplicationPopup dependency property. + + + + + Identifies the ApplicationButtonImage dependency property. + + + + + Identifies the ToolBar dependency property. + + + + + Identifies the ToolBarPosition dependency property. + + + + + Identifies the ApplicationButtonColor dependency property. + + + + + Identifies the ApplicationButtonText dependency property. + + + + + Initializes a new instance of the Ribbon class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Raises the LivePreview event. + + The arguments associated with the event. + + + + Raises the HelpRequested event. + + The arguments associated with the event. + + + + Overridden. See the documentation on the base class for help on this member. + + + + + Overridden. See the documentation on the base class for help on this member. + + + + + Shows the specified tab. + + The tab to show. + Whether to set focus to the tab, when showing under a minimized ribbon. + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Raises the SelectedTabChanged event. + + The arguments associated with the tab. + + + + Toggles the ribbon minimized state. + + + + + Activates the product with a customer-specific license key. + + The license key to use. + + + + Occurs when the user activates the help button. + + + + + Occurs when live preview for a control should be activated. + + + + + Occurs when the selected tab has changed; + + + + + The editing contexts present in the ribbon. + + + + + Gets or sets the toolbar associated with the ribbon. + + + + + Indicates where the toolbar is positioned relative to the ribbon. + + + + + Gets or sets the color of the application button. + + + + + Gets or sets the text in the application button. + + + + + The image to show in the application button. + + + + + The popup to show beneath the application button. + + + + + Determines whether the help button is visible. + + + + + The template to use for displaying tabs while in the minimized state. + + + + + The name of the application. + + + + + The title of the window. + + + + + The brush with which to draw dividers between tabs. + + + + + Indicates the height of the control display area. + + + + + The tab that is currently being displayed in the control. + + + + + Indicates whether the ribbon is minimized. + + + + + The tabs belonging to the ribbon. + + + + + The application button hosted on the ribbon. + + + + + A special kind of button designed to represent the application as a whole. + + + + + Provides a clickable means to activate commands. + + + + + Provides base functionality for other ribbon controls. + + + + + Identifies the Command dependency property. + + + + + Identifies the CommandParameter dependency property. + + + + + Initializes a new instance of the RibbonControl class. + + + + + Raises the Activate event. + + The arguments associated with the event. + + + + Occurs when the button is activated with the mouse or the keyboard. + + + + + Gets or sets the parameter to pass to the Command property. + + + + + The command associated with the control. + + + + + A contract implemented by controls whose size can change dynamically. + + + + + Sets the variant active within the control. + + The size variant to use. + + + + Identifies the IsChecked dependency property. + + + + + Identifies the LargeImage dependency property. + + + + + Identifies the SmallImage dependency property. + + + + + Identifies the Size dependency property. + + + + + Identifies the CollapseToMedium dependency property. + + + + + Identifies the CollapseToSmall dependency property. + + + + + Identifies the Text dependency property. + + + + + Identifies the DisplayText dependency property. + + + + + Identifies the DisplayText2 dependency property. + + + + + Identifies the IsSplit dependency property. + + + + + Initializes a new instance of the class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Raises the Activate event. + + The arguments associated with the event. + + + + Launches the popup associated with the button. + + The focus action to apply when the popup is launched. + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Triggers live preview for the control. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Indicates whether the button is divided into two split, clickable portions. + + + + + The popup associated with the button. + + + + + Specifies whether the button is automatically checked when activated. + + + + + The text to display in the button. + + + + + The text actually showing in the button. + + + + + The text actually showing in the button. + + + + + The size the button will adopt unless size constraints are in place. + + + + + Indicates the group variant threshold at which the button will collapse to its medium size. + + + + + Indicates the group variant threshold at which the button will collapse to its small size. + + + + + The image to use when a large image is required. + + + + + Determines whether a dropdown indicator is shown when there is a popup associated with the button. + + + + + Determines whether the button adopts a fixed size for its image. + + + + + The image to use when a small image is required. + + + + + Indicates whether the button is checked. + + + + + Indicates whether the mouse is hovering over the element. + + + + + Initializes a new instance of the ApplicationButton class. + + + + + Provides a container for menu items. + + + + + Identifies the SeparatorStyle dependency property. + + + + + Initializes a new instance of the Menu class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + The style to apply to separators. + + + + + An item designed to be hosted in a . + + + + + Identifies the Image dependency property. + + + + + Initializes a new instance of the class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + The image associated with the group. + + + + + Arguments for an event dealing with a color. + + + + + The color associated with the event. + + + + + Arguments for an event dealing with a popup about to open. + + + + + Whether the action should be cancelled. + + + + + The popup associated with the event. + + + + + The element on which the popup is opening. + + + + + Arguments describing the means in which an item is being activated. + + + + + The method by which the item is being activated. + + + + + Provides highlighting functionality for a file button. + + + + + Identifies the Color dependency property. + + + + + Identifies the DarkColor dependency property. + + + + + Identifies the LightColor dependency property. + + + + + Initializes a new instance of the FileButtonChrome class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + The color with which to draw the button. + + + + + The color with which to draw dark parts of the button. + + + + + The color with which to draw light parts of the button. + + + + + Provides switchable highlight facilities for other controls. + + + + + Identifies the CornerRadius dependency property. + + + + + Identifies the InnerCornerRadius dependency property. + + + + + Identifies the HotBackgroundBrush dependency property. + + + + + Identifies the HotOuterBorderBrush dependency property. + + + + + Identifies the HotInnerBorderBrush dependency property. + + + + + Identifies the PushedBackgroundBrush dependency property. + + + + + Identifies the PushedOuterBorderBrush dependency property. + + + + + Identifies the PushedInnerBorderBrush dependency property. + + + + + Identifies the CheckedBackgroundBrush dependency property. + + + + + Identifies the CheckedOuterBorderBrush dependency property. + + + + + Identifies the CheckedInnerBorderBrush dependency property. + + + + + Identifies the EffectiveBackgroundBrush dependency property. + + + + + Identifies the EffectiveOuterBorderBrush dependency property. + + + + + Identifies the EffectiveInnerBorderBrush dependency property. + + + + + Identifies the InteractionState dependency property. + + + + + Initializes a new instance of the Highlighter class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + The interaction state of the highlight. + + + + + The brush used to draw the background when hot. + + + + + The brush used to draw the outer border when hot. + + + + + The brush used to draw the inner border when hot. + + + + + The brush used to draw the background when Pushed. + + + + + The brush used to draw the outer border when Pushed. + + + + + The brush used to draw the inner border when Pushed. + + + + + The brush used to draw the background when Checked. + + + + + The brush used to draw the outer border when Checked. + + + + + The brush used to draw the inner border when Checked. + + + + + The brush used to draw the background when Effective. + + + + + The brush used to draw the outer border when Effective. + + + + + The brush used to draw the inner border when Effective. + + + + + The radius of the corners drawn on the background. + + + + + The radius of the inner corners drawn on the background. + + + + + Arguments representing an event concerning showing a live preview for a selection. + + + + + The control being previewed. + + + + + The parameter associated with the request for live preview. + + + + + An object representing the preview that can be cancelled in a timely fashion. + + + + + A contract for an object representing a live preview to implement. + + + + + Activates the preview. + + + + + Removes the preview by reversing the action applied previously in the ActivatePreview method. + + + + + Provides advanced tooltip functionality. + + + + + Identifies the Text attached dependency property. + + + + + Identifies the Description attached dependency property. + + + + + Identifies the Image attached dependency property. + + + + + Initializes a new instance of the class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Sets the value of the Text attached property for a given element. + + The element to set the property on. + The new value of the property. + + + + Obtains the value of the Text attached property for a given element. + + The element to obtain the property value for. + The value of the property. + + + + Sets the value of the Description attached property for a given element. + + The element to set the property on. + The new value of the property. + + + + Obtains the value of the Description attached property for a given element. + + The element to obtain the property value for. + The value of the property. + + + + Sets the value of the Image attached property for a given element. + + The element to set the property on. + The new value of the property. + + + + Obtains the value of the Image attached property for a given element. + + The element to obtain the property value for. + The value of the property. + + + + The text associated with the screen tip. + + + + + The description associated with the screen tip. + + + + + The image associated with the screen tip. + + + + + Provides the facility to lay out child items in a strip, with separators. + + + + + Identifies the Orientation dependency property. + + + + + Identifies the ItemSpacing dependency property. + + + + + Identifies the Stretch dependency property. + + + + + Initializes a new instance of the StripPanel class. + + + + + Indicates whether an item begins a new group. + + The item that might begin a new group. + The previous item. + A boolean value indicating whether a new group should be started. + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Obtains the value of the Stretch attached property for a given element. + + The element to obtain the property value for. + The value of the property. + + + + Sets the value of the Stretch attached property for a given element. + + The element to set the property on. + The new value of the property. + + + + The direction in which items are laid out. + + + + + The spacing to apply between items. + + + + + Provides layout facilities for a group of items that can be aligned horizontally or vertically if there is room. + + + Use this class together with controls that change their size so that they are laid out vertically when small and horizontally when large. + + + + + Initializes a new instance of the CollapsiblePanel class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Represents a clickable tab for display in a tabstrip. + + + + + Identifies the RibbonTab dependency property. + + + + + Identifies the Text dependency property. + + + + + Identifies the IsSelected dependency property. + + + + + Identifies the ContextualAppearance dependency property. + + + + + Initializes a new instance of the TabStripTab class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Indicates whether the tab should display in a selected state. + + + + + The text to display in the tab. + + + + + Indicates the RibbonTab instance to which this tab is bound. + + + + + How the tab colours itself when contextual. + + + + + Specifies a theme style to apply. + + + + + The whole tab is coloured with the editing context colour. + + + + + Only the border of the tab is coloured with the editing context colour. + + + + + Lays out child controls in a strip with dividers in between. + + + + + Identifies the DividerDarkBrush dependency property. + + + + + Identifies the DividerLightBrush dependency property. + + + + + Identifies the DividerSize dependency property. + + + + + Initializes a new instance of the DividerPanel class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Adds an element to the panel. + + The index at which to add the element. + The element to add. + + + + Removes an element from the panel. + + The element to remove. + + + + The size of the dividers shown. + + + + + The brush with which to draw the dark side of dividers. + + + + + The brush with which to draw the light side of dividers. + + + + + A popup designed to be hosted by the application button. + + + + + Provides popup facilities. + + + + + Identifies the SeparatorStyle dependency property. + + + + + Identifies the ShouldDismissPopup dependency property. + + + + + Identifies the ResizeMode dependency property. + + + + + Initializes a new instance of the RibbonPopup class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Raises the BeforeOpen event. + + The arguments associated with the event. + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Raise the Opened event. + + The arguments associated with the event. + + + + Raises the Closed event. + + The arguments associated with the event. + + + + Determines whether the popup can be shown. + + A boolean value indicating whether the popup can be shown. + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Collapses any and all open popups. + + + + + Sets the value of the ShouldDismissPopup property for the specified element. + + The element for which to set the property value. + The new value of the property. + + + + Obtains the value of the ShouldDismissPopup property for the specified element. + + The element for which to obtain the property value. + The value of the property. + + + + Occurs when the popup is opened. + + + + + Occurs when the popup is closed. + + + + + Occurs when the popup is about to be opened. + + + + + Indicates how a gallery within the popup can be resized. + + + + + The style to apply to separators. + + + + + Indicates whether the popup is open. + + + + + The element that launched the popup. + + + + + Identifies the Content dependency property. + + + + + Initializes a new instance of the ApplicationPopup class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + The content to display within the popup. + + + + + Provides layout and management facilities for toolbars. + + + + + Identifies the Line attached dependency property. + + + + + Identifies the Offset attached dependency property. + + + + + Initializes a new instance of the ToolBarTray class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Sets the value of the Line attached property for a given element. + + The element to set the property on. + The new value of the property. + + + + Obtains the value of the Line attached property for a given element. + + The element to obtain the property value for. + The value of the property. + + + + Sets the value of the Offset attached property for a given element. + + The element to set the property on. + The new value of the property. + + + + Obtains the value of the Line attached property for a given element. + + The element to obtain the property value for. + The value of the property. + + + + Specifies how an editing context is activated. + + + + + The tabs belonging to the editing context are shown. + + + + + The tabs belonging to the editing context are shown and the first tab is selected. + + + + + Specifies how a gallery can be resized. + + + + + The gallery cannot be resized. + + + + + The gallery can be resized vertically. + + + + + The gallery can be resized horizontally and vertically. + + + + + Specifies where a toolbar is positioned. + + + + + The toolbar is positioned above the ribbon. + + + + + The toolbar is positioned below the ribbon. + + + + + Specifies a size-based variant of a ribbon group. + + + + + The group is displayed in its large state. + + + + + The group is displayed in its medium state. + + + + + The group is displayed in its small state. + + + + + The group is displayed collapsed. + + + + + Specifies a standard size for a ribbon button. + + + + + Only the icon for the button is shown, small. + + + + + The icon for the button is shown small, with its text alongside. + + + + + The icon for the button is shown large, with its text underneath. + + + + + Specifies the threshold for when a control will collapse to a given size. + + + + + The control will never collapse. + + + + + The control will collapse when the group variant is medium or small. + + + + + The control will collapse when the group variant is small. + + + + + Specifies a means of activating a control. + + + + + The control was activated with the mouse. + + + + + The control was activated with the keyboard. + + + + + Specifies how an item can be automatically checked. + + + + + The item is not automatically checked. + + + + + The checked state of the item is automatically toggled. + + + + + The item is automatically checked and others in the same parent are unchecked. + + + + + Specifies the focus behavior when a popup is launched. + + + + + The popup itself is focused. + + + + + The first item in the popup is focused. + + + + + A gallery designed for hosting directly within a ribbon group. + + + + + Provides a scrollable viewport on to a list of gallery buttons. + + + + + Identifies the ViewportWidth dependency property. + + + + + Identifies the ViewportHeight dependency property. + + + + + Identifies the ItemWidth dependency property. + + + + + Identifies the ItemHeight dependency property. + + + + + Identifies the MinimumViewportWidth dependency property. + + + + + Identifies the MinimumViewportHeight dependency property. + + + + + Identifies the MaximumViewportWidth dependency property. + + + + + Identifies the MaximumViewportHeight dependency property. + + + + + Initializes a new instance of the Gallery class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Indicates the minimum acceptable width to which the user can resize the viewport. + + + + + Indicates the minimum acceptable height to which the user can resize the viewport. + + + + + Indicates the maximum acceptable width to which the user can resize the viewport. + + + + + Indicates the maximum acceptable height to which the user can resize the viewport. + + + + + Indicates the consistent width of each item. + + + + + Indicates the consistent height of each item. + + + + + Indicates the width of the scrollable viewport within the gallery. + + + + + Indicates the height of the scrollable viewport within the gallery. + + + + + Identifies the Condense dependency property. + + + + + Identifies the IsCondensed dependency property. + + + + + Identifies the Image dependency property. + + + + + Identifies the Text dependency property. + + + + + Identifies the PopupViewportWidth dependency property. + + + + + Identifies the PopupViewportHeight dependency property. + + + + + Identifies the PopupItems dependency property. + + + + + Identifies the ResizeMode dependency property. + + + + + Initializes a new instance of the RibbonGallery class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Indicates how a gallery within the popup can be resized. + + + + + The items to display in the popup portion of the control. + + + + + The text associated with the gallery. + + + + + The image associated with the group. + + + + + Indicates whether the panel is condensed. + + + + + Indicates the threshold at which the panel becomes condensed. + + + + + The width of the popup gallery viewport. + + + + + The height of the popup gallery viewport. + + + + + Represents a group of buttons with similar functionality. + + + + + Identifies the RemoveButtonBorders dependency property. + + + + + Identifies the ButtonPadding dependency property. + + + + + Initializes a new instance of the ButtonGroup class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + The amount of padding to apply to child buttons. + + + + + The buttons belonging to the group. + + + + + Indicates whether borders on button controls are removed. + + + + + Provides layout facilities for toolbars within a . + + + + + Initializes a new instance of the class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Provides the facility to relocate any items which do not fit into the primary container into another panel. + + + + + Identifies the IsRelocated dependency property. + + + + + Initializes a new instance of the class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Sets the value of the IsRelocated attached property for a given element. + + The element to set the property on. + The new value of the property. + + + + Obtains the value of the IsRelocated attached property for a given element. + + The element to obtain the property value for. + The value of the property. + + + + Represents a control that can be dragged by the user. + + + + + Identifies the dependency property. + + + The identifier for the dependency property. + + + + + Initializes a new instance of the class. + + + + + Cancels a drag operation for the . + + + + + Builds the visual tree for the control when a new template is applied. + + + + + Raises the BeforeDrag event. + + The arguments associated with the event. + + + + Raises the DoubleClick event. + + The arguments associated with the event. + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Occurs when the control loses mouse capture. + + + + + Occurs one or more times as the mouse pointer is moved when a control has logical focus and mouse capture. + + + + + Occurs when a control receives logical focus and mouse capture. + + + + + Gets whether the control has focus and mouse capture. + + true if the control has focus and mouse capture; otherwise false. The default is false. + + + + + Represents a size variant of a ribbon group. + + + + + Initializes a new instance of the GroupVariant class. + + + + + Initializes a new instance of the GroupVariant class. + + The initial value of the Group property. + The initial value of the Variant property. + The initial value of the Priority property. + + + + The priority with which to apply the variant. + + + + + The group to which the variant will be applied. + + + + + The variant which will be applied. + + + + + A collection of group variants. + + + + + Initializes a new instance of the GroupVariantCollection class. + + + + + Overridden. See the documentation on the base class for help on this member. + + + + + Overridden. See the documentation on the base class for help on this member. + + + + + Overridden. See the documentation on the base class for help on this member. + + + + + An enhanced combo box designed for hosting within a ribbon. + + + + + Initializes a new instance of the RibbonComboBox class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Provides quick access to a collection of buttons or other items. + + + + + Identifies the SeparatorStyle dependency property. + + + + + Initializes a new instance of the class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Indicates whether a chevron is displayed at the end of the toolbar. + + + + + Indicates whether a gripper is displayed when the toolbar is hosted in a tray, to allow the user to move it. + + + + + Indicates whether some of the items in the toolbar have been moved from the main display due to lack of space. + + + + + The style to apply to separators. + + + + + Provides window title alignment facilities. + + + + + Initializes a new instance of the class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Extends the standard toolbar with custom appearance and properties. + + + + + Initializes a new instance of the class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Provides a means of choosing from a range of colors. + + + + + Identifies the ShowGraduations dependency property. + + + + + Initializes a new instance of the class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Raises the ColorPicked event. + + The arguments associated with the event. + + + + Occurs when the user picks a color from the control. + + + + + The collection of basic colors being displayed by the control. + + + + + Indicates whether light and dark graduations of the colors are made available for selection. + + + + + A collection of colors. + + + + + Overridden. See the documentation on the base class for help on this member. + + + + + Overridden. See the documentation on the base class for help on this member. + + + + + Overridden. See the documentation on the base class for help on this member. + + + + + Provides an attractive display for the main content of an application. + + + + + Initializes a new instance of the ClientPanel class. + + + + + Provides layout facilities for division into two lines under normal conditions, or three lines when space is tight. + + + + + Identifies the CondensedChildOrder dependency property. + + + + + Identifies the Condense dependency property. + + + + + Identifies the IsCondensed dependency property. + + + + + Identifies the ItemSpacing dependency property. + + + + + Initializes a new instance of the VariableLinePanel class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + The spacing to apply between items. + + + + + The order in which children are laid out when the panel is condensed. + + + + + Indicates whether the panel is condensed. + + + + + Indicates the threshold at which the panel becomes condensed. + + + + + Provides a means to convert from a string representation of an Int32 array into the array. + + + + + Initializes a new instance of the Int32ArrayConverter class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Specifies the interaction state for highlighting. + + + + + The element is in a normal state. + + + + + The element is in a highlighted state. + + + + + The element is in a pushed state. + + + + + The element is in a checked state. + + + + + The element is in a disabled state. + + + + + Represents a context in which a document can be edited. + + + + + Identifies the Text dependency property. + + + + + Identifies the Color dependency property. + + + + + Identifies the IsAvailable dependency property. + + + + + Identifies the TitleBarBrush dependency property. + + + + + Identifies the ContrastColor dependency property. + + + + + Identifies the GlowColor dependency property. + + + + + Initializes a new instance of the EditingContext class. + + + + + Overridden. See the documentation on the base class for help on this member. + + + + + Raises the IsAvailableChanged event. + + The arguments associated with the event. + + + + Activates the editing context. + + The manner in which the editing context is activated. + + + + Deactivates the editing context. + + + + + Occurs when the value of the IsAvailable property changes. + + + + + Determines where the editing context header is displayed relative to other headers. + + + + + The brush used to draw the background of the editing context in the window titlebar. + + + + + Indicates whether the editing context is available. + + + + + A reference for the editing context. + + + + + The ribbon that the editing context belongs to. + + + + + The text used to represent the editing context. + + + + + The color used to represent the editing context. + + + + + A companion color to be used by visual templates. + + + + + A companion color to be used by visual templates. + + + + + A collection of editing contexts. + + + + + Overridden. See the documentation on the base class for help on this member. + + + + + Overridden. See the documentation on the base class for help on this member. + + + + + Overridden. See the documentation on the base class for help on this member. + + + + + Returns the editing context with the specified reference. + + The reference to look for. + + + + Provides an activatable representation of a command. + + + + + Identifies the IsChecked dependency property. + + + + + Identifies the Image dependency property. + + + + + Identifies the Text dependency property. + + + + + Initializes a new instance of the MenuItem class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Triggers live preview for the control. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Raises the Activate event. + + The arguments associated with the event. + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + The popup associated with the button. + + + + + Indicates whether the mouse is hovering over the element. + + + + + Indicates whether the menu item is checked. + + + + + The image associated with the menu item. + + + + + The text associated with the button. + + + + + Provides a graphical representation of a heading, suitable for display in popups. + + + + + Initializes a new instance of the class. + + + + + Provides dymanic layout facilities for ribbon groups. + + + + + Identifies the AutoCollapseGroups dependency property. + + + + + Initializes a new instance of the RibbonGroupPanel class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Indicates whether groups are automatically collapsed as space becomes tight. + + + + + A toolbar designed to be hosted inside a ribbon to give quick access to commonly-used commands. + + + + + Initializes a new instance of the class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Positions child elements in sequential position from left to right, + breaking content to the next line at the edge of the containing box. + Subsequent ordering happens sequentially from top to bottom or from + right to left, depending on the value of the Orientation property. + + Stable + + + + A value indicating whether a dependency property change handler + should ignore the next change notification. This is used to reset + the value of properties without performing any of the actions in + their change handlers. + + + + + Identifies the ItemHeight dependency property. + + + + + Identifies the ItemWidth dependency property. + + + + + Identifies the Orientation dependency property. + + + + + OrientationProperty property changed handler. + + WrapPanel that changed its Orientation. + Event arguments. + + + + Initializes a new instance of the WrapPanel class. + + + + + Property changed handler for ItemHeight and ItemWidth. + + + WrapPanel that changed its ItemHeight or ItemWidth. + + Event arguments. + + + + Measures the child elements of a WrapPanel in anticipation of + arranging them during the ArrangeOverride pass. + + + An upper limit Size that should not be exceeded. + + + Desired size of the WrapPanel and its child elements. + + + + + Arranges the content of a WrapPanel element. + + + The Size that this element should use to arrange its child elements. + + + The arranged size of this WrapPanel element and its children. + + + + + Arrange a sequence of elements in a single line. + + + Index of the first element in the sequence to arrange. + + + Index of the last element in the sequence to arrange. + + + Optional fixed growth in the primary direction. + + + Offset of the line in the indirect direction. + + + Shared indirect growth of the elements on this line. + + + + + Gets or sets the Double that represents the uniform height of all + items that are contained within the WrapPanel. + + + The default value is NaN. + + + + + Gets or sets a Double that represents the uniform width of all items + that are contained within the WrapPanel. + + + The default value is NaN. + + + + + Gets or sets a value that specifies the dimension in which + child content is arranged. + + + The default value is Horizontal. + + + + + The orientation of the structure. + + + + + The size dimension that grows directly with layout placement. + + + + + The size dimension that grows indirectly with the maximum value of + the layout row or column. + + + + + Initializes a new OrientedSize structure. + + Orientation of the structure. + + + + Initializes a new OrientedSize structure. + + Orientation of the structure. + Un-oriented width of the structure. + Un-oriented height of the structure. + + + + Gets the orientation of the structure. + + + + + Gets or sets the size dimension that grows directly with layout + placement. + + + + + Gets or sets the size dimension that grows indirectly with the + maximum value of the layout row or column. + + + + + Gets or sets the width of the size. + + + + + Gets or sets the height of the size. + + + + + Numeric utility methods used by controls. These methods are similar in + scope to the WPF DoubleUtil class. + + + + + Check if a number is zero. + + The number to check. + True if the number is zero, false otherwise. + + + + Check if a number isn't really a number. + + The number to check. + + True if the number is not a number, false if it is a number. + + + + + Determine if one number is greater than another. + + First number. + Second number. + + True if the first number is greater than the second, false + otherwise. + + + + + Determine if one number is less than or close to another. + + First number. + Second number. + + True if the first number is less than or close to the second, false + otherwise. + + + + + Determine if two numbers are close in value. + + First number. + Second number. + + True if the first number is close in value to the second, false + otherwise. + + + + + NanUnion is a C++ style type union used for efficiently converting + a double into an unsigned long, whose bits can be easily + manipulated. + + + + + Floating point representation of the union. + + + + + Integer representation of the union. + + + + + Provides layout and decoration facilities for tabs. + + + + + Identifies the DividerBrush dependency property. + + + + + Initializes a new instance of the class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + The brush used to paint dividers. + + + + + Provides a visual drop shadow behind the content displayed in the control. + + + + + Identifies the ShadowColor dependency property. + + + + + Identifies the ShadowSize dependency property. + + + + + Initializes a new instance of the class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + The color of the shadow. + + + + + The size of the shadow. + + + + + A button for display in a gallery. + + + + + Initializes a new instance of the GalleryButton class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Represents a group of ribbon controls with similar functionality. + + + + + Identifies the ActiveVariant dependency property. + + + + + Identifies the Header dependency property. + + + + + Identifies the Image dependency property. + + + + + Identifies the ShowDialogLauncher dependency property. + + + + + Identifies the SeparatorStyle dependency property. + + + + + Initializes a new instance of the RibbonGroup class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Raises the LaunchDialog event. + + The arguments associated with the event. + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Occurs when the user activates the dialog launcher button. + + + + + Indicates whether the dialog launcher button is shown. + + + + + The image associated with the group. + + + + + The header text to display for the group. + + + + + The active size variant of the group. + + + + + The collection of size variants that can be applied to the group. + + + + + The style to apply to separators. + + + + + Provides the user interface for displaying items within a ribbon group. + + + + + Identifies the ShowDialogLauncher dependency property. + + + + + Identifies the Header dependency property. + + + + + Initializes a new instance of the class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Raises the LaunchDialog event. + + The arguments associated with the event. + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Occurs when the user activates the dialog launcher button. + + + + + Indicates whether the control displays a collapsed appearance. + + + + + Indicates whether the control displays a pushed appearance. + + + + + Indicates whether the dialog launcher button is shown. + + + + + The header text to display for the group. + + + + + Represents a section of the ribbon containing controls with a similar purpose. + + + + + Identifies the Text dependency property. + + + + + Identifies the IsContextual dependency property. + + + + + Identifies the EditingContext dependency property. + + + + + Identifies the IsSelected dependency property. + + + + + Identifies the ContextualAppearance dependency property. + + + + + Initializes a new instance of the RibbonTab class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + How the tab colours itself when contextual. + + + + + If specified, indicates the editing context that must be active for this tab to be shown. + + + + + Indicates whether the tab is selected. + + + + + The editing context to which the tab belongs. + + + + + Indicates whether the tab is part of a contextual group. + + + + + The text representing the tab. + + + + + An extended popup which allows association to framework elements. + + + + + Identifies the Popup attached property. + + + + + Initializes a new instance of the ContextPopup class. + + + + + Shows the popup over the specified element and justified around the specified rectangle. + + The element over which to show the popup. + The rectangle around which to justify the popup. + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Sets the value of the Popup property for the specified element. + + The element for which to set the property value. + The new value of the property. + + + + Obtains the value of the Popup property for the specified element. + + The element for which to obtain the property value. + The value of the property. + + + + Adjusts the brightness of a color. + + The color to start with. + The factor, from -255 to 255, to adjust the color by. + The new color. + + + + A structure representing the Hue, Saturation and Value of a color. + + + + + The hue of the color. + + + + + The saturation of the color. + + + + + The value of the color. + + + + + Initializes a new instance of the Hsv structure. + + The initial value of the Hue field. + The initial value of the Saturation field. + The initial value of the Value field. + + + + Provides page-by-page scrolling of child controls. + + + + + Identifies the ScrollViewerStyle dependency property. + + + + + Identifies the Orientation dependency property. + + + + + Initializes a new instance of the class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + The orientation of the scrolling. + + + + + The style to apply to the embedded ScrollViewer. + + + + + Provides a visually distinct area for application status to be displayed. + + + + + Identifies the SeparatorStyle dependency property. + + + + + Initializes a new instance of the class. + + + + + Overridden. Consult the documentation on the base class for help on this member. + + + + + The style to apply to separators. + + + + diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/Divelements.SandRibbon.dll Binary file SilverlightExampleApp/Libs/Divelements.SandRibbon.dll has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/GalaSoft.MvvmLight.Extras.SL4.dll Binary file SilverlightExampleApp/Libs/GalaSoft.MvvmLight.Extras.SL4.dll has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/GalaSoft.MvvmLight.Extras.SL4.pdb Binary file SilverlightExampleApp/Libs/GalaSoft.MvvmLight.Extras.SL4.pdb has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/GalaSoft.MvvmLight.Extras.SL4.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/Libs/GalaSoft.MvvmLight.Extras.SL4.xml Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,356 @@ + + + + GalaSoft.MvvmLight.Extras.SL4 + + + + + Implements a universal converter able to take a lambda expression (as the parameter) + and to run this expression dynamically at runtime to convert the value. + Usage: Store an instance of UniversalConverter into the application's resources + and use this instance in XAML, for example with: + {Binding MyProperty, + Converter={StaticResource UniversalConverter}, + ConverterParameter='b=>!b'} + + + + + Converts a value into another using an expression (lambda) passed as a string + and evaluated at runtime. + The process is optimized and already created expression cached for further use. + + The value to be converted. + This parameter + is not used. + The lambda expression to be evaluated at runtime, + expressed as a string. For example expressions such as 'b=>!b' or + 'myValue=>myValue?Visibility.Visible:Visibility.Collapsed' (or more + complex expressions) can be used. + This parameter is not used. + The result of the conversion. + + + + This method is not implemented. + + Unused parameter. + Unused parameter. + Unused parameter. + Unused parameter. + This method is not implemented. + + + + This can be + used to bind any event on any FrameworkElement to an . + Typically, this element is used in XAML to connect the attached element + to a command located in a ViewModel. This trigger can only be attached + to a FrameworkElement or a class deriving from FrameworkElement. + To access the EventArgs of the fired event, use a RelayCommand<EventArgs> + and leave the CommandParameter and CommandParameterValue empty! + + + + + Identifies the dependency property + + + + + Identifies the dependency property + + + + + Identifies the dependency property + + + + + Called when this trigger is attached to a FrameworkElement. + + + + + This method is here for compatibility + with the Silverlight 3 version. + + The command that must be executed when + this trigger is invoked. + + + + Provides a simple way to invoke this trigger programatically + without any EventArgs. + + + + + Executes the trigger. + To access the EventArgs of the fired event, use a RelayCommand<EventArgs> + and leave the CommandParameter and CommandParameterValue empty! + + The EventArgs of the fired event. + + + + Gets or sets the ICommand that this trigger is bound to. This + is a DependencyProperty. + + + + + Gets or sets an object that will be passed to the + attached to this trigger. This is a DependencyProperty. + + + + + Gets or sets an object that will be passed to the + attached to this trigger. This property is here for compatibility + with the Silverlight version. This is NOT a DependencyProperty. + For databinding, use the property. + + + + + Gets or sets a value indicating whether the attached element must be + disabled when the property's CanExecuteChanged + event fires. If this property is true, and the command's CanExecute + method returns false, the element will be disabled. If this property + is false, the element will not be disabled when the command's + CanExecute method changes. This is a DependencyProperty. + + + + + Gets or sets a value indicating whether the attached element must be + disabled when the property's CanExecuteChanged + event fires. If this property is true, and the command's CanExecute + method returns false, the element will be disabled. This property is here for + compatibility with the Silverlight version. This is NOT a DependencyProperty. + For databinding, use the property. + + + + + Specifies whether the EventArgs of the event that triggered this + action should be passed to the bound RelayCommand. If this is true, + the command should accept arguments of the corresponding + type (for example RelayCommand<MouseButtonEventArgs>). + + + + + Helper class for dispatcher operations on the UI thread. + + + + + Executes an action on the UI thread. If this method is called + from the UI thread, the action is executed immendiately. If the + method is called from another thread, the action will be enqueued + on the UI thread's dispatcher and executed asynchronously. + For additional operations on the UI thread, you can get a + reference to the UI thread's dispatcher thanks to the property + . + + The action that will be executed on the UI + thread. + + + + This method should be called once on the UI thread to ensure that + the property is initialized. + In a Silverlight application, call this method in the + Application_Startup event handler, after the MainPage is constructed. + In WPF, call this method on the static App() constructor. + + + + + Gets a reference to the UI thread's dispatcher, after the + method has been called on the UI thread. + + + + + When used with the SimpleIoc container, specifies which constructor + should be used to instantiate when GetInstance is called. + If there is only one constructor in the class, this attribute is + not needed. + + + + + A very simple IOC container with basic functionality needed to register and resolve + instances. If needed, this class can be replaced by another more elaborate + IOC container implementing the IServiceLocator interface. + The inspiration for this class is at https://gist.github.com/716137 but it has + been extended with additional features. + + + + + Checks whether at least one instance of a given class is already created in the container. + + The class that is queried. + True if at least on instance of the class is already created, false otherwise. + + + + Checks whether the instance with the given key is already created for a given class + in the container. + + The class that is queried. + The key that is queried. + True if the instance with the given key is already registered for the given class, + false otherwise. + + + + Registers a given type for a given interface. + + The interface for which instances will be resolved. + The type that must be used to create instances. + + + + Registers a given type. + + The type that must be used to create instances. + + + + Registers a given instance for a given type. + + The type that is being registered. + The factory method able to create the instance that + must be returned when the given type is resolved. + + + + Registers a given instance for a given type and a given key. + + The type that is being registered. + The factory method able to create the instance that + must be returned when the given type is resolved. + The key for which the given instance is registered. + + + + Resets the instance in its original states. This deletes all the + registrations. + + + + + Unregisters a class from the cache and removes all the previously + created instances. + + The class that must be removed. + + + + Removes the given instance from the cache. The class itself remains + registered and can be used to create other instances. + + The type of the instance to be removed. + The instance that must be removed. + + + + Removes the instance corresponding to the given key from the cache. The class itself remains + registered and can be used to create other instances. + + The type of the instance to be removed. + The key corresponding to the instance that must be removed. + + + + Gets the service object of the specified type. + + + A service object of type . + -or- + null if there is no service object of type . + + An object that specifies the type of service object to get. + + + + Provides a way to get all the instances of a given type available in the + cache. + + The class of which all instances + must be returned. + All the instances of the given type. + + + + Provides a way to get all the instances of a given type available in the + cache. + + The class of which all instances + must be returned. + All the instances of the given type. + + + + Provides a way to get an instance of a given type. If no instance had been instantiated + before, a new instance will be created. If an instance had already + been created, that same instance will be returned. + If the class has not been registered before, this method + returns null! + + The class of which an instance + must be returned. + An instance of the given type. + + + + Provides a way to get an instance of a given type corresponding + to a given key. If no instance had been instantiated with this + key before, a new instance will be created. If an instance had already + been created with the same key, that same instance will be returned. + If the class has not been registered before, this method + returns null! + + The class of which an instance must be returned. + The key uniquely identifying this instance. + An instance corresponding to the given type and key. + + + + Provides a way to get an instance of a given type. If no instance had been instantiated + before, a new instance will be created. If an instance had already + been created, that same instance will be returned. + If the class has not been registered before, this method + returns null! + + The class of which an instance + must be returned. + An instance of the given type. + + + + Provides a way to get an instance of a given type corresponding + to a given key. If no instance had been instantiated with this + key before, a new instance will be created. If an instance had already + been created with the same key, that same instance will be returned. + If the class has not been registered before, this method + returns null! + + The class of which an instance must be returned. + The key uniquely identifying this instance. + An instance corresponding to the given type and key. + + + + This class' default instance. + + + + diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/GalaSoft.MvvmLight.SL4.dll Binary file SilverlightExampleApp/Libs/GalaSoft.MvvmLight.SL4.dll has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/GalaSoft.MvvmLight.SL4.pdb Binary file SilverlightExampleApp/Libs/GalaSoft.MvvmLight.SL4.pdb has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/GalaSoft.MvvmLight.SL4.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/Libs/GalaSoft.MvvmLight.SL4.xml Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,1237 @@ + + + + GalaSoft.MvvmLight.SL4 + + + + + The Messenger is a class allowing objects to exchange messages. + + + + + The Messenger is a class allowing objects to exchange messages. + + + + + Registers a recipient for a type of message TMessage. The action + parameter will be executed when a corresponding message is sent. + Registering a recipient does not create a hard reference to it, + so if this recipient is deleted, no memory leak is caused. + + The type of message that the recipient registers + for. + The recipient that will receive the messages. + The action that will be executed when a message + of type TMessage is sent. + + + + Registers a recipient for a type of message TMessage. + The action parameter will be executed when a corresponding + message is sent. See the receiveDerivedMessagesToo parameter + for details on how messages deriving from TMessage (or, if TMessage is an interface, + messages implementing TMessage) can be received too. + Registering a recipient does not create a hard reference to it, + so if this recipient is deleted, no memory leak is caused. + + The type of message that the recipient registers + for. + The recipient that will receive the messages. + A token for a messaging channel. If a recipient registers + using a token, and a sender sends a message using the same token, then this + message will be delivered to the recipient. Other recipients who did not + use a token when registering (or who used a different token) will not + get the message. Similarly, messages sent without any token, or with a different + token, will not be delivered to that recipient. + The action that will be executed when a message + of type TMessage is sent. + + + + Registers a recipient for a type of message TMessage. + The action parameter will be executed when a corresponding + message is sent. See the receiveDerivedMessagesToo parameter + for details on how messages deriving from TMessage (or, if TMessage is an interface, + messages implementing TMessage) can be received too. + Registering a recipient does not create a hard reference to it, + so if this recipient is deleted, no memory leak is caused. + + The type of message that the recipient registers + for. + The recipient that will receive the messages. + A token for a messaging channel. If a recipient registers + using a token, and a sender sends a message using the same token, then this + message will be delivered to the recipient. Other recipients who did not + use a token when registering (or who used a different token) will not + get the message. Similarly, messages sent without any token, or with a different + token, will not be delivered to that recipient. + If true, message types deriving from + TMessage will also be transmitted to the recipient. For example, if a SendOrderMessage + and an ExecuteOrderMessage derive from OrderMessage, registering for OrderMessage + and setting receiveDerivedMessagesToo to true will send SendOrderMessage + and ExecuteOrderMessage to the recipient that registered. + Also, if TMessage is an interface, message types implementing TMessage will also be + transmitted to the recipient. For example, if a SendOrderMessage + and an ExecuteOrderMessage implement IOrderMessage, registering for IOrderMessage + and setting receiveDerivedMessagesToo to true will send SendOrderMessage + and ExecuteOrderMessage to the recipient that registered. + + The action that will be executed when a message + of type TMessage is sent. + + + + Registers a recipient for a type of message TMessage. + The action parameter will be executed when a corresponding + message is sent. See the receiveDerivedMessagesToo parameter + for details on how messages deriving from TMessage (or, if TMessage is an interface, + messages implementing TMessage) can be received too. + Registering a recipient does not create a hard reference to it, + so if this recipient is deleted, no memory leak is caused. + + The type of message that the recipient registers + for. + The recipient that will receive the messages. + If true, message types deriving from + TMessage will also be transmitted to the recipient. For example, if a SendOrderMessage + and an ExecuteOrderMessage derive from OrderMessage, registering for OrderMessage + and setting receiveDerivedMessagesToo to true will send SendOrderMessage + and ExecuteOrderMessage to the recipient that registered. + Also, if TMessage is an interface, message types implementing TMessage will also be + transmitted to the recipient. For example, if a SendOrderMessage + and an ExecuteOrderMessage implement IOrderMessage, registering for IOrderMessage + and setting receiveDerivedMessagesToo to true will send SendOrderMessage + and ExecuteOrderMessage to the recipient that registered. + + The action that will be executed when a message + of type TMessage is sent. + + + + Sends a message to registered recipients. The message will + reach all recipients that registered for this message type + using one of the Register methods. + + The type of message that will be sent. + The message to send to registered recipients. + + + + Sends a message to registered recipients. The message will + reach only recipients that registered for this message type + using one of the Register methods, and that are + of the targetType. + + The type of message that will be sent. + The type of recipients that will receive + the message. The message won't be sent to recipients of another type. + The message to send to registered recipients. + + + + Sends a message to registered recipients. The message will + reach only recipients that registered for this message type + using one of the Register methods, and that are + of the targetType. + + The type of message that will be sent. + The message to send to registered recipients. + A token for a messaging channel. If a recipient registers + using a token, and a sender sends a message using the same token, then this + message will be delivered to the recipient. Other recipients who did not + use a token when registering (or who used a different token) will not + get the message. Similarly, messages sent without any token, or with a different + token, will not be delivered to that recipient. + + + + Unregisters a messager recipient completely. After this method + is executed, the recipient will not receive any messages anymore. + + The recipient that must be unregistered. + + + + Unregisters a message recipient for a given type of messages only. + After this method is executed, the recipient will not receive messages + of type TMessage anymore, but will still receive other message types (if it + registered for them previously). + + The type of messages that the recipient wants + to unregister from. + The recipient that must be unregistered. + + + + Unregisters a message recipient for a given type of messages only and for a given token. + After this method is executed, the recipient will not receive messages + of type TMessage anymore with the given token, but will still receive other message types + or messages with other tokens (if it registered for them previously). + + The recipient that must be unregistered. + The token for which the recipient must be unregistered. + The type of messages that the recipient wants + to unregister from. + + + + Unregisters a message recipient for a given type of messages and for + a given action. Other message types will still be transmitted to the + recipient (if it registered for them previously). Other actions that have + been registered for the message type TMessage and for the given recipient (if + available) will also remain available. + + The type of messages that the recipient wants + to unregister from. + The recipient that must be unregistered. + The action that must be unregistered for + the recipient and for the message type TMessage. + + + + Unregisters a message recipient for a given type of messages, for + a given action and a given token. Other message types will still be transmitted to the + recipient (if it registered for them previously). Other actions that have + been registered for the message type TMessage, for the given recipient and other tokens (if + available) will also remain available. + + The type of messages that the recipient wants + to unregister from. + The recipient that must be unregistered. + The token for which the recipient must be unregistered. + The action that must be unregistered for + the recipient and for the message type TMessage. + + + + Registers a recipient for a type of message TMessage. The action + parameter will be executed when a corresponding message is sent. + Registering a recipient does not create a hard reference to it, + so if this recipient is deleted, no memory leak is caused. + + The type of message that the recipient registers + for. + The recipient that will receive the messages. + The action that will be executed when a message + of type TMessage is sent. + + + + Registers a recipient for a type of message TMessage. + The action parameter will be executed when a corresponding + message is sent. See the receiveDerivedMessagesToo parameter + for details on how messages deriving from TMessage (or, if TMessage is an interface, + messages implementing TMessage) can be received too. + Registering a recipient does not create a hard reference to it, + so if this recipient is deleted, no memory leak is caused. + + The type of message that the recipient registers + for. + The recipient that will receive the messages. + If true, message types deriving from + TMessage will also be transmitted to the recipient. For example, if a SendOrderMessage + and an ExecuteOrderMessage derive from OrderMessage, registering for OrderMessage + and setting receiveDerivedMessagesToo to true will send SendOrderMessage + and ExecuteOrderMessage to the recipient that registered. + Also, if TMessage is an interface, message types implementing TMessage will also be + transmitted to the recipient. For example, if a SendOrderMessage + and an ExecuteOrderMessage implement IOrderMessage, registering for IOrderMessage + and setting receiveDerivedMessagesToo to true will send SendOrderMessage + and ExecuteOrderMessage to the recipient that registered. + + The action that will be executed when a message + of type TMessage is sent. + + + + Registers a recipient for a type of message TMessage. + The action parameter will be executed when a corresponding + message is sent. + Registering a recipient does not create a hard reference to it, + so if this recipient is deleted, no memory leak is caused. + + The type of message that the recipient registers + for. + The recipient that will receive the messages. + A token for a messaging channel. If a recipient registers + using a token, and a sender sends a message using the same token, then this + message will be delivered to the recipient. Other recipients who did not + use a token when registering (or who used a different token) will not + get the message. Similarly, messages sent without any token, or with a different + token, will not be delivered to that recipient. + The action that will be executed when a message + of type TMessage is sent. + + + + Registers a recipient for a type of message TMessage. + The action parameter will be executed when a corresponding + message is sent. See the receiveDerivedMessagesToo parameter + for details on how messages deriving from TMessage (or, if TMessage is an interface, + messages implementing TMessage) can be received too. + Registering a recipient does not create a hard reference to it, + so if this recipient is deleted, no memory leak is caused. + + The type of message that the recipient registers + for. + The recipient that will receive the messages. + A token for a messaging channel. If a recipient registers + using a token, and a sender sends a message using the same token, then this + message will be delivered to the recipient. Other recipients who did not + use a token when registering (or who used a different token) will not + get the message. Similarly, messages sent without any token, or with a different + token, will not be delivered to that recipient. + If true, message types deriving from + TMessage will also be transmitted to the recipient. For example, if a SendOrderMessage + and an ExecuteOrderMessage derive from OrderMessage, registering for OrderMessage + and setting receiveDerivedMessagesToo to true will send SendOrderMessage + and ExecuteOrderMessage to the recipient that registered. + Also, if TMessage is an interface, message types implementing TMessage will also be + transmitted to the recipient. For example, if a SendOrderMessage + and an ExecuteOrderMessage implement IOrderMessage, registering for IOrderMessage + and setting receiveDerivedMessagesToo to true will send SendOrderMessage + and ExecuteOrderMessage to the recipient that registered. + + The action that will be executed when a message + of type TMessage is sent. + + + + Sends a message to registered recipients. The message will + reach all recipients that registered for this message type + using one of the Register methods. + + The type of message that will be sent. + The message to send to registered recipients. + + + + Sends a message to registered recipients. The message will + reach only recipients that registered for this message type + using one of the Register methods, and that are + of the targetType. + + The type of message that will be sent. + The type of recipients that will receive + the message. The message won't be sent to recipients of another type. + The message to send to registered recipients. + + + + Sends a message to registered recipients. The message will + reach only recipients that registered for this message type + using one of the Register methods, and that are + of the targetType. + + The type of message that will be sent. + The message to send to registered recipients. + A token for a messaging channel. If a recipient registers + using a token, and a sender sends a message using the same token, then this + message will be delivered to the recipient. Other recipients who did not + use a token when registering (or who used a different token) will not + get the message. Similarly, messages sent without any token, or with a different + token, will not be delivered to that recipient. + + + + Unregisters a messager recipient completely. After this method + is executed, the recipient will not receive any messages anymore. + + The recipient that must be unregistered. + + + + Unregisters a message recipient for a given type of messages only. + After this method is executed, the recipient will not receive messages + of type TMessage anymore, but will still receive other message types (if it + registered for them previously). + + The recipient that must be unregistered. + The type of messages that the recipient wants + to unregister from. + + + + Unregisters a message recipient for a given type of messages only and for a given token. + After this method is executed, the recipient will not receive messages + of type TMessage anymore with the given token, but will still receive other message types + or messages with other tokens (if it registered for them previously). + + The recipient that must be unregistered. + The token for which the recipient must be unregistered. + The type of messages that the recipient wants + to unregister from. + + + + Unregisters a message recipient for a given type of messages and for + a given action. Other message types will still be transmitted to the + recipient (if it registered for them previously). Other actions that have + been registered for the message type TMessage and for the given recipient (if + available) will also remain available. + + The type of messages that the recipient wants + to unregister from. + The recipient that must be unregistered. + The action that must be unregistered for + the recipient and for the message type TMessage. + + + + Unregisters a message recipient for a given type of messages, for + a given action and a given token. Other message types will still be transmitted to the + recipient (if it registered for them previously). Other actions that have + been registered for the message type TMessage, for the given recipient and other tokens (if + available) will also remain available. + + The type of messages that the recipient wants + to unregister from. + The recipient that must be unregistered. + The token for which the recipient must be unregistered. + The action that must be unregistered for + the recipient and for the message type TMessage. + + + + Provides a way to override the Messenger.Default instance with + a custom instance, for example for unit testing purposes. + + The instance that will be used as Messenger.Default. + + + + Sets the Messenger's default (static) instance to null. + + + + + Gets the Messenger's default instance, allowing + to register and send messages in a static manner. + + + + + This interface is meant for the class and can be + useful if you store multiple WeakAction{T} instances but don't know in advance + what type T represents. + + + + + Executes an action. + + A parameter passed as an object, + to be casted to the appropriate type. + + + + A command whose sole purpose is to relay its functionality to other + objects by invoking delegates. The default return value for the CanExecute + method is 'true'. This class does not allow you to accept command parameters in the + Execute and CanExecute callback methods. + + + + + Initializes a new instance of the RelayCommand class that + can always execute. + + The execution logic. + If the execute argument is null. + + + + Initializes a new instance of the RelayCommand class. + + The execution logic. + The execution status logic. + If the execute argument is null. + + + + Raises the event. + + + + + Defines the method that determines whether the command can execute in its current state. + + This parameter will always be ignored. + true if this command can be executed; otherwise, false. + + + + Defines the method to be called when the command is invoked. + + This parameter will always be ignored. + + + + Occurs when changes occur that affect whether the command should execute. + + + + + Defines a common interface for classes that should be cleaned up, + but without the implications that IDisposable presupposes. An instance + implementing ICleanup can be cleaned up without being + disposed and garbage collected. + + + + + Cleans up the instance, for example by saving its state, + removing resources, etc... + + + + + Passes a string message (Notification) to a recipient. + Typically, notifications are defined as unique strings in a static class. To define + a unique string, you can use Guid.NewGuid().ToString() or any other unique + identifier. + + + + + Base class for all messages broadcasted by the Messenger. + You can create your own message types by extending this class. + + + + + Initializes a new instance of the MessageBase class. + + + + + Initializes a new instance of the MessageBase class. + + The message's original sender. + + + + Initializes a new instance of the MessageBase class. + + The message's original sender. + The message's intended target. This parameter can be used + to give an indication as to whom the message was intended for. Of course + this is only an indication, amd may be null. + + + + Gets or sets the message's sender. + + + + + Gets or sets the message's intended target. This property can be used + to give an indication as to whom the message was intended for. Of course + this is only an indication, amd may be null. + + + + + Initializes a new instance of the NotificationMessage class. + + A string containing any arbitrary message to be + passed to recipient(s) + + + + Initializes a new instance of the NotificationMessage class. + + The message's sender. + A string containing any arbitrary message to be + passed to recipient(s) + + + + Initializes a new instance of the NotificationMessage class. + + The message's sender. + The message's intended target. This parameter can be used + to give an indication as to whom the message was intended for. Of course + this is only an indication, amd may be null. + A string containing any arbitrary message to be + passed to recipient(s) + + + + Gets a string containing any arbitrary message to be + passed to recipient(s). + + + + + Basis class for the class. This + class allows a recipient to register for all PropertyChangedMessages without + having to specify the type T. + + + + + Initializes a new instance of the class. + + The message's sender. + The name of the property that changed. + + + + Initializes a new instance of the class. + + The message's sender. + The message's intended target. This parameter can be used + to give an indication as to whom the message was intended for. Of course + this is only an indication, amd may be null. + The name of the property that changed. + + + + Initializes a new instance of the class. + + The name of the property that changed. + + + + Gets or sets the name of the property that changed. + + + + + Provides a message class with a built-in callback. When the recipient + is done processing the message, it can execute the callback to + notify the sender that it is done. Use the + method to execute the callback. The callback method has one parameter. + and + . + + + + + Initializes a new instance of the class. + + An arbitrary string that will be + carried by the message. + The callback method that can be executed + by the recipient to notify the sender that the message has been + processed. + + + + Initializes a new instance of the class. + + The message's sender. + An arbitrary string that will be + carried by the message. + The callback method that can be executed + by the recipient to notify the sender that the message has been + processed. + + + + Initializes a new instance of the class. + + The message's sender. + The message's intended target. This parameter can be used + to give an indication as to whom the message was intended for. Of course + this is only an indication, amd may be null. + An arbitrary string that will be + carried by the message. + The callback method that can be executed + by the recipient to notify the sender that the message has been + processed. + + + + Executes the callback that was provided with the message with an + arbitrary number of parameters. + + A number of parameters that will + be passed to the callback method. + The object returned by the callback method. + + + + Provides a message class with a built-in callback. When the recipient + is done processing the message, it can execute the callback to + notify the sender that it is done. Use the + method to execute the callback. + + + + + Initializes a new instance of the + class. + + An arbitrary string that will be + carried by the message. + The callback method that can be executed + by the recipient to notify the sender that the message has been + processed. + + + + Initializes a new instance of the + class. + + The message's sender. + An arbitrary string that will be + carried by the message. + The callback method that can be executed + by the recipient to notify the sender that the message has been + processed. + + + + Initializes a new instance of the + class. + + The message's sender. + The message's intended target. This parameter can be used + to give an indication as to whom the message was intended for. Of course + this is only an indication, amd may be null. + An arbitrary string that will be + carried by the message. + The callback method that can be executed + by the recipient to notify the sender that the message has been + processed. + + + + Executes the callback that was provided with the message. + + + + + Passes a string message (Notification) and a generic value (Content) to a recipient. + + The type of the Content property. + + + + Passes a generic value (Content) to a recipient. + + The type of the Content property. + + + + Initializes a new instance of the GenericMessage class. + + The message content. + + + + Initializes a new instance of the GenericMessage class. + + The message's sender. + The message content. + + + + Initializes a new instance of the GenericMessage class. + + The message's sender. + The message's intended target. This parameter can be used + to give an indication as to whom the message was intended for. Of course + this is only an indication, amd may be null. + The message content. + + + + Gets or sets the message's content. + + + + + Initializes a new instance of the NotificationMessage class. + + A value to be passed to recipient(s). + A string containing any arbitrary message to be + passed to recipient(s) + + + + Initializes a new instance of the NotificationMessage class. + + The message's sender. + A value to be passed to recipient(s). + A string containing any arbitrary message to be + passed to recipient(s) + + + + Initializes a new instance of the NotificationMessage class. + + The message's sender. + The message's intended target. This parameter can be used + to give an indication as to whom the message was intended for. Of course + this is only an indication, amd may be null. + A value to be passed to recipient(s). + A string containing any arbitrary message to be + passed to recipient(s) + + + + Gets a string containing any arbitrary message to be + passed to recipient(s). + + + + + A base class for the ViewModel classes in the MVVM pattern. + + + + + A base class for the ViewModel classes in the MVVM pattern. + + + + + Verifies that a property name exists in this ViewModel. This method + can be called before the property is used, for instance before + calling RaisePropertyChanged. It avoids errors when a property name + is changed but some places are missed. + This method is only active in DEBUG mode. + + + + + + Raises the PropertyChanged event if needed. + + If the propertyName parameter + does not correspond to an existing property on the current class, an + exception is thrown in DEBUG configuration only. + The name of the property that + changed. + + + + Raises the PropertyChanged event if needed. + + The type of the property that + changed. + An expression identifying the property + that changed. + + + + When called in a property setter, raises the PropertyChanged event for + the current property. + + If this method is called outside + of a property setter. + + + + Occurs when a property value changes. + + + + + Provides access to the PropertyChanged event handler to derived classes. + + + + + Initializes a new instance of the ViewModelBase class. + + + + + Initializes a new instance of the ViewModelBase class. + + An instance of a + used to broadcast messages to other objects. If null, this class + will attempt to broadcast using the Messenger's default + instance. + + + + Unregisters this instance from the Messenger class. + To cleanup additional resources, override this method, clean + up and then call base.Cleanup(). + + + + + Broadcasts a PropertyChangedMessage using either the instance of + the Messenger that was passed to this class (if available) + or the Messenger's default instance. + + The type of the property that + changed. + The value of the property before it + changed. + The value of the property after it + changed. + The name of the property that + changed. + + + + Raises the PropertyChanged event if needed, and broadcasts a + PropertyChangedMessage using the Messenger instance (or the + static default instance if no Messenger instance is available). + + The type of the property that + changed. + The name of the property that + changed. + The property's value before the change + occurred. + The property's value after the change + occurred. + If true, a PropertyChangedMessage will + be broadcasted. If false, only the event will be raised. + If the propertyName parameter + does not correspond to an existing property on the current class, an + exception is thrown in DEBUG configuration only. + + + + Raises the PropertyChanged event if needed, and broadcasts a + PropertyChangedMessage using the Messenger instance (or the + static default instance if no Messenger instance is available). + + The type of the property that + changed. + An expression identifying the property + that changed. + The property's value before the change + occurred. + The property's value after the change + occurred. + If true, a PropertyChangedMessage will + be broadcasted. If false, only the event will be raised. + + + + Gets a value indicating whether the control is in design mode + (running under Blend or Visual Studio). + + + + + Gets a value indicating whether the control is in design mode + (running in Blend or Visual Studio). + + + + + Gets or sets an instance of a used to + broadcast messages to other objects. If null, this class will + attempt to broadcast using the Messenger's default instance. + + + + + Stores an without causing a hard reference + to be created to the Action's owner. The owner can be garbage collected at any time. + + + + + Initializes a new instance of the class. + + The action's owner. + The action that will be associated to this instance. + + + + Executes the action. This only happens if the action's owner + is still alive. + + + + + Sets the reference that this instance stores to null. + + + + + Gets the Action associated to this instance. + + + + + Gets a value indicating whether the Action's owner is still alive, or if it was collected + by the Garbage Collector already. + + + + + Gets the Action's owner. This object is stored as a . + + + + + Stores an Action without causing a hard reference + to be created to the Action's owner. The owner can be garbage collected at any time. + + The type of the Action's parameter. + + + + Initializes a new instance of the WeakAction class. + + The action's owner. + The action that will be associated to this instance. + + + + Executes the action. This only happens if the action's owner + is still alive. The action's parameter is set to default(T). + + + + + Executes the action. This only happens if the action's owner + is still alive. + + A parameter to be passed to the action. + + + + Executes the action with a parameter of type object. This parameter + will be casted to T. This method implements + and can be useful if you store multiple WeakAction{T} instances but don't know in advance + what type T represents. + + The parameter that will be passed to the action after + being casted to T. + + + + Gets the Action associated to this instance. + + + + + A generic command whose sole purpose is to relay its functionality to other + objects by invoking delegates. The default return value for the CanExecute + method is 'true'. This class allows you to accept command parameters in the + Execute and CanExecute callback methods. + + The type of the command parameter. + + + + Initializes a new instance of the RelayCommand class that + can always execute. + + The execution logic. + If the execute argument is null. + + + + Initializes a new instance of the RelayCommand class. + + The execution logic. + The execution status logic. + If the execute argument is null. + + + + Raises the event. + + + + + Defines the method that determines whether the command can execute in its current state. + + Data used by the command. If the command does not require data + to be passed, this object can be set to a null reference + true if this command can be executed; otherwise, false. + + + + Defines the method to be called when the command is invoked. + + Data used by the command. If the command does not require data + to be passed, this object can be set to a null reference + + + + Occurs when changes occur that affect whether the command should execute. + + + + + Passes a string property name (PropertyName) and a generic value + ( and ) to a recipient. + This message type can be used to propagate a PropertyChanged event to + a recipient using the messenging system. + + The type of the OldValue and NewValue property. + + + + Initializes a new instance of the class. + + The message's sender. + The property's value before the change occurred. + The property's value after the change occurred. + The name of the property that changed. + + + + Initializes a new instance of the class. + + The property's value before the change occurred. + The property's value after the change occurred. + The name of the property that changed. + + + + Initializes a new instance of the class. + + The message's sender. + The message's intended target. This parameter can be used + to give an indication as to whom the message was intended for. Of course + this is only an indication, amd may be null. + The property's value before the change occurred. + The property's value after the change occurred. + The name of the property that changed. + + + + Gets the value that the property has after the change. + + + + + Gets the value that the property had before the change. + + + + + Use this class to send a message requesting to display a message box with features + corresponding to this message's properties. The Callback property should be used + to notify the message's sender about the user's choice in the message box. + Typically, you can use this message typ's recipient will be an element of the View, + and the sender will possibly be a ViewModel. + + + + + Initializes a new instance of the DialogMessage class. + + The text displayed by the message box. + A callback method that should be executed to deliver the result + of the message box to the object that sent the message. + + + + Initializes a new instance of the DialogMessage class. + + The message's original sender. + The text displayed by the message box. + A callback method that should be executed to deliver the result + of the message box to the object that sent the message. + + + + Initializes a new instance of the DialogMessage class. + + The message's original sender. + The message's intended target. This parameter can be used + to give an indication as to whom the message was intended for. Of course + this is only an indication, amd may be null. + The text displayed by the message box. + A callback method that should be executed to deliver the result + of the message box to the object that sent the message. + + + + Utility method, checks if the property is + null, and if it is not null, executes it. + + The result that must be passed + to the dialog message caller. + + + + Gets or sets the buttons displayed by the message box. + + + + + Gets a callback method that should be executed to deliver the result + of the message box to the object that sent the message. + + + + + Gets or sets the caption for the message box. + + + + + Gets or sets which result is the default in the message box. + + + + + Provides a message class with a built-in callback. When the recipient + is done processing the message, it can execute the callback to + notify the sender that it is done. Use the + method to execute the callback. The callback method has one parameter. + . + + The type of the callback method's + only parameter. + + + + Initializes a new instance of the + class. + + An arbitrary string that will be + carried by the message. + The callback method that can be executed + by the recipient to notify the sender that the message has been + processed. + + + + Initializes a new instance of the + class. + + The message's sender. + An arbitrary string that will be + carried by the message. + The callback method that can be executed + by the recipient to notify the sender that the message has been + processed. + + + + Initializes a new instance of the + class. + + The message's sender. + The message's intended target. This parameter can be used + to give an indication as to whom the message was intended for. Of course + this is only an indication, amd may be null. + An arbitrary string that will be + carried by the message. + The callback method that can be executed + by the recipient to notify the sender that the message has been + processed. + + + + Executes the callback that was provided with the message. + + A parameter requested by the message's + sender and providing additional information on the recipient's + state. + + + diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/GalaSoft.SimpleSerializer.SL4.dll Binary file SilverlightExampleApp/Libs/GalaSoft.SimpleSerializer.SL4.dll has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/GalaSoft.SimpleSerializer.SL4.pdb Binary file SilverlightExampleApp/Libs/GalaSoft.SimpleSerializer.SL4.pdb has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/Microsoft.Expression.Drawing.dll Binary file SilverlightExampleApp/Libs/Microsoft.Expression.Drawing.dll has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/Microsoft.Expression.Drawing.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/Libs/Microsoft.Expression.Drawing.xml Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,1742 @@ + + + + Microsoft.Expression.Drawing + + + + + Renders a callout shape supporting several shapes combined with a callout arrow. + + + + + Provides a base class of a composite shape that derives from and implements . + + + implements interface, + and supports rendering a geometry similar to , but the geometry can be rendered outside the layout boundary. + + A typical implementation has a customized default template in generic.xaml which template-binds most shape properties to a . + It should also extend the property to customize the appearance of the . + + This class also supports showing content together with the shape. + + + + + Provides an interface to describe the parameters of a Shape. + + + This interface is the data for communication between Shape and GeometrySource. + Typically, a concrete implementation of IShape will implement this interface and pass it into + GeometrySource.UpdateGeometry(), which will then consume the shape as a read-only data provider. + + + + + Provides the necessary interface to define a Shape. + Both primitive and composite shapes need to match this interface, although they might derive from different types of FrameworkElement. + + + + + Invalidates the geometry for a . After the invalidation, the will recompute the geometry, which will occur asynchronously. + + + + Gets or sets the that specifies how to paint the interior of the shape. + A that describes how the shape's interior is painted. The default is null. + + + Gets or sets the that specifies how the outline is painted. + A that specifies how the outline is painted. + + + Gets or sets the width of the stroke outline. + The width of the outline, in pixels. + + + Gets or sets a enumeration value that describes how the shape fills its allocated space. + One of the enumeration values. The default value at runtime depends on the type of . + + + + Gets the rendered geometry presented by the rendering engine. + + + + + Gets the margin between logical bounds and actual geometry bounds. + This can be either positive (as in ) or negative (as in ). + + + + + Occurs when RenderedGeometry is changed. + + + + + Extends how the shape is drawn with creating geometry source. + + + + + Invalidates the geometry for a . After the invalidation, the will recompute the geometry, which will occur asynchronously. + + + + Provides the behavior for the Arrange portion of a Silverlight layout pass. Classes can override this method to define their own Arrange pass behavior. + The actual size used once the element is arranged in layout. + The final area within the parent that this object should use to arrange itself and its children. + will recompute the Geometry when it's invalidated and update the RenderedGeometry and GeometryMargin. + + + + Transforms a string content into with center alignment and multiple line support. + + + Use template-binding to instead of to enable this method. + + + + + Gets or sets the that specifies how to paint the interior of the shape. + + A that describes how the shape's interior is painted. + + + Gets or sets the that specifies how the outline is painted. + A that specifies how the outline is painted. + + + Gets or sets the width of the stroke outline. + The width of the outline, in pixels. + + + Gets or sets a enumeration value that describes how the shape fills its allocated space. + One of the enumeration values. + + + Gets or sets a enumeration value that describes the at the start of a . + A value of the enumeration that specifies the shape at the start of a . + + + Gets or sets a enumeration value that describes the at the end of a line. + One of the enumeration values for . + + + Gets or sets a enumeration value that specifies the type of join that is used at the vertices of a . + A value of the enumeration that specifies the join appearance. + + + Gets or sets a limit on the ratio of the miter length to half the of a element. + The limit on the ratio of the miter length to the of a element. This value is always a positive number that is greater than or equal to 1. + + + Gets or sets a collection of values that indicate the pattern of dashes and gaps that is used to outline shapes. + A collection of values that specify the pattern of dashes and gaps. + + + Gets or sets a enumeration value that specifies how the ends of a dash are drawn. + One of the enumeration values for . The default is . + + + Gets or sets a that specifies the distance within the dash pattern where a dash begins. + A that represents the distance within the dash pattern where a dash begins. The default value is 0. + + + + Gets the rendered geometry presented by the rendering engine. + + + + + Gets the margin between the logical bounds and the actual geometry bounds. + This can be either positive (as in ) or negative (as in ). + + + + + Gets or sets the internal content that converts a string into a center-aligned, multiple-line TextBlock. + + + + + Occurs when RenderedGeometry is changed. + + + + + Gets or sets the position of the callout relative to the top and left corner. + + + + + Gets or sets the callout style. + + + + + Provides a base class of a composite shape that derives from and implements . + + + implements interface, + and supports rendering a geometry similar to , but the geometry can be rendered outside the layout boundary. + + A typical implementation has a customized default template in generic.xaml which template-binds most shape properties to a . + It should also extend the property to customize the appearance of the . + + + + + Extends how the shape is drawn with creating geometry source. + + + + + Invalidates the geometry for a . After the invalidation, the will recompute the geometry, which will occur asynchronously. + + + + Provides the behavior for the Arrange portion of a Silverlight layout pass. Classes can override this method to define their own Arrange pass behavior. + The actual size used once the element is arranged in layout. + The final area within the parent that this object should use to arrange itself and its children. + will recompute the Geometry when it's invalidated and update the RenderedGeometry and GeometryMargin. + + + + Gets or sets the that specifies how to paint the interior of the shape. + + A that describes how the shape's interior is painted. + + + Gets or sets the that specifies how the outline is painted. + A that specifies how the outline is painted. + + + Gets or sets the width of the stroke outline. + The width of the outline, in pixels. + + + Gets or sets a enumeration value that describes how the shape fills its allocated space. + One of the enumeration values. + + + Gets or sets a enumeration value that describes the at the start of a . + A value of the enumeration that specifies the shape at the start of a . + + + Gets or sets a enumeration value that describes the at the end of a line. + One of the enumeration values for . + + + Gets or sets a enumeration value that specifies the type of join that is used at the vertices of a . + A value of the enumeration that specifies the join appearance. + + + Gets or sets a limit on the ratio of the miter length to half the of a element. + The limit on the ratio of the miter length to the of a element. This value is always a positive number that is greater than or equal to 1. + + + Gets or sets a collection of values that indicate the pattern of dashes and gaps that is used to outline shapes. + A collection of values that specify the pattern of dashes and gaps. + + + Gets or sets a enumeration value that specifies how the ends of a dash are drawn. + One of the enumeration values for . The default is . + + + Gets or sets a that specifies the distance within the dash pattern where a dash begins. + A that represents the distance within the dash pattern where a dash begins. The default value is 0. + + + + Gets the rendered geometry presented by the rendering engine. + + + + + Gets the margin between the logical bounds and the actual geometry bounds. + This can be either positive (as in ) or negative (as in ). + + + + + Occurs when RenderedGeometry is changed. + + + + + Renders a bent line segment with optional arrow heads on both ends. + + + + Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior. + The size that this object determines it requires during layout, based on its calculations of child object allotted sizes, or possibly on other considerations such as fixed container size. + The available size that this object can give to child objects. Infinity () can be specified as a value to indicate that the object will size to whatever content is available. + + A default can render at anysize. + The will stretch to the layout boundary and render to the outside if necessary. + + + + + Gets or sets the amount of bend for the arrow. + + The bend amount between 0 and 1. + + + + Gets or sets how the arrow head is rendered at the start of the line. + + + + + Gets or sets how the arrow head is rendered at the end of the line. + + + + + Gets or sets from which corner to start drawing the arrow. + + + + + Gets or sets the length of the arrow in pixels. + + + + + Helper class to work with PathGeometry. + + + + + Converts a string in the path mini-language into a PathGeometry. + + A string in the path mini-language. + + + + Converts the given geometry into a single PathGeometry. + + + + + Updates the given geometry as PathGeometry with a polyline matching a given point list. + + + + + Parses abbreviated geometry sytax. + + + + + Helper class to convert an ArcSegment to BezierSegment(s). + + + Helper class to work with PathSegment and all variations. + + + Strategy classes to handle different types of PathSegment. + + + + + Converts an arc segment into Bezier format. + Returns BezierSegment, PolyBezierSegment, LineSegment, or null. + When returning null, the arc degenerates into the start point. + + + + + Avoid calling the three-parameter constructor, since it always sets a local value for IsStroked. + + + + + + + Updates the SegmentCollection with a given polyline matching a given point list. + Tries to keep changes minimum and returns false if nothing has been changed. + + + + + Updates the collection[index] segment with a poly-Bezier segment matching a given point list. + A given point list must contain 3*N points for N Bezier segments. + + + + + Tests if a given path segment is empty. + + + + + Gets the point count in a given path segment. + + + + + Gets the last point of a given path segment. + + + + + Gets the point of a given index in a given segment. + If input is (-1), returns the last point. + + + + + Flattens a given segment and adds resulting points into a given point list. + + The segment to be flatten. + The resulting points list. + The start point of the segment. + The error tolerance. Must be positive. Can be zero. Fallback to default tolerance. + + + + ArcToBezier, computes the Bezier approximation of an arc. + + + This utility computes the Bezier approximation for an elliptical arc as + it is defined in the SVG arc spec. The ellipse from which the arc is + carved is axis-aligned in its own coordinates, and defined there by its + x and y radii. The rotation angle defines how the ellipse's axes are + rotated relative to the x axis. The start and end points define one of 4 + possible arcs; the sweep and large-arc flags determine which one of + these arcs will be chosen. + + Returning cPieces = 0 indicates a line instead of an arc + cPieces = -1 indicates that the arc degenerates to a point + + + + + Gets the number of Bezier arcs, and sine/cosine of each. + + + This is a private utility used by ArcToBezier. Breaks the arc into + pieces so that no piece will span more than 90 degrees. The input + points are on the unit circle. + + + + + GetBezierDistance returns the distance as a fraction of the radius. + + + Get the distance from a circular arc's end points to the control points + of the Bezier arc that approximates it, as a fraction of the arc's + radius. + + Since the result is relative to the arc's radius, it depends strictly on + the arc's angle. The arc is assumed to be of 90 degrees or less, so the + angle is determined by the cosine of that angle, which is derived from + rDot = the dot product of two radius vectors. We need the Bezier curve + that agrees with the arc's points and tangents at the ends and midpoint. + Here we compute the distance from the curve's endpoints to its control + points. + + Since we are looking for the relative distance, we can work on the unit + circle. Place the center of the circle at the origin, and put the X axis + as the bisector between the 2 vectors. Let a be the angle between the + vectors. Then the X coordinates of the 1st and last points are cos(a/2). + Let x be the X coordinate of the 2nd and 3rd points. At t=1/2 we have a + point at (1,0). But the terms of the polynomial there are all equal: + + (1-t)^3 = t*(1-t)^2 = t^2*(1-t) = t^3 = 1/8, + + so from the Bezier formula there we have: + + 1 = (1/8) * (cos(a/2) + 3x + 3x + cos(a/2)), + + hence + + x = (4 - cos(a/2)) / 3 + + The X difference between that and the 1st point is: + + DX = x - cos(a/2) = 4(1 - cos(a/2)) / 3. + + But DX = distance / sin(a/2), hence the distance is + + dist = (4/3)*(1 - cos(a/2)) / sin(a/2). + + Rather than the angle a, we are given rDot = R^2 * cos(a), so we + multiply top and bottom by R: + + dist = (4/3)*(R - Rcos(a/2)) / Rsin(a/2) + + and use some trig: + ________________ + cos(a/2) = \/(1 + cos(a)) / 2 + ______________________ + R*cos(a/2) = \/(R^2 + R^2 cos(a)) / 2 + ________________ + = \/(R^2 + rDot) / 2 + + Let A = (R^2 + rDot)/2. + ____________________ + R*sin(a/2) = \/R^2 - R^2 cos^2(a/2) + _______ + = \/R^2 - A + + so: + _ + 4 R - \/A + dist = - * ------------ + 3 _______ + \/R^2 - A + + History: + 5/29/2001 MichKa + Created it. + + + + + Returns false if the radius is too small compared to the chord length (returns true on NaNs) + radius is modified to the value that is accepted. + + + + + A utility class to flatten Bezier curves. + + + + + Flattens a Bezier cubic curve and adds the resulting polyline to the third parameter. + + The four Bezier cubic control points. + The maximum distance between two corresponding points on the true curve + and on the flattened polyline. Must be strictly positive. + Where to add the flattened polyline. + True to skip the first control point when adding the flattened polyline. + Where to add the value of the Bezier curve parameter associated with + each of the polyline vertices. + If is empty, the first control point + and its associated parameter are always added. + + + + Flattens a Bezier quadratic curve and adds the resulting polyline to the third parameter. + Uses degree elevation for Bezier curves to reuse the code for the cubic case. + + The three Bezier quadratic control points. + The maximum distance between two corresponding points on the true curve + and on the flattened polyline. Must be strictly positive. + Where to add the flattened polyline. + Whether to skip the first control point when adding the flattened polyline. + Where to add the value of the Bezier curve parameter associated with + each of the polyline vertices. + If is empty, the first control point and + its associated parameter are always added. + + + + Extension methods that support non-geometry types. + + + + + Allows the application of an action delegate (often a very simple lambda) against an entire sequence. + + + + + Allows the application of an action delegate (often a very simple lambda) against an entire sequence. + + + + + Allows the application of an action delegate (often a very simple lambda) against an entire sequence with the index of each item. + + + + + Ensures the count of a list to a given count. Creates with a given factory or removes items when necessary. + If Input IList is a List, AddRange or RemoveRange is used when there's no factory. + + + + + Ensures the count of a list is at least the given count. Creates with a given factory. + + + + + Add a range of items to the end of a collection. + If a collection is a list, List.AddRange is used. + + + + + Gets the last item of a given list. + + + + + Removes the last item from the given list. + + + + + Makes a copy of obj and all it's public properties, including all collection properties. + + + + + Sets the value if different. Avoids setting a local value if possible. + Returns true when the value has been changed. + + + + + Clears the dependency property when it is locally set on the given dependency object. + Returns false if the dependeny property is not locally set. + + + + + Finds all visual descendants of a given type and condition using breadth-first search. + + + + + Gets all visual children in IEnumerable. + + + + + Unifies the interface of PropertyMetadata in WPF and Silverlight. + Provides the necessary notification about render, arrange, or measure. + + + + + This private Ctor should only be used by AttachCallback. + + + + + Chain InternalCallback() to attach the instance of DrawingPropertyMetadata on property callback. + In Silverlight, the property metadata is thrown away after setting. Use callback to remember it. + + + + + Before chaining the original callback, trigger DrawingPropertyChangedEvent. + + + + + Extension methods for geometry-related data structures (Point/Vector/Size/Rect). + + + + + Resizes the rectangle to a relative size while keeping the center invariant. + + + + + Gets the difference vector between two points. + + + + + Memberwise plus for Point. + + + + + Memberwise minus for Point. + + + + + Converts a string of mini-languages to a . + + See: Path Markup Syntax(http://msdn.microsoft.com/en-us/library/cc189041(VS.95).aspx) + The string of path mini-languages for describing geometric paths. + A converted from the the path mini-languages. + + + + Flattens a and adds result points to a given . + + The input . + The point list to which result points will append. + A positive number specifying the maximum allowed error from the result points to the input path figure. A Value of zero allows the algorithm to pick the tolerance automatically. + + + + Gets the normalized arc in a (0,0)(1,1) box. + Zero degrees is mapped to [0.5, 0] (up), and clockwise. + + + + + Gets the absolute arc point in a given bound with a given relative radius. + + + + + Gets the angle on an arc relative to a (0,0)(1,1) box. + Zero degrees is mapped to [0.5, 0] (up), and clockwise. + + + + + Gets the angle on an arc from a given absolute point relative to a bound. + + + + + Computes the transform that moves "Rect from" to "Rect to". + + + + + Computes the transform from the coordinate space of one UIElement to another. + + The source element. + The destination element. + The transform between the UIElements, or null if it cannot be computed. + + + + Maps a relative point to an absolute point using the mapping from a given bound to a (0,0)(1,1) box. + + + + + Maps an absolute point to a relative point using the mapping from a (0,0)(1,1) box to a given bound. + + + + + Computes the bound after stretching within a given logical bound. + If stretch to uniform, use given aspectRatio. + If aspectRatio is empty, it's equivalent to Fill. + If stretch is None, it's equivalent to Fill or Uniform. + + + + + Returns the mid point of two points. + + The first point. + The second point. + The mid point between and . + + + + Returns the dot product of two vectors. + + The first vector. + The second vector. + The dot product of and . + + + + Returns the dot product of two points. + + + + + Returns the distance between two points. + + The first point. + The second point. + The distance between and . + + + + Returns the square of the distance between two points. + + The first point. + The second point. + The square of the distance between and . + + + + Determinant of the cross product. Equivalent to directional area. + + + + + Computes the normal direction vector of given line segments. + + + + + Computes the perpendicular vector, 90-degrees, counter-clockwise. + Vector to the right perpendicular results in a vector to up. + + + + + Returns whether the two geometries are identical. + + + + + Ensures the value is an instance of result type (T). If not, replace with a new instance of type (T). + + + + + Ensures the list[index] is an instance of result type (T). If not, replace with a new instance of type (T). + + + + + Helper class that provides static properties and methods related to floating point arithmetic. + + + + + The minimum distance to consider that two values are same. + Note: internal floating point in MIL/SL is float, not double. + + + + + The value of the angle of a full circle. + + + + + The inner radius for a pentagram polygon shape, at precision of three digits in percentage. + (1 - Sin36 * Sin72 / Sin54) / (Cos36) ^ 2, which is 0.47210998990512996761913067272407 + + + + + Determines whether a System.Double value is small enough to be considered + equivalent to zero. + + + True if value is smaller than DoubleTolerance; + otherwise, False. + + + + Returns the value that's within the given range. + A given min/max that is null equals no limit. + + + + + Computes the Euclidean norm of the vector (x, y). + + The first component. + The second component. + The Euclidean norm of the vector (x, y). + + + + Computes a real number from the mantissa and exponent. + + + + The value of x * 2^exp if successful. + + + + Tests a double. + + The double to test. + True if x is not a NaN and is not equal to plus or minus infinity; + otherwise, False. + + + + Helper class to work with PathFigure. + + + + + Flattens the given figure and adds result points to the given point list. + + The error tolerance. Must be positive. Can be zero. Fallback to default tolerance. + + + + Iterates all segments inside a given figure, and returns the correct start point for each segment. + + + + + Synchronizes the figure to the given list of points as a single polyline segment. + Tries to keep the change to a minimum and returns false if nothing has been changed. + + + + + Synchronizes the given figure to be a closed ellipse with two arc segments. + + + + + A Tuple data structure for PathSegment and the corresponding StartPoint. + + + + + Represents a polyline with a list of connecting points. + A closed polygon is represented by repeating the first point at the end. + The differences, normals, angles, and lengths are computed on demand. + + + + + Constructs a polyline with two or more points. + + + + + The forward difference vector of polyline. + Points[i] + Differences[i] = Points[i+1] + + + + Compute the normal vector of given location (lerp(index, index+1, fraction). + If the location is within range of cornerRadius, interpolate the normal direction. + + The range of normal smoothless. If zero, no smoothness and return the exact normal on index. + + + + The polyline is closed when the first and last points are repeated. + + + + + The count of points in this polyline. + + + + + The total arc length of this polyline. + + + + + The point array of this polyline. + + + + + The length between line segments, Points[i] to Points[i+1]. + + + + + The list of normal vectors for each segment. + Normals[i] is the normal of segment p[i] to p[i + 1]. + Normals[N-1] == Normals[N-2]. + + + + + The list of Cos(angle) between two line segments on point p[i]. + Note: The value is cos(angle) = Dot(u, v). Not in degrees. + + + + + The list of accumulated length from points[i] to points[0]. + + + + + The data structure to communicate with the PathMarch algorithm. + + + + + Gets the interpolated position of this MarchLocation on a given point list. + + + + + Get the interpolated normal direction of this MarchLocation on a given normal vector list. + + + + + Gets the arc length of this MarchLocation to the start of the entire polyline. + + + + + The reason why this location is sampled. + + + + + The index of the point on a polyline point list. + + + + + Ratio: [0, 1], which is always before / (before + after). + + + + + Arc length before a stop point. Non-negative and less than Length[index]. + + + + + Arc length after the stop point. Non-negative and less than Length[index]. + + + + + Remaining length within a step to hit next stop. Positive to go forward. Negative to go backward. + + + + + Helper class to work with list of points + + + + + March the given polyline with a given interval and output each stop through callback. + + The polyline points to march on. + The arc length to march before stopping at the first point. + The max angle between edges to be considered a corner vertex. + Callback when marching algorithm stop at a point. The callback returns the arc length for next stop. + If the asked length is negative, march backwards. If callback returns NaN, finish marching. + + + + Reorders the given list of polylines so that the polyline with a given arc length in the list is the first. + Polylines that preceded this line are concatenated to the end of the list, with the first polyline at the very end. + + A list of polylines. + The arc length in the entire list of polylines at which to find the start line. + The arc length into that line is returned in this variable. + The reordered and wrapped list. + + + + A random generator that supports uniform and Gaussian distributions. + + + + + Generates a pair of independent, standard, normally distributed random numbers, + zero expectation, unit variance, using polar form of the Box-Muller transformation. + + + + + Private constructor. Force to use factory methods. + + + + + Creates a line segment + + + + + Creates a cubic bezier segment from quatratic curve (3 control points) + + + + + Creates a cubic bezier segment with 4 control points. + + + + + Control points of path segment. Length is variant. + Line segment has 2 points, Cubic bezier has 4 points. + + + + + Compares two transforms for an exact match. Transforms with the same value but different structure (e.g. Translate(0,0) and Rotate(0) are not considered equivalent). + + The first transform. + The second transform. + + + + + Specifies the unit of thickness. + + + + + Unit in pixels. + + + + + Unit in percentage relative to the bounding box. + + + + + Provides the base class of a source of geometry. + Generates and caches the geometry based on the input parameters and the layout bounds. + + + A typical implementation will extend the UpdateCachedGeometry() to update this.cachedGeometry. + This base class will then handle the invalidation, pipeline to the geometry effects, and then cache relative to the layout bounds. + An implementation should try to reuse the cached geometry as much as possible to avoid reconstruction in the rendering thread. + An implementation can extend the ComputeLogicalBounds to handle Stretch differently. + + The type of geometry source parameter on which the base class is working on. + + + + Provides an interface to describe the source of a geometry. + + + This interface is designed to expose the geometry source in a non-generic way. + Typical implementation should subclass GeometrySource instead of implementing this interface directly. + + + + + Notifies that the geometry has been invalidated because of external changes. + + + Geometry is typically invalidated when parameters are changed. + If any geometry has been invalidated externally, the geometry will be recomputed even if the layout bounds change. + + + + + Update the geometry using the given parameters and the layout bounds. + Returns false if nothing has been updated. + + + + + Gets or sets the resulting geometry after the latest UpdateGeometry(). + + + + + Gets the bounding box where the geometry should stretch to. + The actual geometry might be smaller or larger than this. + should already take stroke thickness and stretch into consideration. + + + + + Gets the actual bounds of FrameworkElement. + includes logical bounds, stretch, and stroke thickness. + + + + + Specifics the geometry from the previous geometry effect process. + + + + + Notifies that the geometry has been invalidated because of external changes. + + + The geometry is typically invalidated when parameters are changed. + If any geometry has been invalidated externally, the geometry will be recomputed regardless if the layout bounds change. + + + + + Update the geometry based on the given parameters and layoutBounds. + Returns false if the geometry hasn't been changed. + + + + + Extends the way to provide geometry by implementing this function. + Returns true when any of the geometry is changed. + + + + + Extends the way to handle stretch mode. + The default is to always use Stretch.Fill and center stroke. + + + + + Apply the geometry effect when dirty or forced and update this.Geometry. + Otherwise, keep this.Geometry as this.cachedGeometry. + + + + + Gets or sets the resulting geometry after the latest UpdateGeometry(). + + + + + Gets the bounding box that the geometry should stretch to. + The actual geometry might be smaller or larger than this. + should already take stroke thickness and stretch into consideration. + + + + + + Gets the actual bounds of FrameworkElement. + includes logical bounds, stretch and stroke thickness. + + + + + + Arc recognizes Stretch.None as the same as Stretch.Fill, assuming aspect ratio = 1:1. + + + + + Normalize thickness, both relative to the bounding box and the absolute pixel. + Relative thickness = 0 -> full circle radius or clamped. + Relative thickness = 1 -> shrank to a dot, or degenerated. + + + + + The arc is degenerated to a line pointing to center / normal inward. + + + + + Compute a list of angle pairs, defining the ranges in which arc sample should locate. + The return value have 2, 4, or 6 double values, each pair defines a range and they are in the order + to span the angles from given start to end angles. The ranges will break at the self-intersect angle. + If input start/end are within the invalid range between self intersect angle, it will be moved to neighboring self intersect. + + + + + Move angle to 0-90 range. + + + + + Compute all pieces of inner curves with each pair of input angles, and connect them with poly Bezier segments. + The new segments are output to given figure.Segments list from the given index. The start point is output seperately. + + + + + Compute one piece of inner curve with given angle range, and output one piece of smooth curve in format of poly Beizer semgents. + + + + + Compute the parameter (angle) of the self-intersect point for given ellipse with given thickness. + The result is always in first quadrant, and might be 0 or 90 indicating no self-intersect. + Basic algorithm is to binary search for the angle that sample point is not in first quadrant. + + + + + Specifies the direction the arrow points. + + + + + The arrow points to the left. + + + + + The arrow points to the right. + + + + + The arrow points up. + + + + + The arrow points down. + + + + + B + /| + / C--D + A | + \ C--D + \| + B + Algorithm only uses Width/Height assuming top-left at 0,0. + + + + + Specifies the rendering style of a callout shape. + + + + + A rectangular callout. + + + + + A rectangular callout with rounded corners. + + + + + A oval-shaped callout. + + + + + A cloud-shaped callout. + + + + + Updates the edge line, and then connects to the anchor point if necessary. + + + + + Updates the polyline segment, and then connects start, anchor, and end points with the callout style. + + + + + Updates the line segment to a given point. + + + + + Computes the corner points in a clockwise direction, with eight points for the four corners. + + + + + The corner arc is always smaller than a 90-degree arc. + + + + + Provides the base class for GeometryEffect that transforms a geometry into another geometry. + + + This class provides the basic implementation of processing the rendered geometry of a IShape before it's passed to rendering. + A typical implementation will extend the virtual function to transform the input geometry. + is typically attached to as an attached property and activated when geometry is updated. + The of a will replace the rendered geometry in . + + + + + Gets the geometry effect as an attached property on a given dependency object. + + + + + Sets the geometry effect as an attached property on a given dependency object. + + + + + Makes a deep copy of the using its current values. + + + + + Makes a deep copy of the geometry effect. Implements CloneCurrentValue in Silverlight. + + A clone of the current instance of the geometry effect. + + + + Tests if the given geometry effect is equivalent to the current instance. + + A geometry effect to compare with. + Returns true when two effects render with the same appearance. + + + + Specifics the geometry from the previous geometry effect process. + + + + + Invalidates the geometry effect without actually computing the geometry. + Notifies all parent shapes or effects to invalidate accordingly. + + + + + Processes the geometry effect on a given input geometry. + Stores the result in GeometryEffect.OutputGeometry. + + Returns false if nothing has been changed. + + + + Extends the way of updating cachedGeometry based on a given input geometry. + + + + + Notified when detached from a parent chain. + + + + + Notified when attached to a parent chain. + + + + + Invalidates the geometry on a given dependency object when + the object is a valid parent type (IShape or GeometryEffect). + + + + + The default geometry effect that only passes through the input geometry. + + + + + Gets the output geometry of this geometry effect. + + + + + Parent can be either IShape or GeometryEffectGroup. + + + + + Provides the conversion between string and geometry effects. + + + This class enables the brief syntax in XAML like GeometryEffect="Sketch". + Creates a clone of the instance of the geometry effect so it can be used as a resource. + + + + + Builds a preset list of supported geometry effects. + + + + + A GeometryEffect that can be converted from a string type. + + + + + A GeometryEffect that can be converted to a string type. + + + + + Converts a string to a geometry effect. The fallback value is null. + + + + + Converts a geometry effect into a string. The fallback value is null. + + + + + Specifies the reason of being called. + + + + + Geometry has been invalidated because a property has been changed. + + + + + Geometry has been invalidated because a property is being animated. + + + + + Geometry has been invalidated because a child has been invalidated. + + + + + Geometry has been invalidated because a parent has been invalidated. + + + + + Geometry has been invalidated because a new template has been applied. + + + + + Provides helper extension methods to work with IGeometrySource and parameters. + + + + + Specifies the arrow head type. + + + + + No arrow head. + + + + + A triangle arrow head. + + + + + A stealth triangle arrow head. + + + + + An open triangle arrow head. + + + + + An oval arrow head. + + + + + Specifies the corner location. + + + + + On the top left of the bounding box. + + + + + On the top right of the bounding box. + + + + + On the bottom right of the bounding box. + + + + + On the bottom left of the bounding box. + + + + + Polygon recognizes Stretch.None as the same as Stretch.Fill. + + + + + A geometry effect that transforms any geometry into a Sketch style as in SketchFlow. + + + + + Makes a deep copy of the geometry effect. + + A clone of the current instance of the geometry effect. + + + + Tests if the given geometry effect is equivalent to the current instance. + + A geometry effect to compare with. + Returns true when two effects render with the same appearance. + + + + Updating cachedGeometry based on the given input geometry. + + An input geometry. + Returns true when anything on cachedGeometry has been updated. + + + + Use the same random seed on creation to keep visual flickering to a minimum. + + + + + Iterates all simple segments in given path figure including the closing chord. + + + + + Renders an arc shape supporting Arc, Ring, and Pie mode controlled by ArcThickness. + + + + + Platform-neutral implementation of Shape deriving from WPF:Shape or SL:Path. + + + Provides the Silverlight implementation of PrimitiveShape that derives from the platform Path. + + + + + Extends how the shape is drawn with creating geometry source. + + + + + Invalidates the geometry for a . After the invalidation, the will recompute the geometry, which will occur asynchronously. + + + + Provides the behavior for the Measure portion of Silverlight layout pass. Classes can override this method to define their own Measure pass behavior. + The size that this object determines it requires during layout, based on its calculations of child object allotted sizes, or possibly on other considerations such as fixed container size. + The available size that this object can provide to child objects. Infinity () can be specified as a value to indicate that the object will size to whatever content is available. + + In WPF, measure override works from Shape.DefiningGeometry which is not always as expected + see bug 99497 for details where WPF is not having correct measure by default. + + In Silverlight, measure override on Path does not work the same as primitive shape works. + + We should return the smallest size this shape can correctly render without clipping. + By default a shape can render as small as a dot, therefore returning the strokethickness. + + + + Provides the behavior for the Arrange portion of Silverlight layout pass. Classes can override this method to define their own Arrange pass behavior. + The actual size used once the element is arranged in layout. + The final area within the parent that this object should use to arrange itself and its children. + will recompute the Geometry when it's invalidated and update the RenderedGeometry and GeometryMargin. + + + + Occurs when RenderedGeometry is changed. + + + + + Gets or sets the rendered geometry of the primitive shape, mapping to in Silverlight. + + + The concept corresponds to Shape.RenderedGeometry in WPF. + + + + + Gets the margin between logical bounds and actual geometry bounds. + This can be either positive (as in ) or negative (as in ). + + + + + Gets or sets a that specifies the shape to be drawn. + + A description of the shape to be drawn. + + A new Data property to hide Path.Data property, to avoid being serialized to XAML. + This property will carry DesignerSerializationVisibilityAttribute. + + + + + Gets or sets the start angle. + + The start angle in degrees. Zero degrees is pointing up. + + + + Gets or sets the end angle. + + The end angle in degrees. Zero degrees is pointing up. + + + + Gets or sets the arc thickness. + + The arc thickness in pixels or percentage depending on "ArcThicknessUnit". + + + + Gets or sets the arc thickness unit. + + The arc thickness unit in pixels or percentage. + + + + Renders a block arrow shape that supports resizable arrow head and body. + + + + + Gets or sets the orientation. + + The orientation where the arrow is pointing to. + + + + Gets or sets the arrow head angle. + + The arrow head angle in degrees. + + + + Gets or sets the size of the arrow body. + + The size of the arrow body in pixels. + + + + Renders a regular polygon shape or corresponding star shape with variable number of points. + + + + + Gets or sets the number of points of the . + + + + + Gets or sets the the distance between the center and the innermost point. + + The distance between the center and the innermost point. + + + + This is ported from the WPF implementation of Vector. + + + + diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/Microsoft.Expression.Interactions.dll Binary file SilverlightExampleApp/Libs/Microsoft.Expression.Interactions.dll has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/Microsoft.Expression.Interactions.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/Libs/Microsoft.Expression.Interactions.xml Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,1256 @@ + + + + Microsoft.Expression.Interactions + + + + + A basic implementation of ICommand that wraps a method that takes no parameters or a method that takes one parameter. + + + + + Initializes a new instance of the class. + + The action. + Use this constructor to provide an action that ignores the ICommand parameter. + + + + Initializes a new instance of the class. + + An action that takes an object parameter. + Use this constructor to provide an action that uses the object parameter passed by the Execute method. + + + + Defines the method that determines whether the command can execute in its current state. + + Data used by the command. If the command does not require data to be passed, then this object can be set to null. + + Always returns true. + + + + + Defines the method to be called when the command is invoked. + + Data used by the command. If the command does not require data to be passed, then this object can be set to null. + + + + Occurs when changes occur that affect whether the command should execute. Will not be fired by ActionCommand. + + + + + Calls a method on a specified object when invoked. + + + + + Invokes the action. + + The parameter of the action. If the action does not require a parameter, the parameter may be set to a null reference. + + + + Called after the action is attached to an AssociatedObject. + + Override this to hook up functionality to the AssociatedObject. + + + + Called when the action is getting detached from its AssociatedObject, but before it has actually occurred. + + Override this to unhook functionality from the AssociatedObject. + + + + The object that exposes the method of interest. This is a dependency property. + + + + + The name of the method to invoke. This is a dependency property. + + + + + An action that will change a specified property to a specified value when invoked. + + + + + Initializes a new instance of the class. + + + + + Invokes the action. + + The parameter of the action. If the action does not require a parameter, then the parameter may be set to a null reference. + A property with could not be found on the Target. + Could not set to the value specified by . + + + + Gets or sets the name of the property to change. This is a dependency property. + + The name of the property to change. + + + + Gets or sets the value to set. This is a dependency property. + + The value to set. + + + + Gets or sets the duration of the animation that will occur when the ChangePropertyAction is invoked. This is a dependency property. + If the duration is unset, no animation will be applied. + + + + + Increment by Value if true; otherwise, set the value directly. If the property cannot be incremented, it will instead try to set the value directly. + + + + + Gets or sets the easing function to use with the animation when the ChangePropertyAction is invoked. This is a dependency property. + + + + + Represents one ternary condition. + + + + + Method that evaluates the condition. Note that this method can throw ArgumentException if the operator is + incompatible with the type. For instance, operators LessThan, LessThanOrEqual, GreaterThan, and GreaterThanOrEqual + require both operators to implement IComparable. + + Returns true if the condition has been met; otherwise, returns false. + + + + Ensure that any binding on DP operands are up-to-date. + + + + + Gets or sets the left operand. + + + + + Gets or sets the right operand. + + + + + Gets or sets the comparison operator. + + + + + Enumeration of different comparison operators. + + + + + This method evaluates operands. + + Left operand from the LeftOperand property. + Operator from Operator property. + Right operand from the RightOperand property. + Returns true if the condition is met; otherwise, returns false. + + + + Evaluates both operands that implement the IComparable interface. + + Left operand from the LeftOperand property. + Operator from Operator property. + Right operand from the RightOperand property. + Returns true if the condition is met; otherwise, returns false. + + + + Forward chaining. + + + + + Represents a conditional expression that is set on a ConditionBehavior.Condition property. + Contains a list of conditions that gets evaluated in order to return true or false for ICondition.Evaluate(). + + + + + An interface that a given object must implement in order to be + set on a ConditionBehavior.Condition property. + + + + + Initializes a new instance of the class. + + + + + Goes through the Conditions collection and evalutes each condition based on + ForwardChaining property. + + Returns true if conditions are met; otherwise, returns false. + + + + Gets or sets forward chaining for the conditions. + If forward chaining is set to ForwardChaining.And, all conditions must be met. + If forward chaining is set to ForwardChaining.Or, only one condition must be met. + + + + + Return the Condition collections. + + + + + A behavior that attaches to a trigger and controls the conditions + to fire the actions. + + + + + + Initializes a new instance of the class. + + + + + The event handler that is listening to the preview invoke event that is fired by + the trigger. Setting PreviewInvokeEventArgs.Cancelling to True will + cancel the invocation. + + The trigger base object. + An object of type PreviewInvokeEventArgs where e.Cancelling can be set to True. + + + + Gets or sets the IConditon object on behavior. + + The name of the condition to change. + + + + Helper class for managing binding expressions on dependency objects. + + + + + Ensure that all DP on an action with binding expressions are + up to date. DataTrigger fires during data binding phase. Since + actions are children of the trigger, any bindings on the action + may not be up-to-date. This routine is called before the action + is invoked in order to guarantee that all bindings are up-to-date + with the most current data. + + + + + Ensures that all binding expression on actions are up to date + + + + + This helper function ensures that, if a dependency property on a dependency object + has a binding expression, the binding expression is up-to-date. + + + + + + + Toggles between two states based on a conditional statement. + + + + + Called after the behavior is attached to an AssociatedObject. + + Override this to hook up functionality to the AssociatedObject. + + + + A helper function to take the place of FrameworkElement.IsLoaded, as this property isn't available in Silverlight. + + The element of interest. + Returns true if the element has been loaded; otherwise, returns false. + + + + Gets or sets the binding that produces the property value of the data object. This is a dependency property. + + + + + Gets or sets the value to be compared with the property value of the data object. This is a dependency property. + + + + + Gets or sets the name of the visual state to transition to when the condition is met. This is a dependency property. + + + + + Gets or sets the name of the visual state to transition to when the condition is not met. This is a dependency property. + + + + + Trigger designed to be bound to a data store property. Fires when the property changes. + + + + + Represents a trigger that performs actions when the bound data have changed. + + UA_REVIEW:chabiss + + + + Called when the binding property has changed. + UA_REVIEW:chabiss + + argument. + + + + Called after the trigger is attached to an AssociatedObject. + UA_REVIEW:chabiss + + + + + Called when the trigger is being detached from its AssociatedObject, but before it has actually occurred. + UA_REVIEW:chabiss + + + + + A binding object that the trigger will listen to, and that causes the trigger to fire when it changes. + + UA_REVIEW:chabiss + + + + Represents a trigger that performs actions when the bound data meets a specified condition. + + + + + Called when the binding property has changed. + UA_REVIEW:chabiss + + argument. + + + + Gets or sets the value to be compared with the property value of the data object. This is a dependency property. + + + + + Gets or sets the type of comparison to be performed between the specified values. This is a dependency property. + + + + + ExtendedVisualStateManager is a custom VisualStateManager that can smooth out the animation of layout properties. + With this custom VisualStateManager, states can include changes to properties like Grid.Column, can change element heights to or from Auto, and so on. + These changes will be smoothed out over time using the GeneratedDuration and GeneratedEasingFunction of the appropriate transition. + See the "VisualStateManager overrides" region below for a general description of the algorithm. + + + + + A VisualStateGroup that can use FluidLayout or not. + + + + + Visibility is shadowed by a custom attached property at runtime. + + + + + A VisualStateGroup keeps a list of these original values in an attached property. + + + + + For every state, the layout-specific properties get extracted and then are attached to the state. These properties are removed from the state itself. + + + + + Remember the current state. + + + + + The TransitionEffect to use when the state changes. + + + + + The TransitionEffectStoryboard in use during the state change. + + + + + The cached background in use during the state change. + + + + + The cached background in use during the state change. + + + + + The cached background in use during the state change. + + + + + This is the set of elements that are currently in motion. + + + + + This is the storyboard that is animating the transition. + + + + + This list contains all the known layout properties. + + + + + Silverlight does not provide a direct means of getting a DependencyProperty from a PropertyPath, so this structure is used + to locate tracked paths. + + + + + Stop the animation and replace the layout changes that were made to support that animation. + + + + + Locate the transition that VisualStateManager will use to animate the change, so that the layout animation can match the duration and easing. + + The group in which the transition is taking place. + The state that you are coming from. + The state you are going to. + The transition + + + + Remove all layout-affecting properties from the Storyboard for the state and cache them in an attached property. + + The state you are moving to. + A Storyboard containing the layout properties in that state. + + + + The set of target elements is the set of all elements that might have moved in a layout transition. This set is the closure of: + - Elements with layout properties animated in the state. + - Siblings of elements in the set. + - Parents of elements in the set. + + Subsequent code will check these rectangles both before and after the layout change. + + The control whose layout is changing state. + The storyboard containing the layout changes. + Any previous values from previous state navigations that might be reverted. + The set of elements currently in motion, if there is a state change transition ongoing. + The full set of elements whose layout may have changed. + + + + Gets a set of rectangles for all the elements in the target list. + + The set of elements to consider. + The set of elements currently in motion. + A Dictionary mapping elements to their Rects. + + + + Get the layout rectangle of an element, by getting the layout slot and then computing which portion of the slot is being used. + + The element whose layout Rect will be retrieved. + The layout Rect of that element. + + + + Get the opacities of elements at the time of the state change, instead of visibilities, because the state change may be in process and the current value is the most important. + + The control whose state is changing. + The storyboard with the layout properties. + The set of original values. + + + + + Go through the layout Storyboard and set all the properties by using SetValue to enable calling UpdateLayout without + ticking the timeline, which would cause a render. + All values that are overwritten will be stored in the collection of OriginalValueRecords so that they can be replaced later. + + The control whose state is changing. + The Storyboard holding the layout properties. + The store of original values. + + + + Take all the elements that will be moving as a result of the layout animation, and wrap them in Canvas panels so that + they do not affect their sibling elements. + + The set of elements that will be moving. + + + + Take all the elements that have been moving as a result of the layout animation, and unwrap them from their Canvas panels. + + The set of elements that have been moving. + + + + Copy the layout properties from the source element to the target element, clearing them from the source. + + The source of the layout properties. + The destination of the layout properties. + + + + Create the actual Storyboard that will be used to animate the transition. Use all previously calculated results. + + The duration of the animation. + The easing function to be used in the animation. + The set of elements that will be moving. + The old opacities of the elements whose visibility properties are changing. + The Storyboard. + + + + OriginalValueRecord remembers the original value of a property that was changed in a state. + + + + + This enumerated type indicates whether a FluidMoveBehavior applies to the element to which it is attached, or to the children of that element. + "Self" is useful when there is a single element that should behave in a special manner; "Children" is useful when the same behavior should apply to all + children of a WrapPanel or to the ItemsHost panel of an ItemsControl. + + + + + This enumerated type indicates whether an element is identified by itself, or by its DataContext. + DataContext identification allows movement from one data-driven location to another. + + + + + Dependency property for the scope of the behavior. See FluidMoveScope for more details. + + + + + Dependency property for the active state of the behavior. + + + + + Dependency property that provides the ability to use the element as its own tag, or the binding on the element. + + + + + Dependency property for the extra path to add to the binding when UsaBindingAsTag is true. + + + + + Identity tag used to detect element motion between containers. + + + + + Indicates whether the behavior applies just to this element, or to all children of the element (if the element is a Panel). + + + + + Indicates whether the behavior is currently active. + + + + + Indicates whether to use the element as its own tag, or to use the binding on the element as the tag. + + + + + Extra path to add to the binding when TagType is specified. + + + + + Private structure that stores all relevant data pertaining to a tagged item. + + + + + Behavior that watches an element (or a set of elements) for layout changes, and moves the element smoothly to the new position when needed. + This behavior does not animate the size or visibility of an element; it only animates the offset of that element within its parent container. + + + + + Dependency property for the duration of the move. + + + + + Dependency property for the tag type to use just before the object is loaded. + + + + + Dependency property for the extra path to add to the binding when UsaBindingAsTag is true. + + + + + Identity tag used to detect element motion between containers. + + + + + Dependency property for the FloatAbove flag. + + + + + Dependency property for the EasingFunction to use for the horizontal component of the move. + + + + + Dependency property for the EasingFunction to use for the vertical component of the move. + + + + + Remember the popup/adorner being used, in case of element motion between containers when FloatAbove is true. + + + + + Opacity cache used when floating a Popup. + + + + + Marks the animation transform. + + + + + The duration of the move. + + + + + Spawning point for this item. + + + + + Extra path to add to the binding when TagType is specified. + + + + + Flag that says whether elements are allowed to float above their containers (in a Popup or Adorner) when changing containers. + + + + + EasingFunction to use for the horizontal component of the move. + + + + + EasingFunction to use for the vertical component of the move. + + + + + An action that will transition a FrameworkElement to a specified VisualState when invoked. + + + If the TargetName property is set, this action will attempt to change the state of the targeted element. If not, it walks + the element tree in an attempt to locate an alternative target that defines states. ControlTemplate and UserControl are + two common possibilities. + + + + + Called when the target changes. If the TargetName property isn't set, this action has custom behavior. + + + + Could not locate an appropriate FrameworkElement with states. + + + + This method is called when some criteria is met and the action is invoked. + + + Could not change the target to the specified StateName. + + + + Determines whether or not to use a VisualTransition to transition between states. + + + + + The name of the VisualState. + + + + + An action that will navigate to a given hyperlink. + + + + + This method is called when some criteria is met and the action is invoked. + + + + + + The Uri of the page to open. + + + + + The name of the window or tab in which NavigateUri should be opened. + + + Several values have special meanings: "_blank" will load in a new browser window, "_parent" will attempt to + load in the parent frame, and "_self" will target the current page or frame. + + + + + A Trigger that is triggered by a keyboard event. If the target Key and Modifiers are detected, it fires. + + + + + The key that must be pressed for the trigger to fire. + + + + + The modifiers that must be active for the trigger to fire (the default is no modifiers pressed). + + + + + Determines whether or not to listen to the KeyDown or KeyUp event. + + + + + Repositions the attached element in response to mouse drag gestures on the element. + + + + + Dependency property for the X position of the dragged element, relative to the left of the root element. + + + + + Dependency property for the Y position of the dragged element, relative to the top of the root element. + + + + + Dependency property for the ConstrainToParentBounds property. If true, the dragged element will be constrained to stay within the bounds of its parent container. + + + + + Attempts to update the position of the associated element to the specified coordinates. + + The desired position of the element in root coordinates. + + + + Applies a relative position translation to the associated element. + + The X component of the desired translation in root coordinates. + The Y component of the desired translation in root coordinates. + + + + Applies the given translation to the RenderTransform of the associated element. + + The X component of the translation in parent coordinates. + The Y component of the translation in parent coordinates. + + + + Does a recursive deep copy of the specified transform. + + The transform to clone. + A deep copy of the specified transform, or null if the specified transform is null. + Thrown if the type of the Transform is not recognized. + + + + Updates the X and Y properties based on the current rendered position of the associated element. + + + + + Check if one Rect is contained by another. + + The containing Rect. + The contained Rect. + True if rect1 contains rect2; otherwise, False. + + + + Transforms as vector. + + The transform. + The X component of the vector. + The Y component of the vector. + A point containing the values of X and Y transformed by transform as a vector. + + + + Gets the transform offset. + + The transform. + The offset of the transform. + + + + Called after the behavior is attached to an AssociatedObject. + + Override this to hook up functionality to the AssociatedObject. + + + + Called when the behavior is getting detached from its AssociatedObject, but before it has actually occurred. + + Override this to unhook functionality from the AssociatedObject. + + + + Occurs when a drag gesture is initiated. + + + + + Occurs when a drag gesture update is processed. + + + + + Occurs when a drag gesture is finished. + + + + + Gets or sets the X position of the dragged element, relative to the left of the root element. This is a dependency property. + + + + + Gets or sets the Y position of the dragged element, relative to the top of the root element. This is a dependency property. + + + + + Gets or sets a value indicating whether the dragged element is constrained to stay within the bounds of its parent container. This is a dependency property. + + + True if the dragged element should be constrained to its parents bounds; otherwise, False. + + + + + Gets the on-screen position of the associated element in root coordinates. + + The on-screen position of the associated element in root coordinates. + + + + Gets the element bounds in element coordinates. + + The element bounds in element coordinates. + + + + Gets the parent element of the associated object. + + The parent element of the associated object. + + + + Gets the root element of the scene in which the associated object is located. + + The root element of the scene in which the associated object is located. + + + + Gets and sets the RenderTransform of the associated element. + + + + + An action that will play a sound to completion. + + + This action is intended for use with short sound effects that don't need to be stopped or controlled. If you're trying + to create a music player or game, it may not meet your needs. + + + + + Initializes a new instance of the class. + + + + + When the action is invoked, this method is used to customize the dynamically created MediaElement. + + + This method may be useful for Action authors who wish to extend PlaySoundAction. If you want to control the + MediaElement Balance property, you could inherit from PlaySoundAction and override this method. + + + + + + This method is called when some criteria are met and the action should be invoked. + + + Each invocation of the Action plays a new sound. Although the implementation is subject-to-change, the caller should + anticipate that this will create a new MediaElement that will be cleaned up when the sound completes or if the media + fails to play. + + + + + + A Uri defining the location of the sound file. This is used to set the source property of the MediaElement. This is a dependency property. + + + The sound can be any file format supported by MediaElement. In the case of a video, it will play only the + audio portion. + + + + + Control the volume of the sound. This is used to set the Volume property of the MediaElement. This is a dependency property. + + + + + An action that will remove the targeted element from the tree when invoked. + + + This action may fail. The action understands how to remove elements from common parents but not from custom collections or direct manipulation + of the visual tree. + + + + + An action that will change the value of a property from a data store object. + This class is identical to ChangePropertyAction. The only difference is that the data store picker is loaded + for this action. + + + + + An abstract class that provides the ability to target a Storyboard. + + + For action authors, this class provides a standard way to target a Storyboard. Design tools may choose to provide a + special editing experience for classes that inherit from this action, thereby improving the designer experience. + + + + + This method is called when the Storyboard property is changed. + + + + + + The targeted Storyboard. This is a dependency property. + + + + + An action that will change the state of a targeted storyboard when invoked. + + + + + This method is called when some criteria is met and the action should be invoked. This method will attempt to + change the targeted storyboard in a way defined by the ControlStoryboardOption. + + + + + + An abstract class that provides the ability to target a Storyboard. + + + For Trigger authors, this class provides a standard way to target a Storyboard. Design tools may choose to provide a + special editing experience for classes that inherit from this trigger, thereby improving the designer experience. + + + + + This method is called when the Storyboard property is changed. + + + + + The targeted Storyboard. This is a dependency property. + + + + + A trigger that listens for the completion of a Storyboard. + + + + + Initializes a new instance of the class. + + + + + A trigger that is triggered by a specified event occurring on its source and fires after a delay when that event is fired. + + + + + Initializes a new instance of the class. + + + + + Gets or sets the number of milliseconds to wait between ticks. This is a dependency property. + + + + + Gets or sets the total number of ticks to be fired before the trigger is finished. This is a dependency property. + + + + + Defines a transition effect shader that transitions from one visual to another visual + using an interpolated value between 0 and 1. + + + + + Brush-valued properties that turn into sampler-properties in the shader. + Represents the image present in the final state of the transition. + + + + + Brush-valued properties that turn into sampler-properties in the shader. + Represents the image present in the initial state of the transition. + + + + + A Dependency property as the backing store for Progress. + Also used to represent the state of a transition from start to finish (range between 0 and 1). + + + + + Creates a modifiable clone (deep copy) of the using its current values. + + + + + Makes a deep copy of the transition effect. Implements CloneCurrentValue in Silverlight. + + A clone of current instance of transition effect. + + + + Updates the shader's variables to the default values. + + + + + Gets or sets the Input variable within the shader. + + + + + Gets or sets the OldImage variable within the shader. + + + + + Gets or sets the Progress variable within the shader. + + + + + This class provides various platform agnostic standard operations for working with VisualStateManager. + + + + + Transitions the control between two states. + + The element to transition between states. + The state to transition to. + True to use a System.Windows.VisualTransition to transition between states; otherwise, false. + True if the control successfully transitioned to the new state; otherwise, false. + Control is null. + StateName is null. + + + + Gets the value of the VisualStateManager.VisualStateGroups attached property. + + The element from which to get the VisualStateManager.VisualStateGroups. + + + + + Find the nearest parent which contains visual states. + + The element from which to find the nearest stateful control. + The nearest stateful control if True; else null. + True if a parent contains visual states; else False. + + + + A strongly-typed resource class, for looking up localized strings, etc. + + + + + Returns the cached ResourceManager instance used by this class. + + + + + Overrides the current thread's CurrentUICulture property for all + resource lookups using this strongly typed resource class. + + + + + Looks up a localized string similar to Could not find method named '{0}' on object of type '{1}' that matches the expected signature.. + + + + + Looks up a localized string similar to More than one potential addition operator was found on type '{0}'.. + + + + + Looks up a localized string similar to Cannot animate a property change on a type '{0}' Target. Property changes can only be animated on types derived from DependencyObject.. + + + + + Looks up a localized string similar to Cannot find a property named "{0}" on type "{1}".. + + + + + Looks up a localized string similar to The Increment property cannot be set to True if the Duration property is set.. + + + + + Looks up a localized string similar to The '{0}' property cannot be incremented because its value cannot be read.. + + + + + Looks up a localized string similar to Cannot assign value of type "{0}" to property "{1}" of type "{2}". The "{1}" property can be assigned only values of type "{2}".. + + + + + Looks up a localized string similar to Property "{0}" defined by type "{1}" does not expose a set method and therefore cannot be modified.. + + + + + Looks up a localized string similar to Cannot find state named '{0}' on type '{1}'. Ensure that the state exists and that it can be accessed from this context.. + + + + + Looks up a localized string similar to Target {0} does not define any VisualStateGroups. . + + + + + Looks up a localized string similar to LeftOperand of type "{0}" cannot be used with operator "{1}".. + + + + + Looks up a localized string similar to LeftOperand of type "{1}" and RightOperand of type "{0}" cannot be used with operator "{2}".. + + + + + Looks up a localized string similar to RightOperand of type "{0}" cannot be used with operator "{1}".. + + + + + Looks up a localized string similar to The target of the RemoveElementAction is not supported.. + + + + diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/Microsoft.Practices.ServiceLocation.dll Binary file SilverlightExampleApp/Libs/Microsoft.Practices.ServiceLocation.dll has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/Microsoft.Practices.Unity.Silverlight.dll Binary file SilverlightExampleApp/Libs/Microsoft.Practices.Unity.Silverlight.dll has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/Microsoft.Practices.Unity.dll Binary file SilverlightExampleApp/Libs/Microsoft.Practices.Unity.dll has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/Microsoft.Silverlight.Testing.dll Binary file SilverlightExampleApp/Libs/Microsoft.Silverlight.Testing.dll has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/Microsoft.Silverlight.Testing.pdb Binary file SilverlightExampleApp/Libs/Microsoft.Silverlight.Testing.pdb has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/Microsoft.Silverlight.Testing.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/Libs/Microsoft.Silverlight.Testing.xml Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,14796 @@ + + + + Microsoft.Silverlight.Testing + + + + + A class containing an Assert method. + + + + + The MethodInfo object used to invoke Assert.IsNotNull. + + + + + The MethodInfo object used to invoke Assert.AreNotSame. + + + + + The MethodInfo object used to invoke Assert.AreNotEqual. + + + + + The MethodInfo object used to invoke Assert.AreSame. + + + + + The MethodInfo object used to invoke Assert.AreEqual. + + + + + The MethodInfo object used to invoke Assert.IsNull. + + + + + The MethodInfo object used to invoke Assert.IsFalse. + + + + + The MethodInfo object used to invoke Assert.IsTrue. + + + + + A regular expression which identifies a pattern signifying an + anonymous type. This pattern is emitted by the Expression object + when it converts an anonymous type to a string. + + + + + A regular expression which identifies a pattern emitted by an + Expression object when it converts an anonymous type to a + string. + + + + + Asserts a condition is true. + + The condition that must be true. + + + + Asserts a condition is true. + + The condition that must be true. + The message to be displayed when the test fails. + + + + Generates an assert failure message using the code block + responsible for the failure. + + The predicate that fails. + The user-provided assertion failure message. + + A constant expression containing the user-provided failure + message or a description of the expression that failed. + + + + Analyzes the expression and creates an action which calls the + correct assert method based on its contents. + + The predicate expression. + The message to display if an assertion fails. + An action which calls the correct assert method. + + + + Analyzes a predicate expression and invokes the correct assert + method. + + The type of the argument to the predicate. + + A predicate to be converted into an + assert statement. + The assertion message. + + + + Creates an action from certain types of supported binary expression + patterns. If no supported pattern is found null is returned. Based + on analyzing the predicate the action invokes the correct Assert + method. + + A binary expression extracted from a + predicate expression. + The message to display if the assertion + fails. + An action that invokes an Assert method. + + + + Mark the test method as one which expects asynchronous execution. + It is important to call TestComplete() once it is ready or your + test will never continue/timeout. + + + + + An attribute that contains known bug information that can be logged + during a unit test run. + + When applied to a test method, it will invert the result. This makes it + possible to perform automated runs and continuous integration while + validating and tracking known issues. + + The attribute should have the Fixed bool set to True, or be removed, + once the issue is resolved. + + + + + Construct a new BugAttribute with no bug description. + + + + + Construct a new BugAttribute with a bug description. + + Known issue text. + + + + Return the bug information. + + Known issue as a string. + + + + Gets the bug description. + + + + + Gets or sets a value indicating whether the known issue has been + fixed. If it has, the attribute is ignored and will not affect + test results. + + + + + Represents a control that builds on top of the standard platform Button, + offering the ability to modify the corner radii or even use special + button modes. + + + + + Identifies the SecondaryVisibility dependency property. + + + + + Identifies the CornerRadius dependency property. + + + + + Gets or sets the visibility of a secondary set of visuals in the + template. + + + + + Gets or sets the corner radius to use. + + + + + A color selection converter for translating a bool result into + a color. + + + + + Initializes a new instance of the ColorSelectorConverter type. + + + + + Convert a boolean value to a Color value. + + The value. + The target parameter. + ConverterParameter is of type Visibility. + The culture parameter. + Returns the object. + + + + Support 2-way databinding of the VisibilityConverter, converting + Visibility to a boolean. + + The value. + The target parameter. + ConverterParameter is of type Visibility. + The culture parameter. + Returns the object. + + + + Gets or sets the color to use for true values. + + + + + Gets or sets the color to use for false values. + + + + + A set of extension methods for manipulating collections. + + Experimental + + + + Returns a value indicating whether a collection is read-only. + + The collection to examine. + A value indicating whether a collection is read-only. + + + + Returns a value Indicating whether an item can be inserted in a + collection. + + The collection. + The item to be inserted. + A value Indicating whether an item can be inserted in a + collection. + + + + Inserts an item into the collection at an index. + + The collection. + The index at which to insert the item. + The item to be inserted. + + + + Gets the number of items in the collection. + + The collection. + The number of items in the collection. + + + + Adds an item to the collection. + + The collection. + The item to be added. + + + + Removes an item from the collection. + + The collection. + The item to be removed. + + + + Removes an item at a given index from the collection. + + The collection. + The index of the item to be removed. + + + + A color selection converter for translating a bool result into + a color. + + + + + The default true color. + + + + + The default false color. + + + + + Initializes a new instance of the ColorSelectorConverter type. + + + + + Convert a boolean value to a Color value. + + The value. + The target parameter. + ConverterParameter is of type Visibility. + The culture parameter. + Returns the object. + + + + Support 2-way databinding of the VisibilityConverter, converting + Visibility to a boolean. + + The value. + The target parameter. + ConverterParameter is of type Visibility. + The culture parameter. + Returns the object. + + + + Gets or sets the color to use for true values. + + + + + Gets or sets the color to use for false values. + + + + + A set of extension methods for the sequence class. + ;dsf + + + + Produces a sequence of items using a seed value and iteration + method. + + The type of the sequence. + The initial value. + The iteration function. + A sequence of items using a seed value and iteration + method. + + + + Prepend an item to a sequence. + + The type of the sequence. + The sequence to append the item to. + The item to append to the sequence. + A new sequence. + + + + Accepts two sequences and applies a function to the corresponding + values in the two sequences. + + The type of the first sequence. + The type of the second sequence. + The return type of the function. + The first sequence. + The second sequence. + The function to apply to the corresponding values + from the two sequences. + A sequence of transformed values from both sequences. + + + + A converter for modifying the font weight based on a parameter. + + + + + Convert a boolean value to a FontWeight value. + + The value object. + The target parameter. + ConverterParameter is of type Visibility. + The culture parameter. + Returns the object. + + + + Support 2-way databinding of the VisibilityConverter, converting + Visibility to a bool. + + The value object. + The target parameter. + ConverterParameter is of type Visibility. + The culture parameter. + Returns the object. + + + + Determine the visibility mode based on a converter parameter. This + parameter is of type Visibility, and specifies what visibility value + to return when the boolean value is true. + + The parameter object. + Returns a FontWeight value. + + + + Determine whether or not weight is inverted based on a converter + parameter. + + The parameter instance. + Returns a value indicating whether the instance is + inverting. + + + + Collection of functions for functional programming tasks. + + + + + Traverses a tree by accepting an initial value and a function that + retrieves the child nodes of a node. + + The type of the stream. + The initial node. + A function that retrieves the child + nodes of a node. + A predicate that evaluates a node + and returns a value indicating whether that node and it's children + should be traversed. + A stream of nodes. + + + + The test results header control. + + + + + Initializes a new instance of the Header type. + + + + + InitializeComponent + + + + + A value converter for collapsing or showing elements based on the bound + object's type name. Does not walk the hierarchy - it is explicit to the + most specific class for the value. This class, + InvertedTypeNameVisibilityConverter, offers the opposite behavior of the + TypeNameVisibilityConverter class. + + + + + A value converter for collapsing or showing elements based on the bound + object's type name. Does not walk the hierarchy - it is explicit to the + most specific class for the value. + + + + + Convert a value based on CLR type to a Visibility value. Does not + walk the type tree, however. + + The value instance. + The target parameter. + ConverterParameter is the name of the type, + both short and full names are checked, short name first. + The culture parameter. + Returns the object. + + + + Convert back, not supported with this value converter. + + The value instance. + The target parameter. + ConverterParameter is of type Visibility. + The culture parameter. + Returns the object. + + + + Gets a value indicating whether the visibility value should be + inverted. + + + + + Gets a value indicating whether the visibility value should be + inverted. + + + + + Provides useful extensions to ItemsControl instances. + + Experimental + + + + Gets the Panel that contains the containers of an ItemsControl. + + The ItemsControl. + + The Panel that contains the containers of an ItemsControl, or null + if the Panel could not be found. + + + is null. + + + + + Gets the ScrollViewer that contains the containers of an + ItemsControl. + + The ItemsControl. + + The ScrollViewer that contains the containers of an ItemsControl, or + null if a ScrollViewer could not be found. + + + is null. + + + + + Get the item containers of an ItemsControl. + + The ItemsControl. + The item containers of an ItemsControl. + + is null. + + + + + Get the item containers of an ItemsControl. + + + The type of the item containers. + + The ItemsControl. + The item containers of an ItemsControl. + + is null. + + + + + Get the item containers of an ItemsControl. + + + The type of the item containers. + + The ItemsControl. + The item containers of an ItemsControl. + + + + Get the items and item containers of an ItemsControl. + + The ItemsControl. + The items and item containers of an ItemsControl. + + is null. + + + + + Get the items and item containers of an ItemsControl. + + + The type of the item containers. + + The ItemsControl. + The items and item containers of an ItemsControl. + + is null. + + + + + Get the items and item containers of an ItemsControl. + + + The type of the item containers. + + The ItemsControl. + The items and item containers of an ItemsControl. + + is null. + + + + + Returns a value indicating whether an item can be added to an + ItemsControl. + + The ItemsControl instance. + The item to be added. + A value Indicating whether an item can be added to an + ItemsControl. + + + + Returns a value indicating whether an item can be removed from the + ItemsControl. + + The items control. + A value indicating whether an item can be removed from the + ItemsControl. + + + + Inserts an item into an ItemsControl. + + The ItemsControl instance. + The index at which to insert the item. + The item to be inserted. + + + + Adds an item to an ItemsControl. + + The ItemsControl instance. + The item to be inserted. + + + + Removes an item from an ItemsControl. + + The ItemsControl instance. + The item to be removed. + + + + Removes an item from an ItemsControl. + + The ItemsControl instance. + The index of the item to be removed. + + + + Gets the number of items in an ItemsControl. + + The ItemsControl instance. + The number of items in the ItemsControl. + + + + Represents a control that applies a layout transformation to its Content. + + Preview + + + + Name of the TransformRoot template part. + + + + + Name of the Presenter template part. + + + + + Acceptable difference between two doubles. + + + + + Number of decimals to round the Matrix to. + + + + + Identifies the LayoutTransform DependencyProperty. + + + + + Root element for performing transformations. + + + + + ContentPresenter element for displaying the content. + + + + + RenderTransform/MatrixTransform applied to _transformRoot. + + + + + Transformation matrix corresponding to _matrixTransform. + + + + + Actual DesiredSize of Child element (the value it returned from its MeasureOverride method). + + + + + Initializes a new instance of the LayoutTransformer class. + + + + + Builds the visual tree for the LayoutTransformer control when a new + template is applied. + + + + + Handles changes to the Transform DependencyProperty. + + Source of the change. + Event args. + + + + Applies the layout transform on the LayoutTransformer control content. + + + Only used in advanced scenarios (like animating the LayoutTransform). + Should be used to notify the LayoutTransformer control that some aspect + of its Transform property has changed. + + + + + Processes the Transform to determine the corresponding Matrix. + + Transform to process. + + + + Walks the Transform(Group) and returns the corresponding Matrix. + + Transform(Group) to walk. + Computed Matrix. + + + + Provides the behavior for the "Measure" pass of layout. + + The available size that this element can give to child elements. + The size that this element determines it needs during layout, based on its calculations of child element sizes. + + + + Provides the behavior for the "Arrange" pass of layout. + + The final area within the parent that this element should use to arrange itself and its children. + The actual size used. + + Using the WPF paramater name finalSize instead of Silverlight's finalSize for clarity + + + + + Compute the largest usable size (greatest area) after applying the transformation to the specified bounds. + + Arrange bounds. + Largest Size possible. + + + + Returns true if Size a is smaller than Size b in either dimension. + + Second Size. + First Size. + True if Size a is smaller than Size b in either dimension. + + + + Rounds the non-offset elements of a Matrix to avoid issues due to floating point imprecision. + + Matrix to round. + Number of decimal places to round to. + Rounded Matrix. + + + + Implements WPF's Rect.Transform on Silverlight. + + Rect to transform. + Matrix to transform with. + Bounding box of transformed Rect. + + + + Implements WPF's Matrix.Multiply on Silverlight. + + First matrix. + Second matrix. + Multiplication result. + + + + Implements WPF's Matrix.HasInverse on Silverlight. + + Matrix to check for inverse. + True if the Matrix has an inverse. + + + + Outputs diagnostic info if DIAGNOSTICWRITELINE is defined. + + Diagnostic message. + + + + Gets or sets the layout transform to apply on the LayoutTransformer + control content. + + + Corresponds to UIElement.LayoutTransform. + + + + + Gets the child element being transformed. + + + + + The TagEditor control provides a brief user interface allowing for the + selection of a set of tests, used to filter the test run. + + + + + Key used to lookup the TagHistory site setting. + + + + + Number of seconds to wait before running the test. + + + + + Initializes a new instance of the TagEditor type. + + The tag expression to use. + + + + Initializes a new instance of the TagEditor type. + + + + + Fires the Complete event. + + The event arguments. + + + + Handle touch of the button to display the text box. + + Tag button. + Event arguments. + + + + Handle selection of a tag button. + + Tag button. + Event arguments. + + + + Handle changes to the Tag text. + + Tag TextBox. + Event arguments. + + + + Handle clicks to the Run button. + + Run Button. + Event arguments. + + + + Handle timer ticks. + + The timer. + Event arguments. + + + + Stop the timer. + + + + + Run the unit tests. + + + + + Cancels the selection of a tag expression. + + The source object. + The event data. + + + + InitializeComponent + + + + + Gets or sets the timer used to automatically run tests if no tag is + entered. + + + + + Gets or sets the number of seconds already waited. + + + + + Gets or sets the tag history. + + + + + An event that indicates that the tag editor is complete. This can be + in response to many actions: the user entering a tag expression, the + time expiring and the default being selected, or the selection being + canceled. + + + + + Mobile test exceptions page. + + + + + Initializes a new instance of the page. + + + + + InitializeComponent + + + + + Mobile test method details page. + + + + + Initializes a new instance of the page. + + + + + InitializeComponent + + + + + A user control designed for mobile platforms. The control should be used + as the root visual for a Silverlight plugin if developers would like to + use the advanced TestSurface functionality. + + + + + An interface for any test page instances to implement. + + + + + Gets the test panel instance. + + + + + An interface for any test page instances to implement. + + + + + Requests navigation back a page. + + A value indicating whether the operation was successful. + + + + Contains the slide manager for the primitive user interface + navigation system. + + + + + Backing field for the unit test harness instance. + + + + + Backing field for the startup timer. + + + + + Backing field for the model manager. + + + + + Initializes a new instance of the MobileTestPage class. + + + + + Initializes the MobileTestPage object. + + The test harness instance. + + + + Waits for the Settings to become available, either by the service or + system setting the instance property. + + The source timer. + The event arguments. + + + + Creates a new slide and inserts it into the slide manager, plus + visual tree. + + The text header to use. + The content to inside the slide. + Returns the new Slide instance. + + + + Handles the completion event on the tag expression editor to begin + the test run using the user-provided settings. + + The source object. + The event arguments. + + + + Starts the test run. + + + + + Handles the test harness complete event, to display results. + + The source object. + The event data. + + + + Handles the movement back to the test assemblies list. + + The source object. + The event arguments. + + + + Handles the movement back to the test classes list. + + The source object. + The event arguments. + + + + Handles the movement back to the test methods list. + + The source object. + The event arguments. + + + + Handles the selection of a test assembly. + + The source object. + The event arguments. + + + + Handles the selection of a test class. + + The source object. + The event arguments. + + + + Handles the selection of a test method. + + The source object. + The event arguments. + + + + Requests navigation back a page. + + A value indicating whether the operation was successful. + + + + InitializeComponent + + + + + Gets the test surface, a dynamic Panel that removes its children + elements after each test completes. + + + + + Gets the unit test harness instance. + + + + + A derived TreeView control specific to the application needs for + showing results in real-time. + + + + + Represents a control that displays hierarchical data in a tree structure + that has items that can expand and collapse. + + Stable + + + + The IUpdateVisualState interface is used to provide the + InteractionHelper with access to the type's UpdateVisualState method. + + + + + Update the visual state of the control. + + + A value indicating whether to automatically generate transitions to + the new state, or instantly transition to the new state. + + + + + A value indicating whether a read-only dependency property change + handler should allow the value to be set. This is used to ensure + that read-only properties cannot be changed via SetValue, etc. + + + + + A value indicating whether a dependency property change handler + should ignore the next change notification. This is used to reset + the value of properties without performing any of the actions in + their change handlers. + + + + + Identifies the + + dependency property. + + + The identifier for the + + property. + + + + + SelectedItemProperty property changed handler. + + TreeView that changed its SelectedItem. + Event arguments. + + + + Identifies the + + dependency property. + + + The identifier for the + + dependency property. + + + + + SelectedValueProperty property changed handler. + + TreeView that changed its SelectedValue. + Event arguments. + + + + Identifies the + + dependency property. + + + The identifier for the + + dependency property. + + + + + SelectedValuePathProperty property changed handler. + + TreeView that changed its SelectedValuePath. + Event arguments. + + + + Identifies the + + dependency property. + + + The identifier for the + + dependency property. + + + + + ItemContainerStyleProperty property changed handler. + + + TreeView that changed its ItemContainerStyle. + + Event arguments. + + + + Initializes a new instance of the + class. + + + + + Returns a + + for use by the Silverlight automation infrastructure. + + + A + + for the control. + + + + + Builds the visual tree for the + control when a new + control template is applied. + + + + + Update the visual state of the TreeView. + + + A value indicating whether to use transitions when updating the + visual state. + + + + + Creates a to + display content. + + + A to use as a + container for content. + + + + + Determines whether the specified item is a + , which is the + default container for items in the + control. + + The object to evaluate. + + True if the item is a + ; otherwise, + false. + + + + + Prepares the container element to display the specified item. + + + The container element used to display the specified item. + + The item to display. + + + + Removes all templates, styles, and bindings for the object displayed + as a . + + + The element to + clear. + + + The item that is contained in the + . + + + + + Makes adjustments to the + control when the + value of the + property + changes. + + + A + + that contains data about the change. + + + + + Select any descendents when adding new TreeViewItems to a TreeView. + + The added item. + + + + Propagate OnKeyDown messages from the root TreeViewItems to their + TreeView. + + Event arguments. + + Because Silverlight's ScrollViewer swallows many useful key events + (which it can ignore on WPF if you override HandlesScrolling or use + an internal only variable in Silverlight), the root TreeViewItems + explicitly propagate KeyDown events to their parent TreeView. + + + + + Provides handling for the + event when a key + is pressed while the control has focus. + + + A that contains + the event data. + + + is null. + + + + + Handle keys related to scrolling. + + The key to handle. + A value indicating whether the key was handled. + + + + Handle scrolling a page up or down. + + + A value indicating whether the page should be scrolled up. + + + A value indicating whether the scroll was handled. + + + + + Provides handling for the KeyUp event. + + Event arguments. + + + + Provides handling for the MouseEnter event. + + Event arguments. + + + + Provides handling for the MouseLeave event. + + Event arguments. + + + + Provides handling for the MouseMove event. + + Event arguments. + + + + Provides handling for the + + event. + + + A that + contains the event data. + + + + + Provides handling for the MouseLeftButtonUp event. + + Event arguments. + + + + Provides handling for mouse button events. + + A value indicating whether the event was handled. + + + + Provides handling for the GotFocus event. + + Event arguments. + + + + Provides handling for the LostFocus event. + + Event arguments. + + + + Raises the + + event when the + + property value changes. + + + A + that contains the event data. + + + + + Change whether a TreeViewItem is selected. + + + Item whose selection is changing. + + + Container of the item whose selection is changing. + + + A value indicating whether the TreeViewItem is selected. + + + + + Update the selected value of the of the TreeView based on the value + of the currently selected TreeViewItem and the SelectedValuePath. + + + Value of the currently selected TreeViewItem. + + + + + Select the first item of the TreeView. + + + + + Focus the first item in the TreeView. + + A value indicating whether the item was focused. + + + + Focus the last item in the TreeView. + + A value indicating whether the item was focused. + + + + Gets the selected item in a + . + + + The currently selected item or null if no item is selected. The + default value is null. + + + + + Gets the value of the + + property that is specified by the + + property. + + + The value of the + + property that is specified by the + + property, or null if no item is selected. The default value is null. + + + + + Gets or sets the property path that is used to get the + + property of the + + property in a . + + + The property path that is used to get the + + property of the + + property in a . The + default value is . + + + + + Gets or sets the that is + applied to the container element generated for each item. + + + The applied to the container + element that contains each item. + + + + + Gets the currently selected TreeViewItem container. + + + + + Gets a value indicating whether the currently selected TreeViewItem + container is properly hooked up to the TreeView. + + + + + Gets or sets a value indicating whether the selected item is + currently being changed. + + + + + Gets the ItemsControlHelper that is associated with this control. + + + + + Gets the helper that provides all of the standard + interaction functionality. + + + + + Gets a value indicating whether the Control key is currently + pressed. + + + + + Gets a value indicating whether the Shift key is currently pressed. + + + + + Occurs when the value of the + + property changes. + + + + + Overrides the item to allow for simple binding to the expanded + property on the item. + + Returns a new container for an item. + + + + This method returns the container with an expanded binding. + + Returns the container with an expanded binding. + + + + A derived TreeViewItem for IsExpanded binding. + + + + + Provides a selectable item for the + control. + + Stable + + + + Represents a control that contains a collection of items and a header. + + Stable + + + + Identifies the + + dependency property. + + + The identifier for the + + dependency property. + + + Note: WPF defines this property via a call to AddOwner of + HeaderedContentControl's HeaderProperty. + + + + + HeaderProperty property changed handler. + + + HeaderedItemsControl that changed its Header. + + Event arguments. + + + + Identifies the + + dependency property. + + + The identifier for the + + dependency property. + + + Note: WPF defines this property via a call to AddOwner of + HeaderedContentControl's HeaderTemplateProperty. + + + + + HeaderTemplateProperty property changed handler. + + + HeaderedItemsControl that changed its HeaderTemplate. + + Event arguments. + + + + Identifies the + + dependency property. + + + The identifier for the + + dependency property. + + + + + ItemContainerStyleProperty property changed handler. + + + HeaderedItemsControl that changed its ItemContainerStyle. + + Event arguments. + + + + Initializes a new instance of the + class. + + + + + Called when the value of the + + property changes. + + + The old value of the + + property. + + + The new value of the + + property. + + + + + Called when the value of the + + property changes. + + + The old value of the + + property. + + + The new value of the + + property. + + + + + Builds the visual tree for the + when a + new template is applied. + + + + + Prepares the specified element to display the specified item. + + + The container element used to display the specified item. + + The content to display. + + + + Prepares the specified container to display the specified item. + + + Container element used to display the specified item. + + Specified item to display. + The parent ItemsControl. + + The ItemContainerStyle for the parent ItemsControl. + + + + + Prepare a PrepareHeaderedItemsControlContainer container for an + item. + + Container to prepare. + Item to be placed in the container. + The parent ItemsControl. + + The ItemContainerStyle for the parent ItemsControl. + + + + + Check whether a control has the default value for a property. + + The control to check. + The property to check. + + True if the property has the default value; false otherwise. + + + + + Gets or sets a value indicating whether the Header property has been + set to the item of an ItemsControl. + + + + + Gets or sets the item that labels the control. + + + The item that labels the control. The default value is null. + + + + + Gets or sets a data template that is used to display the contents of + the control's header. + + + Gets or sets a data template that is used to display the contents of + the control's header. The default is null. + + + + + Gets or sets the that is + applied to the container element generated for each item. + + + The that is applied to the + container element generated for each item. The default is null. + + + + + Gets the ItemsControlHelper that is associated with this control. + + + + + The name of the ExpanderButton template part. + + + + + The name of the Header template part. + + + + + The ExpanderButton template part is used to expand and collapse the + TreeViewItem. + + + + + The Header template part is used to distinguish the bound Header + content of the TreeViewItem. + + + + + The ExpansionStates visual state group. + + + + + A value indicating whether a read-only dependency property change + handler should allow the value to be set. This is used to ensure + that read-only properties cannot be changed via SetValue, etc. + + + + + Identifies the + + dependency property. + + + The identifier for the + + dependency property. + + + + + HasItemsProperty property changed handler. + + TreeViewItem that changed its HasItems. + Event arguments. + + + + Identifies the + + dependency property. + + + The identifier for the + + dependency property. + + + + + IsExpandedProperty property changed handler. + + TreeViewItem that changed its IsExpanded. + Event arguments. + + + + Identifies the + + dependency property. + + + The identifier for the + + dependency property. + + + + + IsSelectedProperty property changed handler. + + TreeViewItem that changed its IsSelected. + Event arguments. + + + + Identifies the + + dependency property. + + + The identifier for the + + dependency property. + + + + + IsSelectionActiveProperty property changed handler. + + TreeViewItem that changed its IsSelectionActive. + Event arguments. + + + + A reference to the parent ItemsControl of a TreeViewItem. + + + + + Initializes a new instance of the + class. + + + + + Returns a + + for use by the Silverlight automation infrastructure. + + + A + + object for the + . + + + + + Builds the visual tree for the + control when a + new control template is applied. + + + + + Provides handling for the ExpansionStates CurrentChanged event. + + The ExpansionState VisualStateGroup. + Event arguments. + + + + Scroll the TreeViewItem into view. + + + + + Update the visual state of the control. + + + A value indicating whether to automatically generate transitions to + the new state, or instantly transition to the new state. + + + + + Update the visual state of the control. + + + A value indicating whether to automatically generate transitions to + the new state, or instantly transition to the new state. + + + + + Creates a to + display content. + + + A to use as a + container for content. + + + + + Determines whether an object is a + . + + The object to evaluate. + + True if is a + ; otherwise, + false. + + + + + Prepares the specified container element to display the specified + item. + + + Container element used to display the specified item. + + The item to display. + + + + Removes all templates, styles, and bindings for the object displayed + as a . + + + The element to + clear. + + + The item that is contained in the + . + + + + + Makes adjustments to the + when the value + of the + property changes. + + + A + + that contains data about the change. + + + + + Raise a RoutedEvent. + + Event handler. + Event arguments. + + + + Raises an + event + when the + + property changes from false to true. + + + A that contains the + event data. + + + + + Raises a + + event when the + + property changes from true to false. + + + A that contains the + event data. + + + + + Handle changes to the IsExpanded property. + + Event handler. + Event arguments. + + + + Raises the + event + when the + + property changes from false to true. + + + A that contains the + event data. + + + + + Raises the + + event when the + + property changes from true to false. + + + A that contains the + event data. + + + + + Provides handling for the + event. + + + A that contains the + event data. + + + + + Provides handling for the + event. + + + A that contains the + event data. + + + + + Handle the ExpanderButton's GotFocus event. + + The ExpanderButton. + Event Arguments. + + + + Provides handling for the + event. + + + A that contains + the event data. + + + + + Provides handling for the + event. + + + A that contains + the event data. + + + + + Provides handling for the Header's MouseLeftButtonDown event. + + The Header template part. + Event arguments. + + + + Provides handling for the ExpanderButton's Click event. + + The ExpanderButton. + Event Arguments. + + + + Provides handling for the + event. + + + A that + contains the event data. + + + + + Provides handling for the + event. + + + A that + contains the event data. + + + + + Provides handling for the + event when the + has focus. + + + A that contains + the event data. + + + + + Try moving the focus down from the selected item. + + + A value indicating whether the focus was successfully moved. + + + + + Provides handling for the + event. + + + A that contains + the event data. + + + + + Try moving the focus up from the selected item. + + + A value indicating whether the focus was successfully moved. + + + + + Handle scrolling a page up or down. + + + A value indicating whether the page should be scrolled up. + + The ScrollViewer being scrolled. + The height of the viewport. + The top of item to start from. + The bottom of the item to start from. + The height of this item. + + A value indicating whether the scroll was handled. + + + + + Calculate the distance between this TreeViewItem and the item being + paged from. + + + A value indicating whether the page should be scrolled up. + + The element being paged from. + The ScrollViewer being scrolled. + The top of item to start from. + The bottom of the item to start from. + + The distance between the top/bottom of one item to the other. + + + A value indicating whether the scroll was handled. + + + + + Change the selected status of the TreeViewItem. + + + A value indicating whether the TreeViewItem is selected. + + + + + Update the ancestors of this item when it changes selection. + + + A value indicating whether the item is selected. + + + Unselection updates need to occur before selection updates because + the old and new selected items may share a partial path. + + + + + Determine whether the TreeViewItem should be allowed to handle a key + event. + + + A value indicating whether the key event should be handled. + + + + + Navigate the focus to the next TreeViewItem below this item. + + + A value indicating whether the focus was navigated. + + + + + Navigate the focus to the very last TreeViewItem descendent of the + this item. + + + A value indicating whether the focus was navigated. + + + + + Find the next focusable TreeViewItem below this item. + + + A value indicating whether the item should recurse into its child + items when searching for the next focusable TreeViewItem. + + The next focusable TreeViewItem below this item. + + + + Find the last focusable TreeViewItem contained by this item. + + + The last focusable TreeViewItem contained by this item. + + + + + Find the previous focusable TreeViewItem above this item. + + + The previous focusable TreeViewItem above this item. + + + + + Gets or sets the ExpanderButton template part is used to expand and + collapse the TreeViewItem. + + + + + Gets the Header template part that is used to distinguish the bound + Header content of the TreeViewItem. + + + + + Gets or sets the ExpansionStates visual state group. + + + + + Gets or sets a value indicating whether a dependency property change + handler should ignore the next change notification. This is used to + reset the value of properties without performing any of the actions + in their change handlers. + + + + + Gets a value indicating whether this + contains + items. + + + True if this + contains items; otherwise, false. The default is false. + + + + + Gets or sets a value indicating whether the + + contained by this + are expanded + or collapsed. + + + True to indicate the contents of the + + collection are expanded; false to indicate the items are collapsed. + The default is false. + + + + + Gets or sets a value indicating whether this + is selected. + + + True if this + is selected; otherwise, false. The default is false. + + + + + Gets a value indicating whether the + has focus. + + + True if this + has focus; otherwise, false. The default is false. + + + + + Gets the helper that provides all of the standard + interaction functionality. + + + + + Gets or sets a value indicating whether the TreeView's currently + selected item is a descendent of this TreeViewItem. + + + + + Gets or sets a value indicating whether the TreeViewItem should + ignore the next GotFocus event it receives because it has already + been handled by one of its children. + + + + + Gets or sets a value indicating whether checking ContainsSelection + should actually perform the update notifications because the item + was selected before it was in the visual tree. + + + + + Gets or sets a value indicating whether a user initiated action + caused the IsExpanded property to be set. + + + + + Gets or sets a reference to the parent ItemsControl of a + TreeViewItem. + + + + + Gets a reference to the parent TreeViewItem of this TreeViewItem. + + + + + Gets a reference to the parent TreeView of the TreeViewItem. + + + + + Gets a value indicating whether this TreeViewItem is a root of the + TreeView. + + + + + Gets a value indicating whether the TreeViewItem can expand when it + receives appropriate user input. + + + + + Occurs when the + + property changes from true to false. + + + + + Occurs when the + + property changes from false to true. + + + + + Occurs when the + + property of a + changes from false to true. + + + + + Occurs when the + + property of a + changes from true to false. + + + + + Overrides the item to allow for simple binding to the expanded + property on the item. + + Returns a new container for an item. + + + + Overrides the key down event to allow toggling the space. + + The key event arguments data. + + + + A specialized content control that contains a fixed header, a standard + header content property, plus content. It is designed specifically for + a "slide-based" user interface for simple user interfaces. + + + + + The visual state group name for slide position. + + + + + The visual state name for left position. + + + + + The visual state name for right position. + + + + + The normal visual state name for position. + + + + + The content template part name. + + + + + The header template part name. + + + + + The fixed header template name. + + + + + The manager of the slide and its siblings. + + + + + Identifies the Header dependency property. + + + + + Identifies the FixedHeader dependency property. + + + + + Identifies the Position dependency property. + + + + + PositionProperty property changed handler. + + Slide that changed its Position. + Event arguments. + + + + Initializes a new instance of the Slide class. + + + + + Remove the slide from the parent manager. + + + + + Locate template parts and assign instances to fields during template + application. + + + + + Fires the slide changed event. + + + + + Fires the current state changed event. + + The source object. + The event arguments. + + + + Helps debugging by providing information about the slide name. + + Returns the name of the slide. + + + + Updates the visual state. + + A value indicating whether to use + visual transitions for the state change. + The slide position to use. + + + + Event fired when the current slide changes. + + + + + Gets or sets the primary header content. + + + + + Gets or sets the fixed header content. + + + + + Gets or sets the position of the slide. + + + + + Gets or sets the slide manager for the slide. + + + + + A helper class to managing sets of slides. + + + + + Initializes a new instance of the SlideManager class. + + + + + Stores the linked list node for the current slide. + + + + + Backing field for the set of slides. + + + + + Adds a slide or an array of slides to the managed slide set. + + The slides to manage. + + + + Initializes the position of the slide based on location. + + The slide instance. + A property indicating whether the slide is the + first to be managed. + + + + Manages a new slide, inserting it after an existing slide node. + + The node to insert after. + The new slide instance. + Returns the linked list node that is inserted. + + + + Inserts a slide as the first in the linked list. + + The new slide instance. + Returns the linked list node. + + + + Insert a slide after a provided linked list node. + + The node to insert after. + The new slide to insert. + Returns the new linked list node. + + + + Remove a slide from management. + + The slide instance. + + + + Move to the previous slide. + + + + + Move to the next slide. + + + + + Moves to a specific slide, moving the others to the appropriate + direction on screen. + + The slide to move to. + + + + Move in a direction. + + A value indicating whether the direction to + move is forward or not. + + + + Gets the current slide instance. + + + + + Indicates the position that the slide should have. + + + + + Normal position, centered on the screen. + + + + + To the left of the screen. + + + + + To the right of the screen. + + + + + The TagEditor control provides a brief user interface allowing for the + selection of a set of tests, used to filter the test run. + + + + + Key used to lookup the TagHistory site setting. + + + + + Key used to lookup whether the last run used tag expressions. + + + + + Number of seconds to wait before running the test. + + + + + Backing field for the last run used value. + + + + + Initializes a new instance of the TagEditor type. Also includes a + set of sample tags for display to the end user. + + The tag expression to use. + Sample tags to display. + + + + Initializes a new instance of the TagEditor type. + + The tag expression to use. + + + + Initializes a new instance of the TagEditor type. + + + + + Handles the key down event. + + The key event arguments. + + + + Fires the Complete event. + + The event arguments. + + + + Creates a new button. + + The button content. + Returns a new Button instance. + + + + Handle selection of a tag button. + + Tag button. + Event arguments. + + + + Handle changes to the Tag text. + + Tag TextBox. + Event arguments. + + + + Handle clicks to the Run button. + + Run Button. + Event arguments. + + + + Handle timer ticks. + + The timer. + Event arguments. + + + + Stop the timer. + + + + + Run the unit tests. + + + + + Cancels the selection of a tag expression. + + The source object. + The event data. + + + + InitializeComponent + + + + + Gets or sets the timer used to automatically run tests if no tag is + entered. + + + + + Gets or sets the number of seconds already waited. + + + + + Gets or sets the tag history. + + + + + An event that indicates that the tag editor is complete. This can be + in response to many actions: the user entering a tag expression, the + time expiring and the default being selected, or the selection being + canceled. + + + + + A class for storing event information relating to a user's selected + tag expression for a test run. + + + + + Initializes a new instance of the TagExpression event arguments + class. + + The tag expression. + + + + Gets the tag expression stored in the event arguments. + + + + + Gets a value indicating whether a tag expression has been set. + + + + + Displays information about any exceptions listed in the results. + + + + + Initializes a new instance of the TestExceptionDetails class. + + + + + InitializeComponent + + + + + Details view for test method data. + + + + + Initializes a new instance of the TestMethodDetails class. + + + + + InitializeComponent + + + + + A set of simple time helper methods. + + + + + Returns a human-readable formatting of the time different between + two DateTime instances. + + The starting time. + The finishing time. + Returns a human-readable string. + + + + Returns a human-readable formatting of the time different between + two DateTime instances. + + The time span instance. + Returns a human-readable string. + + + + A plural 's' as the suffix, when not equal to one. + + The string value. + The number to check. + Returns an empty string or the English plural 's'. + + + + Provides the necessary infrastructure to enable drawing connecting + lines between the TreeViewItems in a TreeView. + + Experimental + + + + Gets the value of the ConnectingLineInfo attached property for a + specified TreeViewItem. + + + The TreeViewItem from which the property value is read. + + + The ConnectingLineInfo property value for the TreeViewItem. + + + + + Identifies the ConnectingLineInfo dependency property. + + + + + Gets the value of the IsVerticalConnectingLineOf attached property + for a specified Line. + + The Line from which the property value is read. + The IsVerticalConnectingLineOf property value for the Line. + + + + Sets the value of the IsVerticalConnectingLineOf attached property to a specified Line. + + The Line to which the attached property is written. + The needed IsVerticalConnectingLineOf value. + + + + Identifies the IsVerticalConnectingLineOf dependency property. + + + + + IsVerticalConnectingLineOfProperty property changed handler. + + + Line that changed its IsVerticalConnectingLineOf TreeViewItem. + + Event arguments. + + + + Gets the value of the IsHorizontalConnectingLineOf attached property + for a specified Line. + + + The Line from which the property value is read. + + + The IsHorizontalConnectingLineOf property value for the Line. + + + + + Sets the value of the IsHorizontalConnectingLineOf attached property + to a specified Line. + + + The Line to which the attached property is written. + + + The needed IsHorizontalConnectingLineOf value. + + + + + Identifies the IsHorizontalConnectingLineOf dependency property. + + + + + IsHorizontalConnectingLineOfProperty property changed handler. + + + Line that changed its IsHorizontalConnectingLineOf TreeViewItem. + + Event arguments. + + + + Gets the value of the IsExpanderButtonOf attached property for a + specified ToggleButton. + + + The ToggleButton from which the property value is read. + + + The IsExpanderButtonOf property value for the ToggleButton. + + + + + Sets the value of the IsExpanderButtonOf attached property to a + specified ToggleButton. + + + The ToggleButton to which the attached property is written. + + The needed IsExpanderButtonOf value. + + + + Identifies the IsExpanderButtonOf dependency property. + + + + + IsExpanderButtonOfProperty property changed handler. + + + ToggleButton that changed its IsExpanderButtonOf TreeViewItem. + + Event arguments. + + + + Gets the value of the IsHeaderOf attached property for a specified + FrameworkElement. + + + The FrameworkElement from which the property value is read. + + + The IsHeaderOf property value for the FrameworkElement. + + + + + Sets the value of the IsHeaderOf attached property to a specified + FrameworkElement. + + + The FrameworkElement to which the attached property is written. + + The needed IsHeaderOf value. + + + + Identifies the IsHeaderOf dependency property. + + + + + IsHeaderOfProperty property changed handler. + + + FrameworkElement that changed its IsHeaderOf TreeViewItem. + + Event arguments. + + + + Provides useful extensions to TreeView and TreeViewItem instances. + + Experimental + + + + Get the parent ItemsControl of an element. + + The element. + + The parent ItemsControl of an element, or null if not found. + + + + + Get the ancestor ItemsControls of an element. + + The element. + + The ancestor ItemsControls of an element. + + + + + Get the parent TreeViewItem of a TreeViewItem. + + The TreeViewItem. + + The parent TreeViewItem if found, otherwise null. + + + is null. + + + + + Get the parent TreeView of a TreeViewItem. + + The TreeViewItem. + The parent TreeView if found, otherwise null. + + is null. + + + + + Get the TreeViewItem containers of a TreeView. + + The TreeView. + The TreeViewItem containers of a TreeView. + + is null. + + + + + Get the child TreeViewItem containers of a TreeViewItem. + + The TreeViewItem. + + The child TreeViewItem containers of a TreeViewItem. + + + is null. + + + + + Get the items and TreeViewItem containers of a TreeView. + + The TreeView. + + The items and TreeViewItem containers of a TreeView. + + + is null. + + + + + Get the items and TreeViewItem containers of a TreeViewItem. + + The TreeViewItem. + + The items and TreeViewItem containers of a TreeViewItem. + + + is null. + + + + + Get the TreeViewItem containers of a TreeView. + + The TreeView. + The TreeViewItem containers of a TreeView. + + is null. + + + + + Get the descendant TreeViewItem containers of a TreeViewItem. + + The TreeViewItem. + + The descendant TreeViewItem containers of a TreeViewItem. + + + is null. + + + + + Get the descendant items and TreeViewItem containers of a TreeView. + + The TreeView. + + The descendant items and TreeViewItem containers of a TreeView. + + + is null. + + + + + Get the descendant items and TreeViewItem containers of a + TreeViewItem. + + The TreeViewItem. + + The descendant items and TreeViewItem containers of a TreeViewItem. + + + is null. + + + + + Get the items and TreeViewItem containers of a TreeView or + TreeViewItem. + + The TreeView or TreeViewItem. + + The items and TreeViewItem containers of a TreeView or TreeViewItem. + + + + + Get the sibling items and containers of the item. + + The TreeViewItem. + The sibling items and containers of the item. + + + + Get the TreeViewItems already created that are used to represent the + given item. + + The TreeView. + The item being represented. + + A sequence of TreeViewItems that represent the given item, or an + empty sequence if none were found. + + + is null. + + + + + Get the TreeViewItem already created that is used to represent the + given item. + + The TreeView. + The item being represented. + + The TreeViewItems that represents the given item, or null if no + container was found. + + + If multiple TreeViewItems represent the same item, the first item + found via a breadth-first search will be used. + + + is null. + + + + + Gets a path of items and TreeViewItem containers from the + TreeViewItem to the root of the TreeView. + + The TreeViewItem. + + A path of items and TreeViewItem containers from the TreeViewItem to + the root of the TreeView. + + + is null. + + + + + Gets a path of items and TreeViewItem containers from the + TreeViewItem to the root of the TreeView. + + The TreeViewItem. + + A path of items and TreeViewItem containers from the TreeViewItem to + the root of the TreeView. + + + + + Get the item wrapped by this container. + + The TreeViewItem. + + The item wrapped by the container, or null if not found. + + + is null. + + + + + Get the item of the parent container for a specified + . + + + The TreeView containing the . + + The child item. + + The item of the parent container for the specified + , or null if not found. + + + + + Gets a value indicating whether the TreeViewItem is a root of its + TreeView. + + The TreeViewItem. + + A value indicating whether the TreeViewItem is a root of its + TreeView. + + + is null. + + + + + Gets a value indicating whether the TreeViewItem is a leaf in its + TreeView. + + The TreeViewItem. + + A value indicating whether the TreeViewItem is a leaf in its + TreeView. + + + is null. + + + + + Gets the depth of a TreeViewItem in its TreeView (using a zero-based + index). + + The TreeViewItem. + + The depth of a TreeViewItem in its TreeView (using a zero-based + index). + + + is null. + + + is not in a TreeView. + + + + + Get the selected TreeViewItem in a TreeView. + + The TreeView. + + The selected TreeViewItem, or null if no selected item found. + + + is null. + + + + + Sets the selected TreeViewItem of a TreeView. + + The TreeView. + The TreeViewItem to select. + + is null. + + + + + Clear the selection of the TreeView. + + The TreeView. + + is null. + + + + + Select an item in the TreeView. + + The TreeView. + The item to select. + + A value indicating whether the item was successfully set as the + TreeView's SelectedItem. + + + is null. + + + + + Gets the path to the TreeView's selected item. + + The TreeView. + The path to the TreeView's selected item. + + is null. + + + + + Recursively expand or collapse the TreeViewItem and all of its + descendants. + + The TreeViewItem. + + A value indicating whether to expand or collapse. + + + The number of levels that have already been collapsed or expanded. + This is used in conjunction with the optional maximumDepth to only + expand a specified number of layers. + + + An optional depth that defines the number of layers to expand or + collapse. + + + + + Expand or collapse all of the descendants of the TreeView. + + The TreeView. + + A value indicating whether to expand or collapse. + + + An optional depth that defines the number of layers to expand or + collapse. + + + + + Expand all of the items in a TreeView. + + The TreeView. + + is null. + + + + + Collapse all of the items in a TreeView. + + The TreeView. + + is null. + + + + + Expand a specified number of layers in a TreeView. + + The TreeView. + The number of layers to expand. + + is null. + + + + + Expand a path from the given item to the root of it's TreeView. + + The TreeViewItem. + + A value indicating whether to collapse siblings while expanding the + path. This will result in only the path from the item to the root + being expanded. + + + + + Expand a path from the TreeViewItem to the root of the TreeView. + + The TreeViewItem. + + is null. + + + + + Expand the path from the SelectedItem to the root of the TreeView. + + The TreeView. + + is null. + + + + + Collapse all TreeViewItems except those along the path from the + TreeView's SelectedItem to the root of the TreeView. + + The TreeView. + + is null. + + + + + Expand the given path of items starting from the TreeView's root. + + The TreeView. + + The sequence of items corresponding to the path to expand. + + + is null. + + + is null. + + + + + Expand the given path of items starting from the TreeView's root. + + + The type of items provided in . + + The TreeView. + + The sequence of items corresponding to the path to expand. + + + is null. + + + is null. + + + + + Expand the given path of items starting from the TreeView's root. + + + The type of items provided in . + + The TreeView. + + A function that takes a TreeViewItem's item and returns a value to + compare against elements of the given . + The item itself will be used if + is null. + + + The sequence of items corresponding to the path to expand. + + + is null. + + + is null. + + + + + Expand the given path of items starting from the TreeView's root. + + + The type of items provided in . + + The TreeView. + + A function that takes a TreeViewItem's item and returns a value to + compare against elements of the given . + The item itself will be used if + is null. + + + The sequence of items corresponding to the path to expand. + + + is null. + + + is null. + + + + + Gets the value of the IsChecked attached property for a specified + TreeViewItem. + + + The TreeViewItem from which the property value is read. + + + The IsChecked property value for the TreeViewItem. + + + + + Sets the value of the IsChecked attached property to a specified + TreeViewItem. + + + The TreeViewItem to which the attached property is written. + + The needed IsChecked value. + + + + Identifies the IsChecked dependency property. + + + + + IsCheckedProperty property changed handler. + + The TreeViewItem that changed IsChecked. + Event arguments. + + + + Gets the value of the AssociatedCheckBox attached property for a + specified TreeViewItem. + + + The TreeViewItem from which the property value is read. + + + The AssociatedCheckBox property value for the TreeViewItem. + + + + + Sets the value of the AssociatedCheckBox attached property to a + specified TreeViewItem. + + + The TreeViewItem to which the attached property is written. + + The needed AssociatedCheckBox value. + + + + Identifies the AssociatedCheckBox dependency property. + + + + + AssociatedCheckBoxProperty property changed handler. + + + The TreeViewItem that changed its AssociatedCheckBox. + + Event arguments. + + + + Get the sequence of items and containers with their IsChecked + property set to True. + + The TreeView. + + The sequence of items and containers with their IsChecked property + set to True. + + + is null. + + + + + Get the sequence of items and containers with their IsChecked + property set to True. + + The TreeView. + + A value indicating whether to include TreeViewItems with an + indeterminate IsChecked value. + + + The sequence of items and containers with their IsChecked property + set to True or also set to null if indeterminate values are + included. + + + is null. + + + + + Gets or sets a value indicating whether recursive calls to + OnIsCheckedPropertyChanged should ignore their notifications or + process them accordingly. + + + + + Gets or sets a value indicating whether recursive calls to + OnIsCheckedPropertyChanged should update their children when their + IsChecked value has changed. + + + + + Represents a CheckBox whose value is associated with the + TreeViewExtensions.IsChecked attached property of TreeViewItems. + + Experimental + + + + The parent TreeViewItem of the CheckBox. + + + + + Initializes a new instance of the TreeViewItemCheckBox class. + + + + + Associate the parent TreeViewItem with the CheckBox. + + + + + Update the TreeViewItem's IsChecked property when this IsChecked + property is changed. + + The CheckBox. + Event arguments. + + + + Gets the parent TreeViewItem of the CheckBox. + + + + + Represents the necessary information to draw connecting lines in a + TreeViewItem. + + Experimental + + + + Initializes a new instance of the TreeViewItemConnectingLineInfo + class. + + The TreeViewItem. + + + + Position the connecting lines in the TreeViewItem. + + + + + Position the vertical connecting line in the TreeViewItem. + + + + + Gets the TreeViewItem. + + + + + Gets or sets the vertical connecting line of the TreeViewItem. + + + + + Gets or sets the horizontal connecting line of the TreeViewItem. + + + + + Gets or sets the expander button of the TreeViewItem. + + + + + Gets or sets the header of the TreeViewItem. + + + + + Used to convert TreeViewItems into a value based on their depth in + the TreeView. + + Experimental + + + + Initializes a new instance of the TreeViewItemIndentationConverter + class. + + + + + Convert a TreeViewItem into a value based on the depth of the item + in the TreeView. + + The TreeViewItem. + + The indentation type to convert to (such as Thickness or double). + + + The number of pixels to indent each level of the TreeView. A + default value of 15.0 will be used if no parameter is provided. + + + The culture used to convert the TreeViewItem. + + + A value based on the depth of the item in the TreeView. + + + + + Wrap the indentation in the desired type. + + + The number of pixels to indent the TreeViewItem. + + + The indentation type to convert to (such as Thickness or double). + + + A value based on the depth of the item in the TreeView. + + + + + Convert an indentation back into a TreeViewItem. This always throws + a NotSupportedException. + + The indentation. + The type of the indentation. + + The number of pixels to indent each level of the TreeView. + + + The culture used to convert the TreeViewItem. + + Always throws a NotSupportedException. + + + + A set of simple extension methods for applications. + + + + + Checks whether the application host object is not null. + + The application instance. + Returns a value indicating whether the object is not null. + + + + Checks whether the application host and its source object is not + null. + + The application instance. + Returns a value indicating whether the object is not null. + + + + A value converter for collapsing or showing elements. + + + + + Convert a boolean value to a Visibility value. + + The value instance. + The target parameter. + ConverterParameter is of type Visibility. + The culture parameter. + Returns the object. + + + + Support two-way databinding of the VisibilityConverter, converting + Visibility to a bool. + + The value instance. + The target parameter. + ConverterParameter is of type Visibility. + The culture parameter. + Returns the object. + + + + Determine the visibility mode based on a converter parameter. This + parameter is of type Visibility,and specifies what visibility value + to return when the boolean value is true. + + The parameter object. + Returns a Visibility value. + + + + Determine whether or not visibility is inverted based on a converter + parameter. When the parameter is specified as Collapsed, that means + that when the boolean value is true, we should return Collapsed, + which is inverted. + + The parameter object. + Returns a value indicating whether the visibility is + inverted. + + + + Visual states helper code. + + + + + Gets the implementation root of the Control. + + The DependencyObject. + + Implements Silverlight's corresponding internal property on Control. + + Returns the implementation root or null. + + + + This method tries to get the named VisualStateGroup for the + dependency object. The provided object's ImplementationRoot will be + looked up in this call. + + The dependency object. + The visual state group's name. + Returns null or the VisualStateGroup object. + + + + Provides useful extensions for working with the visual tree. + + + Since many of these extension methods are declared on types like + DependencyObject high up in the class hierarchy, we've placed them in + the Primitives namespace which is less likely to be imported for normal + scenarios. + + Experimental + + + + Get the visual tree ancestors of an element. + + The element. + The visual tree ancestors of the element. + + is null. + + + + + Get the visual tree ancestors of an element and the element itself. + + The element. + + The visual tree ancestors of an element and the element itself. + + + is null. + + + + + Get the visual tree ancestors of an element and the element itself. + + The element. + + The visual tree ancestors of an element and the element itself. + + + + + Get the visual tree children of an element. + + The element. + The visual tree children of an element. + + is null. + + + + + Get the visual tree children of an element and the element itself. + + The element. + + The visual tree children of an element and the element itself. + + + is null. + + + + + Get the visual tree children of an element and the element itself. + + The element. + + The visual tree children of an element and the element itself. + + + + + Get the visual tree descendants of an element. + + The element. + The visual tree descendants of an element. + + is null. + + + + + Get the visual tree descendants of an element and the element + itself. + + The element. + + The visual tree descendants of an element and the element itself. + + + is null. + + + + + Get the visual tree descendants of an element and the element + itself. + + The element. + + The visual tree descendants of an element and the element itself. + + + + + Get the visual tree siblings of an element. + + The element. + The visual tree siblings of an element. + + is null. + + + + + Get the visual tree siblings of an element and the element itself. + + The element. + + The visual tree siblings of an element and the element itself. + + + is null. + + + + + Get the bounds of an element relative to another element. + + The element. + + The element relative to the other element. + + + The bounds of the element relative to another element, or null if + the elements are not related. + + + is null. + + + is null. + + + + + Perform an action when the element's LayoutUpdated event fires. + + The element. + The action to perform. + + is null. + + + is null. + + + + + Retrieves all the logical children of a framework element using a + breadth-first search. For performance reasons this method manually + manages the stack instead of using recursion. + + The parent framework element. + The logical children of the framework element. + + + + Retrieves all the logical descendents of a framework element using a + breadth-first search. For performance reasons this method manually + manages the stack instead of using recursion. + + The parent framework element. + The logical children of the framework element. + + + + The CodeCoverage class is used to collect code coverage information from + assemblies that have been instrumented to call the Visit function at the + beginning of every basic block. + + + + + A bit array used to track which basic blocks have been executed. + + + + + A counter of the hit blocks. + + + + + Record that a basic block is being executed. + + Id of the basic block. + + + + Get the coverage data serialized as a string for easy transport. + + Previous releases of the framework used a simplistic bit + list, this release updates the coverage reporting endpoint to an + alternate version that ends in base 64. This maintains test runner + compatibility with previous official releases. + Coverage data serialized as a string. + + + + Gets the current number of hit blocks. + + + + + Gets the current size of the blocks counter. This is not actually + the number of hit blocks, but it should return 0 always except + when at least one block is hit. + + + + + Base class for test cases that use special functionality of the + Microsoft.Silverlight.Testing unit test framework. + + Tests that derive from CustomTest in most cases will not be source- or + functionality- compatible with the more advanced desktop Visual Studio + Test Team environment and harnesses. + + + + + Process an exception using the test engine logic for + ExpectedExceptions and logging the exception if needed. + + Exception object. + + + + Gets or sets a value indicating whether global unhandled exceptions + should be intercepted by the test harness. + + + + + Gets or sets the unit test harness instance. Hidden from the VS + browser as test developers should not need to use this property. + + + + + Gets the current test task container. + + The current container for the test's tasks. + + + + Manages the unit test status and model by attaching to the unit test + harness instance. Validates that all key logging can be done without + special hooks inside of the unit test harness implementation. + + + + + The unit test harness instance. + + + + + The test run data. + + + + + Map assembly metadata to data objects. + + + + + Map test class metadata to data objects. + + + + + Map test metadata to data objects. + + + + + Backing field for the last result. + + + + + Backing field for the last failing result. + + + + + Initializes a new instance of the DataManager type. + + The unit test harness instance. + + + + Initializes a new instance of the DataManager. + + The unit test harness instance. + Returns a new instance of a DataManager class. + + + + Connect to unit test harness events for processing and updating the + underlying unit test run model. + + + + + Unhook from the unit test harness events. + + + + + Process the starting of the test run. + + The source object. + The event data. + + + + Process the test class starting event. + + The source object. + The event data. + + + + Process the test class complete event. + + The source object. + The event data. + + + + Process the start of a test method. + + The source object. + The event data. + + + + Process the completion of test methods. + + The source object. + The event data. + + + + Process a result. + + The result data. + + + + Gets or creates the data model object for an assembly. + + The test assembly. + Returns the data object. + + + + Gets or creates the data model object for a test class. + + The test class. + Returns the data object. + + + + Gets or creates the data model object for a test method. + + The test method. + The parent test class data object. + Returns the data object. + + + + Gets the unit test harness instance. + + + + + Gets the unit test model. + + + + + A data object storing the hierarchical results for a test assembly in a + test run. + + + + + A base class for model objects that implement the property + changed interface, to simplify calling the change handlers, + and cache the underlying event argument instances. + + + + + A static set of change argument instances, eventually + storing one argument instance for each property name to + reduce churn at runtime. + + + + + Notify any listeners that the property value has changed. + + The property name. + + + + The property changed event. + + + + + A type that provides a string result report. + + + + + Generates a simple text result report for the metadata. + + Reports a text report. + + + + Initializes a new instance of the TestAssemblyData type. + + The test assembly metadata. + + + + Backing field for the expanded property. + + + + + Backing field for a passed value. + + + + + Backing store for the set of test class. + + + + + Retrieves the results report. + + Returns a string containing the report. + + + + Gets or sets a value indicating whether the item is expanded in + a hierarchical display. + + + + + Gets or sets the checked value. Don't think this is actually used. + + + + + Gets or sets a value indicating whether the test passed. If failed, + will propagate to the parent metadata object. + + + + + Gets the name of the assembly. + + + + + Gets an observable collection of test class data objects. + + + + + A data object that generates property change notifications and can + be used for rich data binding to test results. Does keep a reference + to all results. + + + + + Stores the test method metadata. + + + + + Parent data object. + + + + + A value indicating whether the test is currently executing. + + + + + The test outcome. + + + + + Backing field for linked data. + + + + + Backing field for linked data. + + + + + Backing field for linked data. + + + + + Backing field for linked data. + + + + + Initializes a new instance of the TestMethodData type. + + The test method metadata. + The test class that is the parent object. + + + + Runs through the metadata for bugs. + + + + + Backing field for known bugs. + + + + + Backing field for bugs that are marked fixed. + + + + + Calculates whether the item is considered "notable", in that it + should have a visual cue or hint for the user. + + + + + Stores a value indicating whether the result is notable. + + + + + Backing field for the checked property. + + + + + Backing field for the expanded property. + + + + + Retrieves the results report. + + Returns a string containing the report. + + + + Gets or sets the result of the test method. + + + + + Gets the known bugs for display in the UI. + + + + + Gets the fixed bugs for display. + + + + + Gets the expected exception name for a negative test, if any. + + + + + Gets a simplified exception stack trace that omits the trace below + the invoke of the test method by the test framework. + + + + + Gets the short, simple name of the exception type recorded in the + test result, if any. + + + + + Gets a value indicating whether the method has results. + + + + + Gets a value indicating whether the method has passed. Returns + true until there is a result. + + + + + Gets or sets a value indicating whether the test method is running. + + + + + Gets or sets a value indicating whether the result is notable. + Notable is defined as either currently running, or not having + passed. This can allow a user interface to react to an + interesting result. + + + + + Gets the parent data object. + + + + + Gets an instance of the actual metadata object. + + + + + Gets the name of the test method. + + + + + Gets a visibility value to allow for easy showing or + hiding of a user interface component that displays the + description. + + Returns a visibility value. + + + + Gets the elapsed time in a readable format. + + Returns a string of the readable time elapsed. + + + + Gets the description of the test method. + + + + + Gets or sets a value indicating whether the item is checked in the + user interface. + + + + + Gets or sets a value indicating whether the item is expanded in + a hierarchical display. + + + + + Gets or sets the previous result. + + + + + Gets or sets the next result. + + + + + Gets or sets the previous failing result. + + + + + Gets or sets the next failing result. + + + + + A provider of code coverage information to an external process. + + + + + The base class for test service providers. + + + + + Initializes a new base provider class. + + The owning test service provider. + The display name of the service. + + + + Initializes the provider. + + + + + Increments the busy service counter. + + + + + Decrements the busy service counter. + + + + + Invokes a method on this provider using reflection. + + The name of the method. + The optional parameters. + + + + Call the InitializeCompleted event. + + + + + Performs a callback. Null action and/or result are permitted. + + The optional callback action. + The result to pass back. + + + + Event fired once initialization is complete. + + + + + Gets the display name for the provider. + + + + + Gets the owning test service. + + + + + Gets a value indicating whether the provider has been initialized + yet. + + + + + Initializes a new code coverage provider. + + The test service. + + + + Save string-based code coverage data. + + The code coverage data, as a string. + The callback action. + + + + A provider of environment variables and environmental information that + uses the test service provider infrastructure. + + + + + Initializes a new environment provider. + + The test service. + + + + Retrieve an environment variable from the system. + + The variable name. + The callback action. + + + + Miscellaneous internal extension methods. + + + + + Attempts to retrieve a custom assembly attribute. + + The type of attribute to retrieve. + The assembly reference. + An out attribute reference. + Returns true if the attribute is found. + + + + Transform the XElement into a dictionary of key/value pairs. + + The type of enumeration. + The key type. + The value type. + The root enumerable. + The key selector. + The item selector. + Returns a new dictionary. + + + + A type that stores global settings in the isolated storage for the + application. An implementation of the + type. + + + + + A provider of string dictionary values. + + + + + Initializes a new SettingsProvider object. + + The test service. + + + + Initializes a new SettingsProvider object. + + The test service. + The service name. + + + + Saves the settings. + + Classes that inherit from SettingsProvider: hide this + function. Do not call up through to this base method. + The service callback. + + + + Gets the settings dictionary. + + + + + Gets a value indicating whether the settings are read-only. + + + + + Gets the settings source for end-user display. + + + + + The unique key used for storing the test framework's settings + dictionary. + + + + + The underlying settings object. + + + + + Initializes a new isolated storage settings provider. + + The test service instance. + + + + Initializes the isolated storage settings provider. + + + + + Saves the current settings values. + + The service completion callback. + + + + Recalls the stored settings values from isolated storage. + + + + + Initialize the isolated storage application settings object. + + + + + Result object for asynchronous test service response. + + + + + Creates a new ServiceResult object for a failed result, the + sets the exception. + + The Exception object. + Returns a new ServiceResult with the Exception set. + + + + The result LINQ element. + + + + + Initializes a new instance of the ServiceResult class. + + + + + Process the response text. + + + + + Attempt to process and return the root element of a successful + request. Returns null if there was an Exception. + + The root XML element of the response. + + + + Sets the result. + + The LINQ element for the result. + + + + Gets or sets a value indicating whether the result has been + processed. + + + + + Gets or sets the exception intercepted or generated during the + request or + processing timeframe. + + + + + Gets the root XElement of the test service result. + + + + + Gets a value indicating whether the request was successful. + + + + + The type of test service in use. Used by the more advanced service + scenarios in SilverlightTestServiceProvider. + + + + + No service, or unknown service type. + + + + + A direct connection, be it the file system, isolated storage, or + similar. + + + + + A web service. + + + + + The Silverlight test service provider is built for compilation with + Silverlight builds of the test framework. Populates with the important + providers for web browser-hosted test runs. + + + The Silverlight test service provider is built for compilation with + Silverlight builds of the test framework. Populates with the important + providers for web browser-hosted test runs. + + + + + A system that provides test services. + + + + + The dictionary of services registered with this provider instance. + + + + + Initializes a new test service provider instance. + + + + + Initializes the provider and all of its test services. + + + + + Initialize all services and features synchronously. + + + + + Register a new service that the test service should expose. + + Known feature type. + Instance of the feature's + type. + + + + Register a new service that the test service should expose. + + String name of the feature if the known + enum value does not exist. + Instance of the feature's + type. + + + + Unregisters a feature. + + Known feature type. + + + + Unregisters a feature. + + Known feature type string. + + + + Check if a requested feature is supported by the test service + provider. + + Feature of interest. + A value indicating whether the feature exists. + + + + Check if a requested feature is supported by the test service + provider. + + Feature of interest. + A value indicating whether the feature exists. + + + + Retrieve a feature. An exception will be thrown if the service + does not exist. + + Type of a service, ProviderBase. + The feature of interest. + Returns the feature, cast properly. + + + + Retrieve a feature. + + Feature of interest. + The feature's provider. + + + + Retrieve a feature. + + Feature of interest. + The service or null if one was not present. + + + + Require a feature, or throw an exception if it isn't available. + + Feature of interest. + The required type. + The service or null if one was not present. + + + + Require a feature, or throw an exception if it isn't available. + + Feature of interest. + The required type. + The service or null if one was not present. + + + + Require a feature or interest. + + Feature of interest. + The service or null if one was not present. + + + + Requires a service. + + Feature of interest. + The service or null if one was not present. + + + + Check for and required the presence of a service. Throws an + InvalidOperationException message if the service is unavailable. + + Feature of interest. + The service or null if one was not present. + + + + Require a specific feature, and that it can be cast properly. + + Feature of interest. + The type to verify assignment for a cast. + The service or null if one was not present. + + + + Looks for a specific service. + + Feature of interest. + The service or null if one was not present. + + + + Gets or sets a unique test run identifier, if any is present. + + + + + Gets or sets an integer value that can be used to manage simple + reference counting services. + + + + + The service verifier and information. + + + + + Initializes a new instance of the SilverlightTestService class. + + + + + Initializes a new instance of the SilverlightTestService class. + + Unit test settings to read the service path + and other information from. + + + + Initializes the Silverlight test service. Performs a service check + if needed before initializing the other providers. + + + + + Sets the custom ID information for the test run, if passed into + the run. + + + + + Determine the service path to attempt to use, and prepares the + verification object using those parameters. + + Unit test settings object to try and read + settings from. + + + + Pauses the initialization process to attempt a service connection. + The result will alter the underlying ServiceType being used by + this provider to ensure a fallback experience can be used. + + This verification step will block the initialization and entire + test run until it continues. + + + + + Continues the initialization process for the test service provider. + + + + + Populates with the standard providers for Silverlight in-browser + testing. + + + + + Gets the service type that is in use. + + + + + Gets the web service proxy. + + + + + A special verification class used by SilverlightTestService. + + + + + The name of a simple 'ping' method exposed by the service. + + + + + Attempts to verify the service connection. Calls the proper + success/failure Action once a verification result is possible. + + The Action to call upon connection + verification. + An Action to call upon failure. + + + + Gets or sets the service hostname. + + + + + Gets or sets the service port. + + + + + Gets or sets path to the simple POX service. + + + + + Gets the URI to the service. + + + + + A test service that reports test run results. + + + + + Initializes a new reporting provider instance. + + The test service. + + + + Begins a call to the test service to write to the log. + + The callback, used to read or verify results + from the service call. + The name of the log to write. + The log file content. + + + + Begins a call to the test service to report a test run's results. + + The callback, used to read or verify results + from the service call. + A value indicating whether the test run was a + failure. + The failed scenario count. + The total scenario count. + Any message to report along with the failure. + + + + Set of known, well-defined test service features. + + + + + Code coverage reporting. + + + + + Provides run parameters and settings. + + + + + Provides test reporting services. + + + + + Provides environment information. + + + + + A provider of code coverage information to an external process. + + + + + The MethodName_SaveCodeCoverage method name. + + + + + Initializes a new code coverage provider. + + The test service. + + + + Save string-based code coverage data. + + The code coverage data, as a string. + The callback action. + + + + A provider of environment variables and environmental information that + uses the test service provider infrastructure. + + + + + The MethodName_GetEnvironmentVariable method name. + + + + + Initializes a new environment provider. + + The web test service. + + + + Retrieve an environment variable from the system. + + The variable name. + The callback action. + + + + Result object for asynchronous test service response that uses a simple + web service / POX call. + + + + + Initializes a new web service result. + + The request object. + The response object. + + + + Initializes a new web service result. + + The request object. + The response object. + The details to associate for debugging + purposes. + + + + Reads the web response, if successful, and parses out the string + content. + + + + + Process the response text. + + + + + Gets the web request associated with the service call. + + + + + Gets the web response associated with the service call. + + + + + Gets the details of the request, used for interactive debugging + sessions only. + + + + + Gets the string retrieved from the response. + + + + + A test service that reads command line settings. + + + + + Name of the method MethodName_GetRunParameters. + + + + + Initializes a new settings provider instance. + + The test service. + + + + Initialize the web settings provider. + + + + + Read the run parameters. + + The service result. + + + + A test service that reports test run results. + + + + + Name of the method MethodName_ReportTestResults. + + + + + Name of the method MethodName_WriteLog. + + + + + Initializes a new reporting provider instance. + + The test service. + + + + Begins a call to the test service to write to the log. + + The callback, used to read or verify results + from the service call. + The name of the log to write. + The log file content. + + + + Begins a call to the test service to report a test run's results. + + The callback, used to read or verify results + from the service call. + A value indicating whether the test run was a + failure. + The failed scenario count. + The total scenario count. + Any message to report along with the failure. + + + + Provides out-of-process access to operating system functions and other + services such as visual verification, if present. + + + Provides out-of-process access to operating system functions and other + services such as visual verification, if present. + + + Provides out-of-process access to operating system functions and other + services such as visual verification, if present. + + + + + The service address. + + + + + The synchronization context. + + + + + Initializes a new plain-old-XML test service. This assumes that + the caller has already verifier that a service is present and + responding at the service address. + + The base service URI, such as + "scheme://hostname:port/servicePath/". + + + + Creates a simple REST-style Uri given the method/service name and + a dictionary of key/value pairs to send as arguments. + + The method/service name. + A set of key/value pairs. + Returns a new Uri. + + + + Creates a simple REST-style Uri given the method/service name and + a dictionary of key/value pairs to send as arguments. + + The method/service name. + A set of key/value pairs. + Optional query string. + Returns a new Uri. + + + + Builds a simple dictionary from parameters. The value follows the + key parameter. {[key, value], } ... + + The ToString() method is called on every object. + + The parameters. + Returns a key/value dictionary from the parameters. + + + + Begin a POX method call. The callback is used with the result when + it becomes available. + + The method name. + The callback action. + + + + Begin a POX method call. The callback is used with the result when + it becomes available. + + The method name. + Dictionary of key/value pairs. + The callback action. + + + + Begin a POX method call. The callback is used with the result when + it becomes available. + + The method name. + Dictionary of key/value pairs. + Optional string that will transform the + request to a POST request. + The callback action. + + + + The intermediate step that writes the POST data and then continues + the web request. + + The async result object. + + + + Process the response callback from a POX method call. + + The async result object. + + + + On the UI thread, invoke the callback action with the result. + + The temporary state object. + + + + A simple type to store the state information for the cross-thread + callback. + + + + + Initializes a new TemporaryStateObject object. + + The callback action. + The result object. + + + + Gets the callback action. + + + + + Gets the result object. + + + + + The request data class, stores information used in a request for + associating this data with the response. + + + + + Initializes a new request data object. + + The request Uri. + The request object. + The callback action. + + + + Converts the request data object into a web service result + object. + + The response object. + Returns a new WebServiceResult instance. + + + + Gets or sets the optional post data for the request. + + + + + Gets the web request. + + + + + Gets the request Uri. + + + + + Gets the callback action. + + + + + A type which handles preparing the underlying dispatcher or timer from + which the test work items execute. + + + + + Handle calling into the test framework as needed to perform the test + run, process the internal test dispatcher queue, and keep execution + moving forward. + + + + + Delegate that returns whether more work remains and runs the next + set of work. + + + + + Backing field for a value indicaing whether the dispatcher should be + running. + + + + + Creates a new RunMethodManager, taking in a conditional delegate to + run for each step to see if more work remains. + + + The conditional delegate that performs work and indicates whether + additional work remains. + + + + + Create a new run method manager object. + + + Conditional indicating whether more work will remain after + performing the work. + + + Returns the run method manager. Typically depends on the execution + platform and environment. + + + + + Create a new run method manager object. + + + Conditional indicating whether more work will remain after + performing the work. + + A Dispatcher instance. + + Returns the run method manager. Typically depends on the execution + platform and environment. + + + + + A completely synchronous implementation, unless overridden, that + calls RunNextStep() until the harness is finished. + + The default implementation will not work with a presentation-rich + test environment. + + + + + Calls a conditional delegate, and returns whether there is more work + to be done. + + + Returns a value indicating whether there is additional work + remaining after executing the current work. + + + + + Calls the Complete event handler. + + + + + Event that is called when all work is complete. + + + + + Gets or sets a value indicating whether the dispatcher should be + running. + + + + + Stored Dispatcher instance. + + + + + Sets up a new run method manager. + + + Conditional delegate which returns true as long as there is + additional work. + + An instance of the dispatcher to use. + + + + Begin the execution process by hooking up the underlying + DispatcherTimer to call into the test framework regularly and + perform test work items. + + + + + A data object that generates property change notifications and can + be used for rich data binding to test results. Does keep a reference + to all results. + + + + + Parent object reference. + + + + + Initializes a new instance of the TestClassData type. + + The test class metadata. + The parent test assembly data object. + + + + Backing store for the set of test class. + + + + + Backing field for the expanded property. + + + + + Collapses the test class node unless there is at least one child + test method that failed. + + + + + Backing field for a passed value. + + + + + Retrieves the results report. + + Returns a string containing the report. + + + + Gets the parent data object. + + + + + Gets the name of the test class. + + + + + Gets the namespace for the test class. + + + + + Gets an observable collection of test class data objects. + + + + + Gets or sets a value indicating whether the item is expanded in + a hierarchical display. + + + + + Gets or sets the checked value. Don't think this is actually used. + + + + + Gets or sets a value indicating whether the test passed. If failed, + will propagate to the parent metadata object. + + + + + A data object that generates property change notifications and can + be used for rich data binding to test results. Does keep a reference + to all results. + + + + + The unit test harness instance. + + + + + Backing field for information about the test application in use. + + + + + Initializes a new instance of the test run results. + + The unit test harness. + + + + Backing store for the set of test assemblies. + + + + + Title backing field. + + + + + Stores the total number of expected scenarios. + + + + + Stores the current test information. + + + + + Stores the current test information. + + + + + Stores the number of run scenarios. + + + + + Count of failed scenarios. + + + + + Backing field for whether the app is running. + + + + + Gets the test application information instance. + + + + + Gets the unit test harness instance. + + + + + Gets an observable collection of test assembly data objects. + + + + + Gets or sets the informational run title. + + + + + Gets or sets the number of total scenarios. + + + + + Gets or sets the current test name. + + + + + Gets or sets the current test name. + + + + + Gets or sets the number of run scenarios. + + + + + Gets or sets the number of failed scenarios. + + + + + Gets a value indicating whether the run is complete and passed. + + + + + Gets a value indicating whether all passing results have been + processed. + + + + + Gets the number of passed scenarios, defined as the number of + run scenarios minus the number of failed scenarios tracked. + + + + + Gets a value indicating whether the dispatcher is currently running. + + + + + Gets a value indicating whether the test run is in action. + + + + + Assembly complete event arguments. + + + + + Generic unit test harness event arguments base class that contains a + reference to the harness. + + + + + Initializes a new instance of the UnitTestHarnessEventArgs class. + + The test harness. + + + + Gets the unit test harness reference. + + + + + Initializes a new instance of the TestAssemblyCompletedEventArgs + type. + + The assembly metadata. + The test harness instance. + + + + Gets the assembly metadata. + + + + + Test assembly starting event arguments. + + + + + Initializes a new instance of the TestAssemblyStartingEventArgs + type. + + The assembly metadata. + The unit test harness instance. + + + + Gets the assembly metadata information. + + + + + The test class completed event arguments. + + + + + Initializes a new instance of the TestClassCompletedEventArgs + class. + + Test class metadata. + The harness instance. + + + + Gets the test class metadata. + + + + + Information about the start of a test class event. + + + + + Initializes a new instance of the TestClassStartingEventArgs type. + + The test class metadata. + The unit test harness reference. + + + + Gets the test class instance. + + + + + Test method starting event arguments. + + + + + Initializes a new instance of the TestMethodStartingEventArgs type. + + The test method metadata. + The test class metadata. + The test harness instance. + + + + Gets the test method metadata. + + + + + Gets the test class metadata. + + + + + Test method completed event arguments, contains the result. + + + + + Initializes a new instance of the TestRunStartingEventArgs + type. + + The test run filter. + The test run settings object. + + + + Gets the unit test run settings. + + + + + Gets the test run filter. + + + + + Gets or sets the test harness name. + + + + + Gets or sets the number of valid, enqueued assemblies scheduled. + + + + + Tag attribute used to associate individual test cases with tags to + easily test related functionality. + + + The infrastructure associated with the TagAttribute is not yet in place. + + + + + List of reserved words that cannot be used as tags. + + + This list should be shared with the tag parser implementation when + available. + + + + + List of reserved characters that cannot be used in tags. + + + This list should be shared with the tag parser implementation when + available. + + + + + Initializes a new instance of the TagAttribute class. + + + Tag associated with the test method or class. + + + + + Gets the tag associated with the test method or class. + + + + + Set of extension methods used by the harness. + + + + + An AddRange implementation for the generic IList interface. + + The list type. + The list object. + The collection to copy into the list. + + + + Replace a list's contents with the items in the IEnumerable. + + The list type. + The list object. + The sequence to copy into the list. + + + + The IProvideDynamicTestMethods interface is used to provide additional + test methods dynamically at runtime. + + + + + Get the dynamic test methods. + + Sequence of dynamic test methods. + + + + A type filter for just a specific test. Allows the re-running of a + single result again in the same process. + + + + + A type to filter down complete sets of classes, tests and methods. + + + + + The default unit test run name. + + + + + Unit test settings. + + + + + Initializes a new test run filter using an existing settings file. + + A unit test settings instance. + The unit test harness. + + + + Retrieve a set of test classes from a test assembly. + + The test assembly metadata object. + Test class instance dictionary. + Returns a new list of test class metadata objects. + + + + Sort the test classes if the settings for alphabetical sorting are + present. + + List of test classes. + + + + Filter out tests based on the standard-supported methods. + + List of test classes. + Test class instance dictionary. + + + + Perform any custom filtering that the TestRunFilter needs. + + List of test classes. + Test class instance dictionary. + + + + If specific string-contains filters are present. + + List of test classes. + Test class instance dictionary. + + + + If any exclusive classes are found, filter them. + + List of test classes. + Test class instance dictionary. + + + + Retrieves the test methods from a test class metadata object. + + The test class metadata object. + The test class instance. + Returns a list of test method metadata objects. + + + + Filter the test methods. + + List of test methods. + + + + Perform any custom filtering that the TestRunFilter needs. + + List of test methods. + + + + If any exclusive classes are found, filter them. + + List of test methods. + + + + Sorts the test methods, if requested. + + List of test methods. + + + + Gets a friendly name for the test run. + + + + + Gets the unit test harness. + + + + + The test class. + + + + + The test method. + + + + + Initializes a new test run filter using an existing settings file. + + The test class metadata. + The test method metadata. + + + + Retrieve a set of test classes from a test assembly. + + The test assembly metadata object. + Test class instance dictionary. + Returns a new list of test class metadata objects. + + + + Retrieves the test methods from a test class metadata object. + + The test class metadata object. + The test class instance. + Returns a list of test method metadata objects. + + + + A helper class that manages tags and associated metadata. Tag + expressions are evaluated at the TestClass level. + + + A helper class that manages tags and associated metadata. Tag + expressions are evaluated at the TestClass level. + + + A helper class that manages tags and associated metadata. Tag + expressions are evaluated at the TestClass level. + + + + + The prefix for any tags generated from priority values. + + + + + A reference to the tag attribute type. + + + + + The test tags associated with the class. + + + + + The test tags associated with methods. + + + + + The ability to grab the set of methods, given a test class type, + and the tag of interest. + + + + + The test class type. + + + + + Initializes a new tag manager. + + The test class type. + The set of methods to run. + + + + Reflect, read and prepare the tags for the class metadata. Performs + the work if this is the first time the metadata has been seen. + + The reflection object for the test class. + + + + Reflect, read and prepare the tags for the method metadata. Performs + the work if this is the first time the metadata has been seen. + + The method metadata. + + + + Get the test methods that correspond to a tag expression. + + Tag expression. + Test methods for the tag expression. + + + + Gets or sets the universe of all test methods for expression + evaluation. + + + + + Evaluate tag expressions. + + + Tag expressions are derived from the following EBNF grammar: + {Expression} := + {Expression} + {Term} | + {Expression} - {Term} | + {Term} + {Term} := + {Term} * {Factor} | + {Factor} + {Factor} := + !{Factor} | + ({Expression}) | + {Tag} + {Tag} := + All | + [^InvalidCharacters]+ + + The non-terminals for {Expression} and {Term} will be left factored + in the recursive descent parser below. + + + + + Union character. + + + + + Intersection character. + + + + + Complement character. + + + + + Difference character. + + + + + The "All" string constant. + + + + + Invalid characters in a tag name. + + + + + Evaluate a tag expression. + + The owner object. + Tag expression. + Test methods associated with the tag expression. + + + + The owning TagManager instance. + + + + + Expression being evaluated. + + + + + Current position in the expression. + + + + + Create an expression evaluator. + + The owner object. + Expression object. + + + + Match a sequence of characters. + + String to match. + + + + Try to match a sequence of characters. + + String to match. + Returns a value indicating whether the match was + successful. + + + + Evaluate an expression. + + Test methods described by the expression. + + + + Evaluate an expression. + + Test methods described by the expression. + + We need to factor out left recursion, so: + {Expression} := + {Expression} + {Term} | + {Expression} - {Term} | + {Term} + becomes: + {Expression} := + {Term}{Expression'} + + {Expression'} := + #empty# + + {Term}{Expression'} + - {Term}{Expression'} + + + + + Evaluate an expression. + + + Left term already read as part of the expression. + + Test methods described by the expression. + + Non-terminal created for left-factoring: + {Expression'} := + #empty# + + {Term}{Expression'} + - {Term}{Expression'} + + + + + Evaluate a term. + + Test methods described by the expression. + + We need to factor out left recursion, so: + {Term} := + {Factor} * {Term} | + {Factor} + becomes: + {Term} := + {Factor}{Term'} + + {Term'} := + #empty# + ^ {Factor}{Term'} + + + + + Evaluate a term. + + + Left term already read as part of the expression. + + Test methods described by the expression. + + Non-terminal created for left-factoring: + {Term'} := + #empty# + ^ {Factor}{Term'} + + + + + Evaluate a factor. + + Test methods described by the expression. + + {Factor} := + !{Factor} | + ({Expression}) | + {Tag} + + + + + Creates a new empty collection. + + Returns an empty collection. + + + + Evaluate a tag. + + Test methods described by the expression. + + {Tag} := + All | + [^InvalidCharacters]+ + + + + + A string list for storing tags. Provides an Add method that takes + an attribute object and, if a TagAttribute, will append its tag + value to the list. + + + + + Initializes a new Tags instance. + + + + + Initializes a new Tags instance from an existing collection. + + The collection to copy. + + + + Adds a TagAttribute's tag value. + + The tag object. + + + + A method and class filter that uses expressions and the TagAttribute. + + + + + The name to use for the test run when the tag expression is null. + + + + + Initializes a new test run filter with the tag expression setting. + + Unit test settings. + Unit test harness. + + + + Initializes a new test run filter with the tag expression. + + Unit test settings. + Unit test harness. + The tag expression to use. + + + + Sets the tag expression property. + + The tag expression to use. + + + + A value indicating whether the warning has been logged yet. + + + + + Apply tag filtering. + + List of test classes. + Test class instance dictionary. + + + + Apply tag filtering. + + List of test methods. + + + + Apply the tag filtering. + + The tag manager instance. + Set of methods. + + + + Exclusive attributes are not supported when also using tagging. + + List of test classes. + Test class instance dictionary. + + + + Exclusive attributes are not supported when also using tagging. + + List of test methods. + + + + Gets the tag expression in use by the run filter. + + + + + Helper code for TestAssembly logic. + + + + + Check whether [Exclusive] attribute is present on any classes. + + Collection of class metadata objects. + Returns a value indicating whether any of the classes + include an [Exclusive] attribute. + + + + Sorts the test classes alphabetically by name. + + A list of test class metadata objects. + + + + Test class helper. + + + + + A value indicating whether the warning has been logged in this run. + + + + + Filter the set of test classes by removing unused classes. + + The input list of test class metadata objects. + The classes to run. + + + + Look through the classes for the [Exclusive] attribute. If found, + remove any classes where the attribute is not present. + + The input list of classes. + The log writer object. + + + + Look for the /p:FilterClass parameter in the test harness settings. + Try to do a substring match on all filtered test classes. + + The parameters. + List of test classes to be filtered. + + + + Test method completed event arguments, contains the result. + + + + + Initializes a new instance of the TestMethodCompletedEventArgs + type. + + The result instance. + + + + Initializes a new instance of the TestMethodCompletedEventArgs + type. + + The result instance. + The unit test harness. + + + + Gets the test method result. + + + + + Helper code for TestMethod logic. + + + + + A value indicating whether the warning has been logged in this run. + + + + + Check whether [Exclusive] is present on >= 1 of the methods. + + The methods to search through. + True if at least one of the methods has Exclusive. + + + + Look through the methods for the [Exclusive] attribute. If found, + remove any methods where the attribute is not present. + + The methods to filter. + The log writer object. + + + + A helper utility for firing events as the unit test harness from any + component, internal or not. Enables expansion. + + + + + Stored instance of the harness. + + + + + Initializes a new intance of the UnitTestHarnessEvents helper. + + The harness reference. + + + + Calls the test assembly starting event. + + The event data. + + + + Calls the test assembly completed event. + + The event data. + + + + Calls the test class starting event handlers. + + The event data. + + + + Calls the test class completed event. + + The event data. + + + + Calls the test method starting event. + + The event data. + + + + Calls the test method completed event. + + The event data. + + + + Calls the test run starting event. + + The event data. + + + + A factory for creating the unit test objects. + + + + + The unit test harness. + + + + + Initializes a new unit test logic factory. + + The unit test harness reference. + + + + Creates a new AssemblyManager. + + The unit test provider. + The run filter. + The unit test assembly metadata object. + Returns a new AssemblyManager. + + + + Creates a new TestClassManager. + + The unit test provider. + The run filter. + The test class metadata. + The test class instance. + Returns a new TestClassManager. + + + + Creates a new TestMethodManager. + + The unit test provider. + The test class metadata. + The test method metadata. + The test class instance. + Returns a new TestMethodManager. + + + + A log provider that outputs in a simple custom test format that Visual + Studio recognizes. + + + A log provider that outputs in a simple custom test format that Visual + Studio recognizes. + + + + + LogProvider interface with a single Process method that handles a + LogMessage object. + + + + + A dictionary of conditional action handlers. + + + + + A dictionary of types/actions for handling specific types of log + messages. + + + + + Perform any needed operations to log the message. + + Instance of LogMessage type. + + + + Method that processes any messages not handled any other way. + + The log message. + + + + Registers an action for a specific message type. + + The type of interest. + The handler for the type. Takes a LogMessage + parameter. + + + + Registers a conditional handler. During the log message processing + step, all conditional callbacks will be tried. The first positive + result will then call the associated processing Action for that + conditional method entry. + + A conditional callback that takes a + LogMessage input parameter. + A log message processing Action that is called + when the condition is true. + + + + Removes a conditional callback. + + The condition. + + + + Clear all existing conditional handlers. + + + + + Clear all existing message type handlers. + + + + + Interface for LogProviders that want access to external test settings. + + + + + Initializes the provider. + + The settings. + + + + The filename to use for saving test results. + + + + + The default test adapter type name. + + + + + The default test list name. + + + + + The default computer name. + + + + + The default user name. + + + + + The default configuration name. + + + + + The default configuration description. + + + + + The Visual Studio log format writer. + + + + + Initializes a new instance of the VisualStudioLogProvider class. + + + + + Register the handler conditions of interest to this log provider. + + + + + Assembly start code. + + The log message. + + + + Process an Exception that was not the expected Exception type. + + The log message. + + + + Process an Exception that is logged or stored. + + The log message object. + + + + Sets the test run configuration information when the test assembly + begins processing. + + The test assembly metadata object. + + + + Generate a name for the test run that will be used when + displaying the result in Visual Studio. + + The test assembly metadata object. + Returns the test run name. + + + + Generates a new Guid string value. + + Returns a new Guid string value. + + + + Process a UTF result message. + + The log message object. + + + + Process [Bug(...)]. + + A KnownBugLogMessage object. + + + + The run filter has been selected. + + The log message object. + + + + Saves the log file data. + + The unit test harness. + + + + Initializes the test harness. + + The test harness settings. + + + + Gets or sets the test results filename. + + + + + Gets or sets the test adapter type name reported in the Visual + Studio results log file. + + + + + Gets or sets the TestRunId. + + + + + Gets or sets the test list name. + + + + + Gets or sets the computer name that is reported in the results + log file. + + + + + Gets or sets the user name that is reported in the results file. + + + + + Gets or sets the TestRunConfigurationName. + + + + + Gets or sets the TestRunConfigurationDescription. + + + + + Gets or sets a prefix for use in the test run name. + + + + + Gets or sets the TestRunConfigurationId. + + + + + Gets the current assembly name. + + + + + A log provider that outputs in a simple custom test format that + Visual Studio recognizes. This is a simple, subset writer. + + + + + Date time format string representing round-trip date/time + pattern. + + + + + A unique ID representing the Visual Studio unit test type ID. + + + + + The namespace for Visual Studio team test results. + + Was of XNamespace type in XLinq implementation. + + + + A dictionary containing test list names and guids. + + + + + Stores temporary, pending elements for the next result. + + + + + Initializes a new Writer object. + + + + + Stores property values in the respective elements, clears any + lookup dictionaries. + + + + + Returns a string value of the DateTime object. + + The DateTime object. + Returns the formatted string. + + + + Returns the XML log file as a string. + + The XML value. + + + + Creates the initial results document and its XElements. + + + + + Creates a new XElement within the results XML namespace. + + The element name. + Returns a new named element. + + + + The total number of scenarios. + + + + + The set of outcomes and counts. + + + + + Increment the number of passing results. + + The test outcome. + + + + Adds the result of a test method into the log. + + The test metadata. + The storage value. + The code base value. + The adapter type name. + The class name. + The test list name. + The computer name. + The start time. + The end time. + The outcome. + + + + Adds a WriteLine to the next result to be processed. + + The text to output. + + + + Adds an error message to the next result to be processed. + + The message. + + + + Adds an Exception to the next result to be processed. + + The Exception object. + + + + Adds pending output for the next result. + + The element to wrap in an Output element. + + + + Returns the GUID for a test list name. The result is stored + in memory. + + The test list name. + Returns the test list name guid. + + + + Gets or sets the time that the test run started. + + + + + Gets or sets the time that the writer object and/or test run was created. + + + + + Gets or sets the time that the test run was finished. + + + + + Gets the root XML node for the test run and its results. + + + + + Gets or sets the test type ID used for new results. + + + + + Gets the TestRunConfiguration element. + + + + + Gets the Counters element. + + + + + Gets the TestDefinitions element. + + + + + Gets the TestLists element. + + + + + Gets the TestEntries element. + + + + + Gets the Times element. + + + + + Gets the ResultSummary element. + + + + + Gets the Results element. + + + + + Sets the TestRunId. + + + + + Sets the TestRunName. + + + + + Sets the TestRunUser. + + + + + Sets the TestRunConfigurationName. + + + + + Sets the TestRunConfigurationId. + + + + + Sets the overall run outcome value. + + + + + Sets the TestRunConfigurationDescription. + + + + + A user control that should be used as the root visual for a Silverlight + plugin if developers would like to use the advanced TestSurface + functionality within Microsoft.Silverlight.Testing. + + The TestSurface is automatically cleared after each test scenario + completes, eliminating the need for many additional cleanup methods. + + + + + Initializes the TestPage object. + + + + + InitializeComponent + + + + + Gets the test surface, a dynamic Panel that removes its children + elements after each test completes. + + + + + A log provider that outputs failures as a string. + + + + + A list of failing results. + + + + + Initializes a new TextFailuresLogProvider instance. + + + + + Retrieve the text log of all failures in the unit test run. + + Returns the log contents. + + + + Register the handler conditions of interest to this log provider. + + + + + Process a UTF result message. + + The log message object. + + + + A user control that should be used as the root visual for a Silverlight + plugin if developers would like to use the advanced TestSurface + functionality within Microsoft.Silverlight.Testing. The TestSurface is + automatically cleared after each test scenario completes, eliminating + the need for many additional cleanup methods. + + + + + Backing field for the unit test harness instance. + + + + + Backing field for the model manager. + + + + + Backing field for the startup timer. + + + + + Backing field for a value indicating whether the clipboard feature + is supported. + + + + + Initializes the TestPage object. + + + + + Initializes the TestPage object. + + The test harness instance. + + + + Waits for the Settings to become available, either by the service or + system setting the instance property. + + The source timer. + The event arguments. + + + + Starts the test run. + + + + + Handles the test assembly starting event to expand the test stage + height. + + The source object. + The event data. + + + + Handles the test harness complete event, to display results. + + The source object. + The event data. + + + + Handles the click on the test stage. + + The source object. + The event data. + + + + Expand and collapse the test stage. + + A value indicating whether to expand the stage. + + + + + Handles the completion of a test method. + + The source object. + The event arguments. + + + + Handles the completion event on the tag expression editor to begin + the test run using the user-provided settings. + + The source object. + The event arguments. + + + + Handles navigation back or forward. + + The source object. + The event arguments. + + + + Installs the application. + + The source object. + The event arguments. + + + + Offers clipboard interface support for copying test run results. + + The source object. + The event arguments. + + + + Handles the click on a play/pause button for the run dispatcher. + + The source object. + The event arguments. + + + + Copies text into the clipboard. If the Silverlight runtime on the + system does not support the clipboard API, then it reverts to a + large text box that allows the user to manually copy and paste. + + The text to set. + + + + InitializeComponent + + + + + Gets the test surface, a dynamic Panel that removes its children + elements after each test completes. + + + + + Gets the unit test harness instance. + + + + + Gets the tree view instance. + + + + + A strongly-typed resource class, for looking up localized strings, etc. + + + + + Returns the cached ResourceManager instance used by this class. + + + + + Overrides the current thread's CurrentUICulture property for all + resource lookups using this strongly typed resource class. + + + + + Looks up a localized string similar to There are no remaining test work items. + + + + + Looks up a localized string similar to Exception: Type "{0}" Message "{1}". + + + + + Looks up a localized string similar to Ignoring "{0}". + + + + + Looks up a localized string similar to Incorrect exception type "{0}" received. Was expecting a "{1}" type.. + + + + + Looks up a localized string similar to No Exception was observed. Was expecting a "{0}" type exception.. + + + + + Looks up a localized string similar to Tag cannot be empty!. + + + + + Looks up a localized string similar to The tag "{0}" contains the invalid character "{1}"!. + + + + + Looks up a localized string similar to Tag "{0}" is reserved!. + + + + + Looks up a localized string similar to tagExpression cannot be empty!. + + + + + Looks up a localized string similar to Expected end of tag expression "{0}" at position {1}!. + + + + + Looks up a localized string similar to Tag expected in expression "{0}" at position {1}!. + + + + + Looks up a localized string similar to Invalid tag expression "{0}" (expected "{1}" at position {2})!. + + + + + Looks up a localized string similar to Tag expression "{0}" is in use.. + + + + + Looks up a localized string similar to Exclusive classes are in use. + + + + + Looks up a localized string similar to Exclusive methods are in use. + + + + + Looks up a localized string similar to The known issue could not be verified. A failure will be recorded. If this bug has been fixed, please mark the Fixed attribute value to True.. + + + + + Looks up a localized string similar to No TestHarness is available.. + + + + + Looks up a localized string similar to The "{0}" functionality is not supported within this unit test system.. + + + + + Looks up a localized string similar to Initialization of UnitTestHarness. + + + + + Looks up a localized string similar to No composite work items exist to be cleared.. + + + + + Looks up a localized string similar to No test classes were selected to be in the test run.. + + + + + Looks up a localized string similar to Test harness was not specified on test harness settings object. If a test harness settings object was passed in, please verify that it contains a reference to a test harness.. + + + + + Looks up a localized string similar to Test bug: A test cannot use Test Task objects, such as callbacks and conditionals, or the PumpMessages feature, unless marked with the [Asynchronous] attribute.. + + + + + A central entry point for unit test projects and applications. + + + A central entry point for unit test projects and applications. + + + + + Friendly unit test system name. + + + + + A partial method for PrepareDefaultLogManager. + + The test harness settings. + + + + A partial method for setting the TestService. + + The test harness settings. + + + + Creates a new TestPage visual that in turn will setup and begin a + unit test run. + + A new RootVisual. + Assumes the calling assembly is a test assembly. + + + + Creates a new TestPage visual that in turn will setup and begin a + unit test run. + + Test harness settings to be applied. + A new RootVisual. + Assumes the calling assembly is a test assembly. + + + + Merge any settings provided by a test service with the parameters + that were passed inside the TestHarnessSettings. + + The test service. + The run settings. + + + + Initializes the test service and its contained providers. + + The run settings. + Action to call once the test service is + initialized and ready to continue the run's execution. + + + + Register another available unit test provider for the unit test system. + + A unit test provider. + + + + Test harness instance. + + + + + Start a new unit test run. + + Unit test settings object. + + + + Prepares the default log manager. + + The test harness settings. + + + + Tries to instantiate and initialize a VSTT provider. Requires that + XLinq is available and included in the application package. + + The test harness settings object. + + + + Creates the default settings that would be used by the UnitTestHarness + if none were specified. + + A new RootVisual. + Assumes the calling assembly is a test assembly. + + + + Call the TestHarnessCompleted event. + + The test harness completed event arguments. + + + + Create a default settings object for unit testing. + + The assembly reflection object. + A unit test settings instance. + + + + Gets the test system name built into the assembly. + + + + + Gets a string representing the file version attribute of the main + unit test framework assembly, if present. + + + + + A completed test harness handler. + + + + + A class contains extension methods and helpers for dealing with WorkItem + instances and improving framework performance. + + + + + Enqueues a work item into the task queue. The work item will run + immediately following the previous work item, and may not leave any + time before executing the next. This is a specialized method to be + used for performance improvements. + + The work item test. + The unit of work. + + + + Enqueues a method into the task queue. The method will run + immediately following the previous work item, and may not leave any + time before executing the next. This is a specialized method to be + used for performance improvements. + + The work item test. + The callback action or method. + + + + Enqueues a conditional statement into the task queue. The method will + run immediately following the previous work item, and may not leave + any time before executing the next. This is a specialized method to + be used for performance improvements. + + The work item test. + The conditional function or statement. + + + + Custom test class that provides the ability to perform semi-asynchronous + test tasks on the main thread. Requires the custom unit test harness + that manages and invokes test work items on the thread when needed. + + Tests using this functionality will not be compatible with the full + desktop framework's Visual Studio Team Test environment. + + + + + Signal that a test is complete when using Async testing. + + WARNING: If you use your own methods for completing, such as an + HtmlTimer or other threading method, it is possible that this call + will occur *AFTER* the test has timed out when using Timeouts. As + such, be very careful as you could complete the call to the *next* + test. + + + + + Add a task object to the test queue. For a test that is currently + executing, all tasks contained within the queue are executed to + completion (unless an Exception is thrown) -before- moving on to + the next test. + + The test task queue replaces the PumpMessages(...) system that + permitted a single callback. This enables specialized tasks, such + as DOM bridge tasks, sleep tasks, and conditional continue tasks. + + Asynchronous test task + instance. + + + + Delay a minimum amount of time before continuing. Similar to a sleep + call that is not a blocking call. + + The minimum time span to wait before continuing. + + + + Creates a delay work item instance. + + The minimum time span to wait before continuing. + Returns a new work item. + + + + Delay a minimum amount of time before continuing. Similar to a sleep + call that is not a blocking call. + + The minimum number of milliseconds to wait + until the delay is finished. + + + + Requires a bool returning delegate to be passed in. Instructs the + test task queue to wait until the conditional call returns True to + continue executing other test tasks and/or ending the test method. + + Conditional method or delegate. + Test will halt until this condition returns True. + + + + Creates a conditional work item instance. + + Conditional method or delegate. + Test will halt until this condition returns True. + Returns a new work item. + + + + Enqueue a test task which calls the TestComplete method of + SilverlightTest. + + + + + Add a Callback method into the test task queue. Similar to the + PumpMessages(...) call, with the difference being that there is no + longer a single requirement: you can enqueue several callback + methods and other test tasks, all of which will execute before the + test completes and/or the engine continues. + + Void-returning delegate, + anonymous delegates work fine too. + + + + Creates a callback work item instance. + + Void-returning delegate, + anonymous delegates work fine too. + Returns a new work item. + + + + Adds a number of callback methods into the test task queue. + + Set of Action instances. + + + + Sleep a minimum number of milliseconds before calling a test + callback delegate. + + Minimum number of + milliseconds to sleep. The only guarantee to the tester + is that the sleep will be >= this amount of ms, and NOT + that there is precision or an exact time. + Callback method to + execute after the minimum amount of time has + elapsed. + + + + Enqueue an action. A shortcut for the EnqueueCallback. + + The action to enqueue. + + + + Sleep a minimum number of milliseconds. This is the simplified + overload which requires no callback. + + Minimum number of + milliseconds to sleep. The only guarantee to the tester is that the + sleep will be >= this amount of ms, and NOT that there is precision + or an exact time. + + + + A special indicator attribute to enable better debugging using + Microsoft.Silverlight.Testing. + + As there is very little parameter information available for a test run, + this attribute singles out specific classes to execute when found. + + This attribute is unique to this environment and not compatible with any + desktop unit test framework without using a shim if it is left in code. + + + + + Implementation of useful properties and features for presentation + platform tests (Silverlight and WPF). + + Tests using this functionality will not be compatible with the full + desktop framework's Visual Studio Team Test environment. + + + + + Gets the test panel. + + + + + Provides access to Silverlight-specific test features and + functionality. + + Tests using this functionality will not be compatible with the full + desktop framework's Visual Studio Team Test environment. + + + + + A test work item is a task that is invoked until it is complete. It + maintains its own state to be able to notify the caller when it is + finally complete, with no further work to be run. + + It is possible that some implementations of a TestWorkItem may actually + contain a set of sub-tasks by implementing a composite pattern. + + + + + A value indicating whether the task can immediately execute. + + + + + Invoke the task. Return false only when the task is complete. + + True if there is additional work to be completed. False + when there is none. + + + + Called by the task after the work is complete. + + + + + Gets a value indicating whether the task's work is complete. + + + + + Gets or sets a value indicating whether the work item can be + executed immediately, and does not rely on special asynchronous + operation. Used for performance improvements. The setter is also + public. + + + + + The extended writer for the unit testing harness and consumers. + + + + + A utility type that writes new log messages to the test harness log + queue. + + + + + The factory used for creating new LogMessage types. + + + + + The test harness that contains the method to post new events into + the log message queue. + + + + + Initialize a new writer class, using the default LogMessageFactory + to create new messages. + + The test harness instance. + + + + Initialize a new writer class. + + The test harness instance. + + The factory to use when creating new messages. + + + + + Posts a log message to the test harness queue for processing. + + The log message object. + + + + Creates a new log message using the embedded factory. + + Returns a new LogMessage instance. + + + + Creates a new log message using the embedded factory. + + The message type. + Returns a new LogMessage instance. + + + + Creates a new log message using the embedded factory. + + The message type. + The text message. + Returns a new LogMessage instance. + + + + Decorate a log message with a value. + + The log message to decorate. + The key for this decoration. + The value of this decoration. + + + + Decorate the log message object with an Exception object. + + The log message object. + The Exception. + + + + Decorate the log message object with a name. + + The log message object. + Name property value. + + + + Decorate the log message object with a test stage value. + + The log message object. + Test stage value. + + + + Decorate the log message object with a test outcome object. + + The log message object. + Test outcome object. + + + + Decorate the log message object with a test granularity object. + + The log message object. + Test granularity object. + + + + Sets the type of the log message. + + The log message object. + The new value to set the message type to. + + + + This writes a new line of information similar to a Debug::WriteLine + call. + + The text to write. + + + + Writes information through a new log message. + + The information string. + + + + Writes a message relating to the test infrastructure. + + The text to write. + + + + Writes an environment message. + + The text to write. + + + + Writes a TestRun message. + + The text to write. + + + + Log an error message. + + The error message string. + The Exception object to decorate the message + with. + + + + Log an error message. + + The error message string. + + + + Log a warning message. + + The warning message string. + The Exception object to decorate the message + with. + + + + Log a warning message. + + The warning message string. + + + + Record a test outcome. + + The accompanying message. + The outcome value. + + + + Writes information about an encountered, known issue. + + Information about the known issue. + + + + Records a log message that indicates a named, granular test stage + has happened. + + Any message for the log. + A name for the object or event. + The test granularity value. + The test stage value. + + + + Initializes the unit test log message writer helper. + + The test harness reference. + + + + Marks a message as a unit test system-specific message. + + The log message object. + + + + An incorrect exception type has occurred. + + The expected type. + The actual exception's type. + The test metadata. + The method metadata. + + + + No Exception was intercepted, yet one was expected. + + The expected exception type. + The test class metadata. + The test method metadata. + + + + Logs and Exception that was intercepted or observed. + + The actual Exception instance. + The test class metadata. + The test method metadata. + + + + Enqueues a Ignore message. + + The granularity of the ignore operation. + The name of the test skipped. + + + + Enqueues a message containing a test run filter. + + The test run filter. + + + + Records a log message that indicates a named, granular test stage has + happened. + + The assembly metadata object. + The test granularity value. + The test stage value. + + + + Log a test class's stage. + + The test class metadata object. + The test stage. + + + + Log the result of a unit test scenario. + + The result of the test. + + + + Log a test method's stage. + + The test method metadata object. + The test stage. + + + + Records a harness state for the unit test harness. + + The unit test harness. + The harness name. + The test stage. + + + + A test harness for interacting with unit test providers such as Visual + Studio Team Test's metadata. + + + + + Display name for this harness. + + + + + Manages the attachment state of a global exception handler. + + + + + Container of all work items for the test harness. + + + + + Manager of the stack of dispatchers, so that the appropriate parent + container handles exceptions and completion events. + + + + + Number of valid test assemblies encountered. + + + + + The current run's known number of test methods. + + + + + Backing field for the event firing helper. + + + + + Initiate unit test harness. + + + + + Queue of log messages awaiting processing. + + + + + Adds a log provider to the listening log providers group. + + Log provider object. + + + + Enqueue a log message object for processing by the log providers. + + The log message object. + + + + Begin running the test harness. + + + Make sure to subscribe to the Complete event before calling this + method, in some harnesses this may be a synchronous Run followed + immediately by the Complete event being fired. + + + + + Complete event. + + The sender. + The event arguments. + + + + Stores a log file for the test run. Depending on the execution + environment, this call may not successful. + + The name of the log file. + The log file content as a string. + + + + If supported by any attached test service, this publishes the final + test results. Typical harness implementations may immediately close + the web browser channel upon receiving the message, so any other + reporting should be done first. + + + + + Process all queued log messages. + + + + + Fill member variables with any non-null settings of the same type. + + Settings container class. + + + + Initializes all log providers. + + + + + Call the TestHarnessCompleted event. + + + + + Call the Publishing event. + + The event arguments. + + + + Overrides the PublishResults method so that final reporting is only + done once all other logging is finished. + + + + + Publish final results. If not yet ready, will keep waiting around + as a work item until it is done. + + + + + Stored dispatcher instance. + + + + + Checks if a reporting provider is connected to the test service. + + Returns true if a reporting provider is connected to the + test service. + + + + Immediately sets the overall status using a log message and + processes the message queue. + + The message to set. + + + + Sets the unit test harness property for a test case that inherits + from the abstract base type 'CustomTest'. + + A CustomText instance. + + + + Initialize the harness with a set of test assemblies. + + + + + Restarts the run dispatcher. + + + + + Track the results for our execution and also track the fail state. + + Scenario result to process. + + + + Fires the test assembly starting event. + + The event data. + + + + Fires the play pause event. + + Event data. + + + + Fires the test assembly completed event. + + The event data. + + + + Fires the test class starting event. + + The event data. + + + + Fires the test class completed event. + + The event data. + + + + Fires the test method starting event. + + The event data. + + + + Notifies observers that a test method has been completed. Also + clears the test panel's visual tree. + + The event data. + + + + Notifies observers that a test run has been started. + + The event data. + + + + Reference to the test page object. + + + + + Attempts to report the code coverage information using the test + service provider. If there is no available coverage reporting + service, this is a silent failure. Only reports if >= 1 blocks + are hit. + + The test service. + + + + Enqueue a test assembly from a simple Assembly reference. + + The test assembly. + The run filter settings for the test assembly's run. + + + + Enqueues a test assembly. + + The test assembly metadata. + The run filter settings for the test assembly's run. + + + + Flush the current log manager and then perform the next invoke. + + Returns true if work remains. + + + + Creates the test run filter for the initial run. + + The unit test settings. + Returns a new TestRunFilter instance. + + + + Determine what test assemblies need to be executed. Enqueue tasks + for the unit test assembly providers to run the tests. + + + + + Calculates the number of methods for a run. + + The assembly manager. + The test assembly. + The test run filter. + Returns the number of known methods returned. + + + + Event fired at the completion of the harness' work. + + Sender object instance. + Event arguments. + + + + Listener event for any unhandled exceptions. + + Sender object instance. + Event arguments. + + + + Creates the set of harness tasks to run and hooks up to the Complete event. + + + + + Gets the list of results. + + + + + Gets the log message writer instance. This can be used to easily + post informative messages to the log message queue and providers. + + + + + Gets or sets the logic factory used for instantiating the + unit test logic and management objects. + + + + + Gets or sets the overall harness state - overloaded types can be + used to store additional information. + + + + + Gets the log providers list. + + + + + Gets or sets the wrapper that handles calling the next Run step + method until complete; allows for a virtual Run method. + + + + + Gets the dictionary of Parameters passed into the test harness. + + + + + Gets or sets the settings used to initialize the test harness. + + + + + Gets a set of events that can be fired for test results and other + important test runtime events. + + + + + The test harness is publishing results. + + + + + Gets the TestService referenced by the test harness settings. The + test service provides advanced, optional functionality that is + useful to harness and test case developers. A typical test service + operates outside the process or security boundary. + + + + + Complete event fired when the test harness has finished its test + run. + + + + + Gets a dispatcher instance. + + + + + Gets the root container for test work to be completed. + + + + + Gets the known number of test methods in the current test run. + + + + + Gets or sets a value indicating whether to intercept exceptions at + the app domain level and funnel into the current container or not. + + + + + Gets the internal DispatcherStack being used by the test harness. + + + + + The test assembly starting event. + + + + + On the play or pause change of the dispatcher. + + + + + Gets or sets a value indicating whether the dispatcher is currently + running. + + + + + Test assembly completed event. + + + + + Test class starting event. + + + + + The test class completed event. + + + + + The test method starting event. + + + + + An event that is fired whenever a test method completes. + + + + + An event that is fired when the test run is starting. + + + + + Gets or sets the test page. + + + + + Gets the test panel manager instance. + + + + + Well-known keys that can be used to mark decorator instances in log + message objects. + + + + + Indicates that the message is specific to the unit test system. + + + + + The unit test harness reference. + + + + + The metadata interfacing object for a test assembly. + + + + + The metadata interfacing object for a test class. + + + + + The metadata interfacing object for a test method. + + + + + Indicates that the incorrect exception was intercepted. + + + + + Indicates that the message indicates a skipped/ignored item. + + + + + The type of the expected exception. + + + + + The type of the actual exception. + + + + + The actual exception. + + + + + A TestRunFilter object. + + + + + A ScenarioResult object. + + + + + Helper conditional methods for unit test-specific log messages. + + + + + Determines whether a log message meets a specific condition or set + of conditions. + + The log message object. + Returns true if the condition is met. + + + + Determines whether a log message meets a specific condition or set + of conditions. + + The unit test decorator of interest. + Returns true if the condition is met. + + + + Returns a value indicating whether the message is marked as a unit + test system message. + + The message. + Returns true if the message is a unit test system-marked + message. + + + + Determines whether a log message meets a specific condition or set + of conditions. + + The log message object. + Returns true if the condition is met. + + + + Determines whether a log message meets a specific condition or set + of conditions. + + The log message object. + Returns true if the condition is met. + + + + Determines whether a log message has an attached TestRunFilter. + + The log message object. + Returns a value indicating whether the condition is met. + + + + Determines whether a log message meets a specific condition or set + of conditions. + + The log message object. + Returns true if the condition is met. + + + + Determines whether a log message meets a specific condition or set + of conditions. + + The log message object. + Returns true if the condition is met. + + + + Determines whether a log message meets a specific condition or set + of conditions. + + The log message object. + Returns true if the condition is met. + + + + A lazy method type. + + + + + A class that does a lazy lookup when needed using reflection. + + + + + Attribute Type instance. + + + + + The Type to search with. + + + + + Whether the search has happened. + + + + + The method reflection object. + + + + + Construct a new lazy method wrapper. + + The attribute type. + + + + Construct a new lazy method wrapper. + + Type to search. + Attribute type. + + + + Does a search and retrieves the method information. + + The method reflection object. + + + + Whether the type has a method info. + + A value indicating whether the method information has + been found. + + + + Perform a search on the type. + + + + + Gets the type of attribute the lazy method is searching for. + + + + + Gets the underlying type that is searched. + + + + + Gets or sets a value indicating whether a lookup has already been attempted. + + + + + Gets or sets the underlying MethodInfo from reflection. + + + + + Underlying Assembly reflection object. + + + + + Create a new lazy method from a MethodInfo instance. + + Assembly reflection object. + Attribute Type instance. + + + + Performs a search on the MethodInfo for the attributes needed. + + + + + Test assembly metadata interface. + + + + + Gets a collection of test class metadata objects. + + Returns a collection of metadata objects. + + + + Gets the initialization method. + + + + + Gets the cleanup method. + + + + + Gets a reference to the unit test provider. + + + + + Gets the name of the test assembly. + + + + + Gets the test harness used to initialize the assembly. + + + + + An expected exception marker for a test method. + + + + + Gets the expected exception type. + + + + + Gets any message associated with the expected exception object. + + + + + Represents the host type information for a test. + + + + + Gets the Host type. + + + + + Gets the host data. + + + + + A representation of a test's priority. + + + + + Metadata representing a test class. + + + + + Retrieve a collection of the test method metadata objects setup by + the unit test provider. + + A collection of test method interfaces. + + + + Gets the test class Type instance. + + + + + Gets a value indicating whether the test class should be ignored. + + + + + Gets the per-test initialization method. + + + + + Gets the per-test cleanup method. + + + + + Gets the one-time class initialization method. + + + + + Gets the one-time class cleanup method. + + + + + Gets the name of the test class. + + + + + Gets a reference to the parent test assembly metadata + instance. + + + + + Test method metadata. + + + + + Used for decorating with unit test provider-specific capabilities, + such as the TestContext concept. + + Instance to decorate. + + + + Get any attribute on the test method that are provided dynamically. + + + Dynamically provided attributes on the test method. + + + + + Invoke the test method. + + Instance of the test class. + + + + Gets the test method reflection object. + + + + + Hooks up to any unit test provider-enabled WriteLine capability + for unit tests. + + + + + Gets a value indicating whether the test is marked to be ignored. + + + + + Gets any description for the method. + + + + + Gets a name for the method. + + + + + Gets any category information for the method. + + + + + Gets any test owner information. + + + + + Gets any expected exception attribute . + + + + + Gets any timeout information. + + + + + Gets a collection of any test properties. + + + + + Gets a collection of any test work items. + + + + + Gets any priority information. + + + + + A property for a test method. + + + + + Gets the test property name. + + + + + Gets the test property value. + + + + + Provider model for a unit test system that uses reflection and metadata + to enable a unit test run. + + + + + Retrieve the metadata instance for a test assembly given a + reflection Assembly instance. + + The test harness using the provider. + Reflected test assembly. + Unit test provider-specific metadata instance for + the test assembly. + + + + Gets a value indicating whether a specific capability or set of + capabilities are supported by the unit test provider. + + Capability of interest. + Gets a value indicating whether the capability is + supported. + + + + Checks if an Exception actually represents an assertion that failed + to improve the logging experience. + + Exception object. + Returns true if the Exception is an assertion exception + type. + + + + Gets the name of the unit test provider. + + + + + Gets the capabilities that the unit test provider implements. + + + + + Work item for a test. + + + + + Gets the associated information from the work item. + + + + + Event arguments that pass along a string value. + + + + + Create a new event argument instance. + + + + + Create a new event argument instance that stores a string value. + + String value to pass along. + + + + String value stored in the event arguments. + + + + + Gets the stored string value. + + + + + A set of capabilities that a unit test provider may chose to implement + through the metadata interfaces. + + + + + No defined capabilities. + + + + + Support for attribute [AssemblyInitialize]. + + + + + Support for attribute [AssemblyCleanup]. + + + + + Support for attribute [Ignore] for classes. + + + + + Support for attribute [Ignore] for methods. + + + + + Support for attribute [Description] on methods. + + + + + Support for attribute [Category] on methods. + + + + + Support for attribute [Owner] on method. + + + + + Support for attribute [Priority] on method. + + + + + Support for attribute [TestProperty](...) on methods. + + + + + Support for attribute [Timeout] on methods. + + + + + Support for attribute [WorkItem(...)]('s) on methods. + + + + + Test work item type that does not complete until the sleep time has + elapsed. This is NOT a blocking Sleep. + + + + + The amount of time to delay for. + + + + + The DateTime that marks the point in time the task is complete. + + + + + Create a new Sleep work item, including the number of + milliseconds to wait until continuing. + + Amount of time to wait/delay. + + + + On the first time, will calculate the final DateTime. Otherwise, + null operation (returns) until that time. + + Returns a value indicating whether there is more work to be + done. + + + + Expected exception metadata. + + + + + Private constructor. + + + + + Creates a new expected exception metadata wrapper. + + Attribute value. + + + + The expected exception attribute. + + + + + Gets the type of the expected exception. + + + + + Gets any message to include in a failure. + + + + + A simple wrapper for a priority integer value that overrides the + ToString method. + + + + + Initializes a new instance of the Priority class. + + The priority. + + + + Gets the priority as string. + + Returns the priority. + + + + Gets the priority value. + + + + + The set of provider attributes. + + + + + Initializes the VSTT metadata provider. + + + + + Gets VSTT [TestClass] attribute. + + + + + Gets VSTT [Ignore] attribute. + + + + + Gets VSTT [ClassInitialize] attribute. + + + + + Gets VSTT [Priority] attribute. + + + + + Gets VSTT [ClassCleanup] attribute. + + + + + Gets VSTT [TestInitialize] attribute. + + + + + Gets VSTT [TestCleanup] attribute. + + + + + Gets VSTT [Description] attribute. + + + + + Gets VSTT [Timeout] attribute. + + + + + Gets VSTT [Owner] attribute. + + + + + Gets VSTT [ExpectedException] attribute. + + + + + Gets VSTT [AssemblyInitialize] attribute. + + + + + Gets VSTT [AssemblyCleanup] attribute. + + + + + Gets VSTT [TestMethod] attribute. + + + + + Gets VSTT [TestProperty] attribute. + + + + + Test class wrapper. + + + + + Construct a new test class metadata interface. + + Assembly metadata interface object. + + + + Creates a new test class wrapper. + + Assembly metadata object. + Type of the class. + + + + Test Type. + + + + + Collection of test method interface objects. + + + + + A value indicating whether tests are loaded. + + + + + A dictionary of method types and method interface objects. + + + + + Gets a collection of test method wrapper instances. + + A collection of test method interface objects. + + + + Exposes the name of the test class. + + Returns the name of the test class. + + + + Gets the test assembly metadata. + + + + + Gets the underlying Type of the test class. + + + + + Gets the name of the test class. + + + + + Gets a value indicating whether an Ignore attribute present + on the class. + + + + + Gets any test initialize method. + + + + + Gets any test cleanup method. + + + + + Gets any class initialize method. + + + + + Gets any class cleanup method. + + + + + Methods enum. + + + + + Initialize method. + + + + + Cleanup method. + + + + + Test init method. + + + + + Test cleanup method. + + + + + A provider wrapper for a test method. + + + + + Property name for the TestContext. + + + + + Default value for methods when no priority attribute is defined. + + + + + An empty object array. + + + + + Method reflection object. + + + + + Private constructor, the constructor requires the method reflection object. + + + + + Creates a new test method wrapper object. + + The reflected method. + + + + Call the WriteLine method. + + String to WriteLine. + + + + Decorates a test class instance with the unit test framework's + specific test context capability, if supported. + + Instance to decorate. + + + + Get any attribute on the test method that are provided dynamically. + + + Dynamically provided attributes on the test method. + + + + + Invoke the test method. + + Instance of the test class. + + + + Exposes the name of the test method as a string. + + Returns the name of the test method. + + + + Allows the test to perform a string WriteLine. + + + + + Gets the underlying reflected method. + + + + + Gets a value indicating whether there is an Ignore attribute. + + + + + Gets any description marked on the test method. + + + + + Gets the name of the method. + + + + + Gets the Category. + + + + + Gets the owner name of the test. + + + + + Gets any expected exception attribute information for the test method. + + + + + Gets any timeout. A Nullable property. + + + + + Gets a Collection of test properties. + + + + + Gets a collection of test work items. + + + + + Gets Priority information. + + + + + Represents a simple test property with a key/value string pair. + + + + + Initializes a new instance of the TestProperty class. + + + + + Initializes a new instance of the TestProperty class. + + The initial property name. + The initial property value. + + + + Gets or sets the property name. + + + + + Gets or sets the property value. + + + + + A wrapper for the unit test context capability of Visual Studio Team + Test's unit test framework. + + + + + Create a new unit test context wrapper for the test method. + + Test method. + + + + Constructor of a new unit test context. + + + + + Test method. + + + + + Used to write trace messages while the test is running. + + Format string. + The arguments. + + + + Throw a not supported exception. + + Functionality that is not supported (string). + A new NotSupportedException. + + + + Adds a file name to the list in TestResult.ResultFileNames. + + Filename to add as a result. + + + + Begins a timer with the specified name. + + The name of the timer to create. + + + + Ends a timer with the specified name. + + Name of the timer. + + + + Cache of properties. + + + + + Gets test properties. + + + + + Gets current data row when test is used for data driven testing. + + + + + Gets current data connection row when test is used for data driven testing. + + + + + Gets the name of the test method. + + + + + Gets the current enum outcome - passed, failed, or inconclusive. + + + + + Assembly metadata for the Visual Studio Team Test unit test framework. + + + + + Assembly reflection object. + + + + + Assembly initialization method information. + + + + + Assembly cleanup method information. + + + + + Unit test provider used for the assembly. + + + + + The unit test harness. + + + + + Creates a new unit test assembly wrapper. + + Unit test metadata provider. + A reference to the unit test harness. + Assembly reflection object. + + + + Reflect and retrieve the test class metadata wrappers for + the test assembly. + + Returns a collection of test class metadata + interface objects. + + + + Gets the name of the test assembly. + + + + + Gets the unit test provider instance. + + + + + Gets any assembly initialize method. + + + + + Gets any assembly cleanup method. + + + + + Gets the test harness used to initialize the assembly. + + + + + Gets the test harness as a unit test harness. + + + + + Provider for the Visual Studio Team Test unit test (UT) framework + metadata. + + + + + Name of this provider. + + + + + The capabilities of the VSTT UTF provider. + + + + + Whether the capability is supported by this provider. + + Capability type. + A value indicating whether the capability is available. + + + + Create a new Visual Studio Team Test unit test framework provider + instance. + + + + + Cache of assemblies and assembly unit test interface objects. + + + + + VSTT unit test provider constructor; takes an assembly reference to + perform reflection on to retrieve all test class types. In this + implementation of an engine for the VSTT metadata, only a single + test Assembly can be utilized at a time for simplicity. + + The unit test harness. + Assembly reflection object. + Returns the assembly metadata interface. + + + + Check if the Exception is actually a failed assertion. + + Exception object to check. + True if the exception is actually an assert failure. + + + + Gets the name of the provider. + + + + + Gets the specialized capability descriptor. + + + + + Settings for the unit test system. + + + + + The tag expression key name. + + + + + By default test methods are sorted. + + + + + By default test classes are sorted. + + + + + Settings for the unit test system. + + + + + Gets the parameters from the response file. + + The parameters. + + + + Gets the components initialized by the entry-point assembly. These + are the dynamically loaded objects that may be needed by the + TestHarness. + + The components. + + + + Gets the log providers. + + + + + Gets or sets a set of sample tags for use in a tag editor screen. + + + + + Gets the list of test assemblies. + + The test assembly. + + + + Gets or sets the test service provider. The test service lights up + advanced out-of-process communication, reporting, logging, and + other valuable services. + + + + + Gets or sets the test harness. + + The test harness. + + + + Gets or sets the test service hostname to try using. Defaults to + localhost. + + + + + Gets or sets the test service port to try using. Defaults to 8000. + + + + + Gets or sets the test service path to try using. Defaults to + /externalInterface/. + + + + + Gets or sets a value indicating whether to start the run + immediately when the test system is run. Defaults to false to enable + the test service to load and information to be provided in the + user interface. + + + + + Gets or sets the type of the TestPanel to create. The type must + derive from Microsoft.Silverlight.Testing.ITestPanel. + + + + + Gets or sets a value indicating whether test methods are sorted + alphabetically. By default this value is true. + + + It is worth understanding that the order of unit test + execution should not affect the results of a test run. Any expected + ordering and verification from multiple test methods should be + refactored into a single unit test. + + + + + Gets or sets a value indicating whether test classes are sorted + alphabetically. This setting is True by default. + + + + + Gets or sets a value indicating whether to show the tag expression + editor user interface before starting the test run. + + + + + Gets or sets the tag expression used for selecting tests to run. + + + + + Gets a list of test classes to run. Enables filtering. + + This property should be considered obsolete. + + + + A manager for the underlying TestSurface Panel. + + + + + Private constructor. + + + + + The test page object. + + + + + A value indicating whether the panel is dirty. + + + + + Remove the children from the test surface, if it has + been used. + + + + + Remove the children from the test surface. + + + + + Gets or sets the Reference to the TestPage user control. + + + + + Gets the TestSurface Panel, and tracks the use for the + current test method. When the test completes, the panel children + will be cleared automatically. + + + + + A result from a test scenario. + + + + + Creates a result record. + + Test method metadata object. + Test class metadata object. + Test result object. + Exception instance, if any. + + + + The string representation of the ScenarioResult. + + Returns a verbose string representation of the result. + + + + Gets or sets the scenario's started time. + + + + + Gets or sets the scenario's finishing time. + + + + + Gets the test method metadata. + + + + + Gets the test class metadata. + + + + + Gets or sets the Result object. + + + + + Gets the Exception instance, if any. + + + + + Container and manager type which handles an entire test assembly; contains sub work + items that represent all actions needed to execute its tests. + + + + + A container that stores instances of the unit test harness and provider. + + + + + TestWorkItem which can contain sub-tasks; the underlying work item is + not marked complete until the Children have completed or an Exception + is thrown. + + + + + Store the underlying tasks. + + + + + Whether the TestTaskContainer::IsComplete should be set to true + after all children have been de-queued. + + + + + Whether the first invoke has happened yet or not. + + + + + Constructor for the TestTaskContainer type. + + + + + Optional method to call on the first invoke. + + + + + Invoke the test container; in turn will execute child work items + as needed. Supports executing multiple items immediately for + performance reasons. + + True if additional work remains, False once IsComplete + is set to true. + + + + Invoke the test container; in turn will execute child work items + as needed. + + The work item used for the invoke. + True if additional work remains, False once IsComplete + is set to true. + + + + Clear the children. + + + + + Dequeue a work item. + + A work item. + + + + Add a new work item to the container to schedule it for invocation. + + New test work item to enqueue. + + + + Adds a new work item that will execute more quickly. + + The item of work. + + + + Enqueues a callback or action that will quickly execute. + + The action or method. + + + + Add a new callback action and schedule it for invocation. + + The action. + + + + Return the top work item, if any, from this container. + + Peek into any test work item. + + + + Work items must call this method to indicate completion of the work + item; in turn fires the Complete event delegates. + + + + + Internal-only version which can be called during a test completion + through the relation - not necessarily the best design; events + may make more sense long-term. + + + + + Call when an exception occurs inside a work item. + + Exception object. + + + + Fire the Complete event. + + Empty event arguments. + + + + Fire the unhandled exception event. + + Exception object. + + + + Gets a value indicating whether the container is marked Complete + when all children have executed or not. + + + + + Gets a value indicating whether sub tasks remain. + + + + + Complete event is fired when the underlying WorkItemComplete method + is called by the work item. + + + + + Event fired when an exception is thrown and unhandled within the + underlying Invoke sequence. + + + + + Gets or sets a value indicating whether the task can execute + immediately. + + + + + The unit test provider. + + + + + Initializes a new unit test work item container. + + The unit test harness. + The unit test metadata provider. + + + + Logs a new message. + + Message object. + + + + Logs a message about the harness. + + Information about the harness. + + + + Gets the log message writer for the unit test system. + + + + + Gets the test harness instance. + + + + + Gets the unit test provider instance. + + + + + The test run filter object. + + + + + Unit test provider-agnostic assembly metadata. + + + + + Container of work items for running test classes. + + + + + Create a new assembly manager, takes in the harness, provider + reference and actual IAssembly object. + + The test run filter object. + Harness object. + The unit test metadata provider. + The test assembly metadata object. + + + + When the test run is ready to test the underlying test assembly that + this class manages, perform reflection and enqueue work items to run + the tests. + + + + + The assembly initialize method. + + + + + The assembly cleanup method. + + + + + Reflect over all test classes in the assembly and add any which are not + filtered out into the test work item queue. + + + + + Helper to enqueue a new method dispatcher. + + The method reflection object. + + + + Gets the collection of all the instances of the assembly's test + classes, used to keep a single reference of the type. + + + + + A method container. + + + + + The timeout time. + + + + + The test method metadata. + + + + + Constructs a new method container. + + + + + Constructs a new method container. + + An instance of the method's type. + The method reflection object. + The test method. + + + + The task that involves the method, and contains its own internal + test queue, if needed for asynchronous tasks. + + + + + The reflection object for the method. + + + + + Invoke into the method. + + Returns the condition of any remaining work. + + + + On the first invoke, make sure there's a task to call the method. + + + + + Gets the method's reflection object. + + + + + A dictionary that manages single instances of types for use across the + unit test system. + + + + + Returns the instance for a Type; if there is not an instance yet, + this will use Activator.CreateInstance to create it. + + The Type instance to retrieve. + Returns an instance of the Type. Returns a new instance + if the Type has not yet been used. + + + + Remove any instance for the type. + + The Type of instance to remove. + + + + Test class manager. + + + + + Test run filter object. + + + + + Reference to the class and its metadata. + + + + + Queue of any tests to run. + + + + + Class instance. + + + + + A container type that handles an entire test class throughout the + test run. + + Test run filter object. + The unit test harness. + The test class metadata interface. + The object instance. + The unit test provider. + + + + Code run the first time this container is invoked. + + + + + Custom tests need to be prepared before use. + + + + + The test initialize method. + + + + + The test cleanup method. + + + + + Reflect through the class to find any test methods, and add them to + the list of queued methods. Also, sorts the methods if appropriate + based on the settings file. + + + + + Add a new method dispatcher to the test work item queue. This is a + work item container which is able to manage its own internal test + work item queue. + + The method reflection object. + + + + A special type dedicated to keeping a running stack of the dispatch + managers that are actually enabled for "work item" use. The current + dispatcher is used by the test work item queue. + + + + + Dispatcher stack; a stack of work item containers. + + + + + Creates a new empty stack for work item containers. + + + + + Push a new dispatcher onto the stack. + + The composite work item to push. + + + + Pop a dispatcher off the stack. + + Returns the top-most container. Throws an + InvalidOperationException if none is available. + + + + Gets the current test work item dispatcher, which is the dispatcher + on the top of the stack. Returns null if there is none. + + + + + Manager for planning, processing, and reporting the result of a single + test method for a unit test provider. + + + + + Underlying test class object. + + + + + Underlying test method object. + + + + + Reference to an instance of the test class. + + + + + Scenario result of the test method. + + + + + The started time of execution. + + + + + Stores a collection of written lines. + + + + + A value indicating whether the bug attribute was present on this + method. If it is, the result will be inverted at completion. + + + + + Contains the main test contents. + + + + + Constructor for a test method manager, which handles executing a single test method + for a unit test provider. + + The unit test harness object. + The test class metadata object. + The test method metadata object. + The test class instance. + The unit test provider. + + + + Log a start message. + + + + + Log an end message. + + + + + Handles the write line event for the test method. + + The string event arguments. + + + + First invoke, plan for the method's execution. + + + + + Sets the start and finish times on the ScenarioResult object. + + + + + Creates the ScenarioResult instance for this test method. + + The initial test outcome value. + + + + Process the result. + + Source object. + Event arguments. + + + + Process an unhandled exception for the method. + + Source object. + Unhandled exception event arguments. + + + + Create a new method container to enclose a reflected method for execution. + + The method reflection object. + + + + Gets or sets a value indicating whether the bug attribute's logic + has already been processed. + + + + + Gets the write line output list. + + + + + A container which is able to attach to the underlying test dispatcher + stack to enable advanced asynchronous functionality, when supported. + + + + + The unit test harness. + + + + + The granularity of the contained item. + + + + + The test method metadata object. + + + + + Initializes dispatcher-stack attaching method container work item. + + Test harness. + Test instance. + Method reflection object. + Test method metadata. + Granularity of test. + + + + Connect to dispatcher stack for advanced functions, if supported. + + + + + Check a MethodInfo for the advanced async attribute. + + True if the work item queue is supported. + + + + A work item for tests to use which will call the delegate when the work + item is executed. + + + + + Stored void delegate. + + + + + Create a new Callback work item. + + Action to execute on Invoke. + + + + Execute the callback. + + Whether the work item is complete. + + + + A test work item that is complete once the condition is asserted. + + + + + The conditional delegate. + + + + + Construct a new conditional work item. + + Conditional delegate. + + + + Invoke the condition, will continue invoking until + the condition is false. + + Completes the invocation once the condition is true. + + + + A simple work item that invokes a method through the reflection + MethodInfo instance. + + + + + An empty object array. + + + + + An object instance. + + + + + Method reflection object. + + + + + The test method to invoke. + + + + + Creates a new method invoke work item for a MethodInfo instance. + + The type instance. + The method on the type to invoke when the + work item is executed. + The test method metadata. + + + + Invokes the underlying method on the instance and marks the + test work item as complete. + + False, noting the completion of the work item. + + + + Unit test providers. + + + + + List of unit test providers. + + + + + Static constructor that initializes the built-in unit test metadata providers. + + + + + Gets the unit test provider for an assembly. The framework only + currently supports a single provider per test assembly, so if more + than one registered provider can handle the assembly, at runtime an + InvalidOperationException is thrown. + + The test harness making the request. + Assembly reflection object. + The unit test provider for the test assembly. Throws if + more than one can process the assembly. Returns null if there is + not a provider for the assembly. + + + + Returns the IAssembly provider for an assembly. + + Test harness object. + Assembly reflection object. + Returns null or an IAssembly instance. + + + + Gets the list of Unit Test providers. + + + + + A dictionary that can store just about any kind of object, keyed off any + object. As a Hashtable, it permits using keys of + - enums + - objects + - types + + This makes it ideal for use in decorating and adorning special types in + the system, such as log messages. + + A strongly-typed decorator key could come from an enum value, while a + prototype extension to the test system could simply use a string key for + organizing. + + In all instances, the resulting object needs to be cast appropriately. + + + + + Check if a decorator exists. + + The decorator key object. + + Returns a value indicating whether the decorator key exists. Even + if the key exists, the instance value for the key could be set to + null, yielding a null instance. + + + + + Check if a set of decorators exists. + + The set of decorator(s) of interest. + + Returns a value indicating whether the decorators of interest were + present. + + + + + Retrieves the decorator instance if it exists. If not, this method + returns null. + + The decorator key object. + + Returns the instance or null if it does not exist. No exceptions + are thrown in this method. + + + + + Helper functionality for dealing with embedded resources in an assembly. + + + + + Get a string containing the text of an embedded resource in an + assembly. + + + An instance whose assembly can be retrieved through reflection. + + + Complete embedded resource name. + + + A string containing the embedded resource's string contents. + + + + + A simple factory used for creating new log messages. + + + + + Create a new LogMessage instance. + + Returns a new LogMessage instance. + + + + Create a new LogMessage instance. + + The type of message to create. + Returns a new LogMessage instance. + + + + Gets or sets the default log message type used for the creation of + unspecific log message types. + + + + + Well-known keys that can be used to mark decorator instances in log + message objects. + + + + + Key for a decorator that is a simple Exception object. + + + + + Key for a decorator that is a simple Name string property. + + + + + An associated TestOutcome value. + + + + + The stage of a message or event. + + + + + The granularity of a message or event. + + + + + A number of possible test outcomes or results. For compatibility, this + information resembles that of the desktop test framework, although many + of the states may not apply or be valid for an in-browser test harness. + + + + + A test outcome of Error. + + + + + A test outcome of Failed. + + + + + A test outcome of Timeout. + + + + + A test outcome of Aborted. + + + + + A test outcome of Inconclusive. + + + + + A test outcome of a run that was aborted, but passed. + + + + + A test outcome of NotRunnable. + + + + + A test outcome of NotExecuted. + + + + + A test outcome of Disconnected. + + + + + A test outcome of Warning. + + + + + A test outcome of Passed. + + + + + A test outcome of Completed. + + + + + A test outcome of InProgress. + + + + + A test outcome of Pending. + + + + + The stage of a test scenario, case or system running. + + + + + In the process of starting. + + + + + Currently running. + + + + + Finishing up. + + + + + The test is canceling. + + + + + Provides a property that will attach and detach a known event handler + delegate when the bit is flipped. + + + + + The event to fire when attached. + + + + + Whether the event handler is attached as a global unhandled + exception handler. + + + + + Creates a new exception handler "manager" with the provided + EventHandler. + + The event handler to manage. + + + + Mark the Handled property in the event args as True to stop any + event bubbling. + + Event arguments. + + Value indicating whether the Exception should be marked as handled. + + + + + Return the Exception property from the EventArgs. + + Event arguments. + + Returns the Exception object that the event arguments stores. + + + This method is compatible with the full desktop framework as well as + Silverlight. + + + + + Internal event that is hooked up to the global exception handler. + + Source object of the event. + Event arguments. + + + + Called after a change to the attachment field value. + + + + + Attach the handler globally. + + + + + Detach the handler globally. + + + + + Gets or sets a value indicating whether the handler is currently + attached to the global exception handler. + + + + + A log message. + + + + + The default log message used during initialization. + + + + + Initializes a new log message of the default message type. + + + + + Initializes a new log message. + + The message type. + + + + Converts to string representation. + + A string version of the LogMessage. + + + + Check if a decorator is present on the LogMessage. + + The decorator of interest. + + Returns a value indicating whether the decorator is present in the + DecoratorDictionary. + + + + + Check if a set of decorators are present. + + The decorator(s) of interest. + + Returns a value indicating whether the decorator(s) of interest are + present. + + + + + Gets the set of decorator instances attached to the log message. + + + + + Gets or sets the type of message. + + + + + Gets or sets the log's message. + + + + + Gets or sets the decorator type for the message. + + + The type of decorator. Only one explicit Type is permitted, + although multiple types within the same type hierarchy are + legitimate. + + Returns the instance of the decorator, if any. + + + + The hierarchy of test execution represented in more generic terms, this + allows for more robust and useful actions by log providers. + + + + + Harness-level granularity. + + + + + Group of test-level granularity. + + + + + Test-level granularity. + + + + + Scenario-level granularity. + + + + + The most verbose log provider, this calls .ToString() on each and every + LogMessage that it processes. The output will appear in an attached + debugger's "Output" window. + + + + + Initializes a new instance of the DebugOutputProvider class. + + + + + Display a LogMessage in the debug output window. + + Message object. + + + + Gets or sets a value indicating whether any TestResult failures will + be reported, regardless of whether the TestResult type is being + monitored for debug output. + + + + + Gets or sets a value indicating whether all messages appear in the + debug output. + + + + + Set of defined types of log messages to allow for some level of + filtering and selective processing of log messages. + + + + + Pass, fail, etc. + + + + + Debug::WriteLine or tracing. + + + + + Non-fatal log message. + + + + + Fatal error message. + + + + + Information about a known defect. + + + + + General information similar to a Console::WriteLine. + + + + + Operating system setting or platform values. + + + + + New unit of test or test run note. + + + + + Related test systems or out-of-process communication information. + + + + + Event information marking the completion of a test run. + + + + + Creates a new TestHarnessCompletedEventArgs. + + The final test harness state. + + + + Gets the final test harness state. + + This contains the final pass versus fail result at a minimum. + Specific harnesses may extend the type to contain additional + information, logs, scenario counts, or anything else. + + + + + A type which handles preparing the underlying dispatcher or timer from + which the test work items execute. + + + + + Millisecond interval to use for the interval between DispatcherTimer + ticks. + + + + + Dispatcher timer. + + + + + Creates a new run method manager using the default value for the + timer's millisecond interval. + + + Conditional delegate which returns true as long as there is + additional work. + + + + + Sets up a new run method manager. + + + Conditional delegate which returns true as long as there is + additional work. + + Milliseconds between ticks, at a + minimum. + + + + Begin the execution process by hooking up the underlying + DispatcherTimer to call into the test framework regularly and + perform test work items. + + + + + Call into the underlying work item queue, if the method manager is + still set to run. + + Sending object. + Event arguments. + + + + Base class representing the overall state of a test run. + + + + + Increment the failures counter. + + + + + Increments the total scenarios counter. + + + + + Gets the count of failing scenarios. + + + + + Gets the total count of scenarios run. + + + + + Gets a value indicating whether the status recorded indicates a + failure. + + + + + A set of helper methods for interacting with methods and types that are + marked with attributes. + + + + + Retrieve all types in an assembly that are decorated with a specific + attribute. + + Assembly to search. + + Instance of the Type of attribute that marks interesting methods. + + + A collection of types from the assembly. An empty collection is + returned if no types were found matching the constraints. + + + + + Given a MethodInfo type, returns the attributes (if any) that are of + the decoratingAttribute parameter's type. + + MemberInfo instance. + Attribute of interest. + + A collection populated with the Attribute instances. + + + + + Given a MethodInfo type, returns the attributes (if any) that are of + the decoratingAttribute parameter's type. + + MemberInfo instance. + Attribute of interest. + A value indicating whether to look for + inheriting custom attributes. + + A collection populated with the Attribute instances. + + + + + Given a test method, returns the attributes (if any) that are of + the decoratingAttribute parameter's type. + + ITestMethod instance. + Attribute of interest. + Whether to inherit attributes. + + A collection populated with the Attribute instances. + + + + + Retrieve a list of Reflection.Assembly types from a set of + instances and/or types. + + Set of instances or types. + A set of Assembly instances from the instances or types. + + + + Returns a list of unique assemblies from a set of types. + + Set of types. + + A list of unique Assembly instances from the input types. + + + + + Given a list of attributes, retrieves a single Attribute instance. + Will throw an exception if multiple attributes exist on the method. + + List of attributes. + + The attribute instance, or null if it does not exist. + + + + + Given a method and a decorative attribute of interest, retrieves a + single Attribute instance. Will throw an exception if multiple + attributes exist on the method. + + MemberInfo instance. + + Attribute type of interest. + + + The attribute instance, or null if it does not exist. + + + + + Given a test method and a decorative attribute of interest, + retrieves a single Attribute instance. Will throw an exception if + multiple attributes exist on the method. + + ITestMethod instance. + + Attribute type of interest. + + + The attribute instance, or null if it does not exist. + + + + + Given a test method and a decorative attribute of interest, + retrieves a single Attribute instance. Will throw an exception if + multiple attributes exist on the method. + + ITestMethod instance. + + Attribute type of interest. + + A value indicating whether to look for custom + inherited attributes. + + The attribute instance, or null if it does not exist. + + + + + Returns a value indicating whether a method has the attribute. + + MemberInfo instance. + Attribute of interest. + + A value indicating whether the type has the decorating attribute or + not. + + + + + Returns a value indicating whether a method has the attribute. + + ITestMethod instance. + Attribute of interest. + + A value indicating whether the type has the decorating attribute or + not. + + + + + Return a collection of MethodInfo instances given a type to look + through and the attribute of interest. + + Type to look through for methods. + Attribute of interest. + + A collection of the method reflection objects, if any, with the + marked attribute present. + + + + + Retrieve a MethodInfo from a single decorated method inside a type, + if any. Throws an Exception if there are > 1 methods that are + decorated with the attribute. + + Type of interest. + Attribute of interest. + + MethodInfo reflection object. Null if none are found. + + + + + Exposes clipboard functionality within Silverlight 3 applications when a + Silverlight 4 runtime is in use. + + + + + An empty array of object type. + + + + + Backing field for set text. + + + + + Backing field for get text. + + + + + Backing field for the contains text method. + + + + + A value indicating whether the clipboard feature is present. This + assumes that all 3 methods are present, in their current form for a + more recent runtime. + + + + + Sets Unicode text data to store on the clipboard, for later access + with System.Windows.Clipboard.GetText(). + + A string that contains the Unicode text data to + store on the clipboard. + + + + Retrieves Unicode text data from the system clipboard, if Unicode + text data exists. + + If Unicode text data is present on the system clipboard, + returns a string that contains the Unicode text data. Otherwise, + returns an empty string. + + + + + Queries the clipboard for the presence of data in the Unicode text + format. + + True if the system clipboard contains Unicode text data; + otherwise, false. + + + + Prepares to use the System.Windows.Clipboard type and throws an + exception if the feature cannot be completely located. + + + + + Prepares the type and reflects for new Silverlight features. + + + + + Gets a value indicating whether the clipboard feature is available + and supported. + + + + + A framework element that permits a binding to be evaluated in a new data + context leaf node. + + The type of dynamic binding to return. + + + + Gets or sets the string value binding used by the control. + + + + + Identifies the Value dependency property. + + + + + Initializes a new instance of the BindingEvaluator class. + + + + + Initializes a new instance of the BindingEvaluator class, + setting the initial binding to the provided parameter. + + The initial string value binding. + + + + Clears the data context so that the control does not keep a + reference to the last-looked up item. + + + + + Updates the data context of the framework element and returns the + updated binding value. + + The object to use as the data context. + If set to true, this parameter will + clear the data context immediately after retrieving the value. + Returns the evaluated T value of the bound dependency + property. + + + + Updates the data context of the framework element and returns the + updated binding value. + + The object to use as the data context. + Returns the evaluated T value of the bound dependency + property. + + + + Gets or sets the data item string value. + + + + + Gets or sets the value binding. + + + + + Specifies values that control the behavior of a control positioned + inside another control. + + Stable + + + + Specifies that the control should be positioned on the left of the + control. + + + + + Specifies that the control should be positioned on top of the + control. + + + + + Specifies that the control should be positioned on the right of the + control. + + + + + Specifies that the control should be positioned at the bottom of + control. + + + + + The InteractionHelper provides controls with support for all of the + common interactions like mouse movement, mouse clicks, key presses, + etc., and also incorporates proper event semantics when the control is + disabled. + + + + + The threshold used to determine whether two clicks are temporally + local and considered a double click (or triple, quadruple, etc.). + 500 milliseconds is the default double click value on Windows. + This value would ideally be pulled form the system settings. + + + + + The threshold used to determine whether two clicks are spatially + local and considered a double click (or triple, quadruple, etc.) + in pixels squared. We use pixels squared so that we can compare to + the distance delta without taking a square root. + + + + + Reference used to call UpdateVisualState on the base class. + + + + + Initializes a new instance of the InteractionHelper class. + + Control receiving interaction. + + + + Update the visual state of the control. + + + A value indicating whether to automatically generate transitions to + the new state, or instantly transition to the new state. + + + UpdateVisualState works differently than the rest of the injected + functionality. Most of the other events are overridden by the + calling class which calls Allow, does what it wants, and then calls + Base. UpdateVisualState is the opposite because a number of the + methods in InteractionHelper need to trigger it in the calling + class. We do this using the IUpdateVisualState internal interface. + + + + + Update the visual state of the control. + + + A value indicating whether to automatically generate transitions to + the new state, or instantly transition to the new state. + + + + + Handle the control's Loaded event. + + The control. + Event arguments. + + + + Handle changes to the control's IsEnabled property. + + The control. + Event arguments. + + + + Handles changes to the control's IsReadOnly property. + + The value of the property. + + + + Update the visual state of the control when its template is changed. + + + + + Check if the control's GotFocus event should be handled. + + Event arguments. + + A value indicating whether the event should be handled. + + + + + Base implementation of the virtual GotFocus event handler. + + + + + Check if the control's LostFocus event should be handled. + + Event arguments. + + A value indicating whether the event should be handled. + + + + + Base implementation of the virtual LostFocus event handler. + + + + + Check if the control's MouseEnter event should be handled. + + Event arguments. + + A value indicating whether the event should be handled. + + + + + Base implementation of the virtual MouseEnter event handler. + + + + + Check if the control's MouseLeave event should be handled. + + Event arguments. + + A value indicating whether the event should be handled. + + + + + Base implementation of the virtual MouseLeave event handler. + + + + + Check if the control's MouseLeftButtonDown event should be handled. + + Event arguments. + + A value indicating whether the event should be handled. + + + + + Base implementation of the virtual MouseLeftButtonDown event + handler. + + + + + Check if the control's MouseLeftButtonUp event should be handled. + + Event arguments. + + A value indicating whether the event should be handled. + + + + + Base implementation of the virtual MouseLeftButtonUp event handler. + + + + + Check if the control's KeyDown event should be handled. + + Event arguments. + + A value indicating whether the event should be handled. + + + + + Check if the control's KeyUp event should be handled. + + Event arguments. + + A value indicating whether the event should be handled. + + + + + Gets the control the InteractionHelper is targeting. + + + + + Gets a value indicating whether the control has focus. + + + + + Gets a value indicating whether the mouse is over the control. + + + + + Gets a value indicating whether the read-only property is set. + + + + + Gets a value indicating whether the mouse button is pressed down + over the control. + + + + + Gets or sets the last time the control was clicked. + + + The value is stored as Utc time because it is slightly more + performant than converting to local time. + + + + + Gets or sets the mouse position of the last click. + + The value is relative to the control. + + + + Gets the number of times the control was clicked. + + + + + The ItemContainerGenerator provides useful utilities for ItemsControls. + + Preview + + + + A Panel that is used as the ItemsHost of the ItemsControl. This + property will only be valid when the ItemsControl is live in the + tree and has generated containers for some of its items. + + + + + A ScrollViewer that is used to scroll the items in the ItemsHost. + + + + + Initializes a new instance of the ItemContainerGenerator. + + + The ItemsControl being tracked by the ItemContainerGenerator. + + + + + Apply a control template to the ItemsControl. + + + + + Prepares the specified container to display the specified item. + + + Container element used to display the specified item. + + + The ItemContainerStyle for the parent ItemsControl. + + + + + Update the style of any generated items when the ItemContainerStyle + has been changed. + + The ItemContainerStyle. + + Silverlight does not support setting a Style multiple times, so we + only attempt to set styles on elements whose style hasn't already + been set. + + + + + Scroll the desired element into the ScrollHost's viewport. + + Element to scroll into view. + + + + Gets or sets the ItemsControl being tracked by the + ItemContainerGenerator. + + + + + Gets a Panel that is used as the ItemsHost of the ItemsControl. + This property will only be valid when the ItemsControl is live in + the tree and has generated containers for some of its items. + + + + + Gets a ScrollViewer that is used to scroll the items in the + ItemsHost. + + + + + Numeric utility methods used by controls. These methods are similar in + scope to the WPF DoubleUtil class. + + + + + Check if a number is zero. + + The number to check. + True if the number is zero, false otherwise. + + + + Check if a number isn't really a number. + + The number to check. + + True if the number is not a number, false if it is a number. + + + + + Determine if one number is greater than another. + + First number. + Second number. + + True if the first number is greater than the second, false + otherwise. + + + + + Determine if one number is less than or close to another. + + First number. + Second number. + + True if the first number is less than or close to the second, false + otherwise. + + + + + Determine if two numbers are close in value. + + First number. + Second number. + + True if the first number is close in value to the second, false + otherwise. + + + + + NanUnion is a C++ style type union used for efficiently converting + a double into an unsigned long, whose bits can be easily + manipulated. + + + + + Floating point representation of the union. + + + + + Integer representation of the union. + + + + + Provides event data for various routed events that track property values + changing. Typically the events denote a cancellable action. + + + The type of the value for the dependency property that is changing. + + Preview + + + + Private member variable for Cancel property. + + + + + Initializes a new instance of the + + class. + + + The identifier + for the property that is changing. + + The previous value of the property. + + The new value of the property, assuming that the property change is + not cancelled. + + + True if the property change is cancellable by setting + + to true in event handling. false if the property change is not + cancellable. + + + + + Gets the + identifier for the property that is changing. + + + The identifier + for the property that is changing. + + + + + Gets a value that reports the previous value of the changing + property. + + + The previous value of the changing property. + + + + + Gets or sets a value that reports the new value of the changing + property, assuming that the property change is not cancelled. + + + The new value of the changing property. + + + + + Gets a value indicating whether the property change that originated + the RoutedPropertyChanging event is cancellable. + + + True if the property change is cancellable. false if the property + change is not cancellable. + + + + + Gets or sets a value indicating whether the property change that + originated the RoutedPropertyChanging event should be cancelled. + + + True to cancel the property change; this resets the property to + . + false to not cancel the property change; the value changes to + . + + + Attempted to cancel in an instance where + + is false. + + + + + Gets or sets a value indicating whether internal value coercion is + acting on the property change that originated the + RoutedPropertyChanging event. + + + True if coercion is active. false if coercion is not active. + + + This is a total hack to work around the class hierarchy for Value + coercion in NumericUpDown. + + + + + Represents methods that handle various routed events that track property + values changing. Typically the events denote a cancellable action. + + + The type of the value for the dependency property that is changing. + + + The object where the initiating property is changing. + + Event data for the event. + Preview + + + + The ScrollExtensions class provides utility methods for scrolling items + ScrollViewers. + + + + + The amount to scroll a ScrollViewer for a line change. + + + + + Scroll a ScrollViewer vertically by a given offset. + + The ScrollViewer. + The vertical offset to scroll. + + + + Scroll a ScrollViewer horizontally by a given offset. + + The ScrollViewer. + The horizontal offset to scroll. + + + + Scroll the ScrollViewer up by a line. + + The ScrollViewer. + + + + Scroll the ScrollViewer down by a line. + + The ScrollViewer. + + + + Scroll the ScrollViewer left by a line. + + The ScrollViewer. + + + + Scroll the ScrollViewer right by a line. + + The ScrollViewer. + + + + Scroll the ScrollViewer up by a page. + + The ScrollViewer. + + + + Scroll the ScrollViewer down by a page. + + The ScrollViewer. + + + + Scroll the ScrollViewer left by a page. + + The ScrollViewer. + + + + Scroll the ScrollViewer right by a page. + + The ScrollViewer. + + + + Scroll the ScrollViewer to the top. + + The ScrollViewer. + + + + Scroll the ScrollViewer to the bottom. + + The ScrollViewer. + + + + Get the top and bottom of an element with respect to its parent. + + The element to get the position of. + The parent of the element. + Vertical offset to the top of the element. + + Vertical offset to the bottom of the element. + + + + + Common TypeConverter functionality. + + + + + Returns a value indicating whether this converter can convert an + object of the given type to an instance of the expected type. + + Expected type of the converter. + + The type of the source that is being evaluated for conversion. + + + A value indicating whether the converter can convert the provided + type. + + + + + Attempts to convert a specified object to an instance of the + expected type. + + Expected type of the converter. + TypeConverter instance. + The object being converted. + + The instance of the expected type created from the converted object. + + + + + Determines whether conversion is possible to a specified type. + + Expected type of the converter. + + Identifies the data type to evaluate for conversion. + + + A value indicating whether conversion is possible. + + + + + Attempts to convert a specified object to an instance of the + desired type. + + TypeConverter instance. + The object being converted. + + The type to convert the value to. + + + The value of the conversion to the specified type. + + + + + Names and helpers for visual states in the controls. + + + + + Common state group. + + + + + Normal state of the Common state group. + + + + + Normal state of the Common state group. + + + + + MouseOver state of the Common state group. + + + + + Pressed state of the Common state group. + + + + + Disabled state of the Common state group. + + + + + Focus state group. + + + + + Unfocused state of the Focus state group. + + + + + Focused state of the Focus state group. + + + + + Selection state group. + + + + + Selected state of the Selection state group. + + + + + Unselected state of the Selection state group. + + + + + Selected inactive state of the Selection state group. + + + + + Expansion state group. + + + + + Expanded state of the Expansion state group. + + + + + Collapsed state of the Expansion state group. + + + + + Popup state group. + + + + + Opened state of the Popup state group. + + + + + Closed state of the Popup state group. + + + + + ValidationStates state group. + + + + + The valid state for the ValidationStates group. + + + + + Invalid, focused state for the ValidationStates group. + + + + + Invalid, unfocused state for the ValidationStates group. + + + + + ExpandDirection state group. + + + + + Down expand direction state of ExpandDirection state group. + + + + + Up expand direction state of ExpandDirection state group. + + + + + Left expand direction state of ExpandDirection state group. + + + + + Right expand direction state of ExpandDirection state group. + + + + + HasItems state group. + + + + + HasItems state of the HasItems state group. + + + + + NoItems state of the HasItems state group. + + + + + Increment state group. + + + + + State enabled for increment group. + + + + + State disabled for increment group. + + + + + Decrement state group. + + + + + State enabled for decrement group. + + + + + State disabled for decrement group. + + + + + InteractionMode state group. + + + + + Edit of the DisplayMode state group. + + + + + Display of the DisplayMode state group. + + + + + DisplayMode state group. + + + + + Edit of the DisplayMode state group. + + + + + Display of the DisplayMode state group. + + + + + Active state. + + + + + Inactive state. + + + + + Active state group. + + + + + Non-watermarked state. + + + + + Watermarked state. + + + + + Watermark state group. + + + + + Unfocused state for Calendar Buttons. + + + + + Focused state for Calendar Buttons. + + + + + CalendarButtons Focus state group. + + + + + Use VisualStateManager to change the visual state of the control. + + + Control whose visual state is being changed. + + + A value indicating whether to use transitions when updating the + visual state, or to snap directly to the new visual state. + + + Ordered list of state names and fallback states to transition into. + Only the first state to be found will be used. + + + + + Gets the implementation root of the Control. + + The DependencyObject. + + Implements Silverlight's corresponding internal property on Control. + + Returns the implementation root or null. + + + + This method tries to get the named VisualStateGroup for the + dependency object. The provided object's ImplementationRoot will be + looked up in this call. + + The dependency object. + The visual state group's name. + Returns null or the VisualStateGroup object. + + + + Represents a that supports + objects, + such as . + + Stable + + + + The DataTemplate to apply to the ItemTemplate property on a + generated HeaderedItemsControl (such as a MenuItem or a + TreeViewItem), to indicate how to display items from the next level + in the data hierarchy. + + + + + The Style to apply to the ItemContainerStyle property on a generated + HeaderedItemsControl (such as a MenuItem or a TreeViewItem), to + indicate how to style items from the next level in the data + hierarchy. + + + + + Initializes a new instance of the + class. + + + + + Gets or sets the collection that is used to generate content for the + next sublevel in the data hierarchy. + + + The collection that is used to generate content for the next + sublevel in the data hierarchy. The default value is null. + + + + + Gets a value indicating whether the ItemTemplate property was set on + the template. + + + + + Gets or sets the to + apply to the + + property on a generated + , such + as a , to + indicate how to display items from the next sublevel in the data + hierarchy. + + + The to apply to the + + property on a generated + , such + as a , to + indicate how to display items from the next sublevel in the data + hierarchy. + + + + + Gets a value indicating whether the ItemContainerStyle property was + set on the template. + + + + + Gets or sets the that is + applied to the item container for each child item. + + + The style that is applied to the item container for each child item. + + + + + Class to encapsulate drag behavior for a UIElement. + + Mature + + + + Inherited code: Requires comment. + + + + + Inherited code: Requires comment. + + + + + Inherited code: Requires comment. + + + + + Create an instance of the DragValidator class. + + + UIElement that represents the source of the drag operation. + + + + + Handle the MouseMove event for the UIElement to update the drag + operation. + + Inherited code: Requires comment. + Inherited code: Requires comment 1. + + + + Handle the MouseLeftButtonUp event for the UIElement to complete the + drag operation. + + Inherited code: Requires comment. + Inherited code: Requires comment 1. + + + + Handle the MouseLeftButtonDown event for the UIElement to start a + drag operation. + + Inherited code: Requires comment. + Inherited code: Requires comment 1. + + + + Invoke the DragStartedEvent handlers. + + + + + Invoke the DragDeltaEvent handlers. + + Inherited code: Requires comment. + + + + Invoke the DragCompletedEvent handlers. + + Inherited code: Requires comment. + Inherited code: Requires comment 1. + + + + Occurs when a drag operation has started. + + + + + Occurs when a drag operation has completed. + + + + + Occurs when a drag operation has progressed. + + + + + Represents a control that redistributes space between the rows of + columns of a control. + + Mature + + Represents the control that redistributes space between columns or rows + of a Grid control. + + Mature + + Represents the control that redistributes space between columns or rows + of a Grid control. + + Mature + + Represents the control that redistributes space between columns or rows + of a Grid control. + + Mature + + Represents the control that redistributes space between columns or rows + of a Grid control. + + Mature + + Represents the control that redistributes space between columns or rows + of a Grid control. + + Mature + + Represents the control that redistributes space between columns or rows + of a Grid control. + + Mature + + Represents the control that redistributes space between columns or rows + of a Grid control. + + Mature + + + + Inherited code: Requires comment. + + + + + Inherited code: Requires comment. + + + + + Default increment parameter. + + + + + Default increment parameter. + + + + + Identifies the + + dependency property. + + + An identifier for the + + dependency property. + + + + + Identifies the + + dependency property. + + + An identifier for the + + dependency property. + + + + + Called when the IsEnabled property changes. + + Sender object. + Property changed args. + + + + Is Null until a resize operation is initiated with ShowsPreview == + True, then it persists for the life of the GridSplitter. + + + + + Is initialized in the constructor. + + + + + Inherited code: Requires comment. + + + + + Holds the state for whether the mouse is over the control or not. + + + + + Initializes a new instance of the + class. + + + + + Builds the visual tree for the + + control when a new template is applied. + + + + + Returns a + + for use by the Silverlight automation infrastructure. + + + A + + for the + object. + + + + + Method to change the visual state of the control. + + + + + Change to the correct visual state for the GridSplitter. + + + True to use transitions when updating the visual state, false to + snap directly to the new visual state. + + + + + Handle the drag completed event to commit or cancel the resize + operation in progress. + + Inherited code: Requires comment. + Inherited code: Requires comment 1. + + + + Handle the drag delta event to update the UI for the resize + operation in progress. + + Inherited code: Requires comment. + Inherited code: Requires comment 1. + + + + Handle the drag started event to start a resize operation if the + control is enabled. + + Inherited code: Requires comment. + Inherited code: Requires comment 1. + + + + Handle the key down event to allow keyboard resizing or canceling a + resize operation. + + Inherited code: Requires comment. + Inherited code: Requires comment 1. + + + + Initialize the resize data and move the splitter by the specified + amount. + + + Horizontal amount to move the splitter. + + + Vertical amount to move the splitter. + + Inherited code: Requires comment. + + + + Called by keyboard event handler to move the splitter if allowed. + + + Horizontal amount to move the splitter. + + + Vertical amount to move the splitter. + + Inherited code: Requires comment. + + + + Creates the preview layer and adds it to the parent grid. + + Grid to add the preview layer to. + + + + Add the preview layer to the Grid if it is not there already and + then show the preview control. + + + + + Remove the preview control from the preview layer if it exists. + + + + + Initialize the resizeData object to hold the information for the + resize operation in progress. + + + Whether or not the preview should be shown. + + + + + Move the splitter and resize the affected columns or rows. + + + Amount to resize horizontally. + + + Amount to resize vertically. + + + Only one of horizontalChange or verticalChange will be non-zero. + + + + + Determine which adjacent column or row definitions need to be + included in the resize operation and set up resizeData accordingly. + + True if it is a valid resize operation. + + + + Cancel the resize operation in progress. + + + + + Get the actual length of the given definition. + + + Row or column definition to get the actual length for. + + + Height of a row definition or width of a column definition. + + + + + Determine the max and min that the two definitions can be resized. + + Inherited code: Requires comment. + + + + Determine the resize behavior based on the given direction and + alignment. + + Inherited code: Requires comment. + Inherited code: Requires comment 1. + + + + Determine the resize direction based on the horizontal and vertical + alignments. + + Inherited code: Requires comment. + + + + Create a DefinitionAbstraction instance for the given row or column + index in the grid. + + Inherited code: Requires comment. + Inherited code: Requires comment 1. + Inherited code: Requires comment 2. + Inherited code: Requires comment 3. + + + + Set the lengths of the two definitions depending on the split + behavior. + + + Inherited code: Requires comment. + + + Inherited code: Requires comment 1. + + + + + Set the height/width of the given row/column. + + Inherited code: Requires comment. + Inherited code: Requires comment 1. + + + + Determine if the given definition has its size set to the "*" value. + + Inherited code: Requires comment. + Inherited code: Requires comment 1. + + + + This code will run whenever the effective resize direction changes, + to update the template being used to display this control. + + + + + Exposes test hooks to unit tests with internal access. + + + + + Gets or sets Inherited code: Requires comment. + + + + + Gets or sets Inherited code: Requires comment. + + + + + Gets or sets the resize data. This is null unless a resize + operation is in progress. + + + + + Gets or sets a value indicating whether the + displays a + preview. + + + True if a preview is displayed; otherwise, false. + + + + + Gets or sets the that is used + for previewing changes. + + + The style that is used to preview changes. + + + + + Gets a value indicating whether or not the control has keyboard + focus. + + + + + Gets a test hook for unit tests with internal access. + + + + + Pretends to be the base class for RowDefinition and ClassDefinition + types so that objects of either type can be treated as one. + + Mature + + + + Creates an instance of the DefinitionAbstraction class based on + the given row or column definition. + + + RowDefinition or ColumnDefinition instance. + + + + + Gets the stored definition cast as a row definition. + + Null if not a RowDefinition. + + + + Gets the stored definition cast as a column definition. + + Null if not a ColumnDefinition. + + + + Gets the MaxHeight/MaxWidth for the row/column. + + + + + Gets the MinHeight/MinWidth for the row/column. + + + + + Gets the Height/Width for the row/column. + + + + + A collection of helper methods for working with double data types. + + Mature + + + + Epsilon is the smallest value such that 1.0+epsilon != 1.0. It + can be used to determine the acceptable tolerance for rounding + errors. + + + Epsilon is normally 2.2204460492503131E-16, but Silverlight 2 + uses floats so the effective epsilon is really 1.192093E-07. + + + + + Inherited code: Requires comment. + + + + + Determine if the two doubles are effectively equal within + tolerances. + + Inherited code: Requires comment. + Inherited code: Requires comment 1. + Inherited code: Requires comment 2. + + + + Inherited code: Requires comment. + + Mature + + + + Inherited code: Requires comment. + + + + + Inherited code: Requires comment. + + + + + Inherited code: Requires comment. + + + + + Inherited code: Requires comment. + + + + + Inherited code: Requires comment. + + Mature + + + + Inherited code: Requires comment. + + + + + Inherited code: Requires comment. + + + + + Inherited code: Requires comment. + + + + + Type to hold the data for the resize operation in progress. + + Mature + + + + Gets or sets Inherited code: Requires comment. + + + + + Gets or sets Inherited code: Requires comment. + + + + + Gets or sets Inherited code: Requires comment. + + + + + Gets or sets Inherited code: Requires comment. + + + + + Gets or sets Inherited code: Requires comment. + + + + + Gets or sets Inherited code: Requires comment. + + + + + Gets or sets Inherited code: Requires comment. + + + + + Gets or sets Inherited code: Requires comment. + + + + + Gets or sets Inherited code: Requires comment. + + + + + Gets or sets Inherited code: Requires comment. + + + + + Gets or sets Inherited code: Requires comment. + + + + + Gets or sets Inherited code: Requires comment. + + + + + Gets or sets Inherited code: Requires comment. + + + + + Gets or sets Inherited code: Requires comment. + + + + + Gets or sets a value indicating whether Inherited code: Requires comment. + + + + + Gets or sets Inherited code: Requires comment. + + + + + Gets or sets Inherited code: Requires comment. + + + + + Gets or sets Inherited code: Requires comment. + + + + + Inherited code: Requires comment. + + Mature + + + + Inherited code: Requires comment. + + + + + Inherited code: Requires comment. + + + + + Inherited code: Requires comment. + + + + + Expose test hooks for internal and private members of the + GridSplitter. + + + + + Reference to the outer 'parent' GridSplitter. + + + + + Initializes a new instance of the InternalTestHook class. + + The grid splitter to hook. + + + + Simulate the DragValidator's DragCompleted event. + + The sender. + Event arguments. + + + + Simulate the DragValidator's DragDelta event. + + The sender. + Event arguments. + + + + Simulate the DragValidator's DragStarted event. + + The sender. + Event arguments. + + + + Simulate using the keyboard to move the splitter. + + Horizontal change. + Vertical change. + + A value indicating whether the splitter was moved. + + + + + Gets the GridSplitter's GridResizeDirection. + + + + + Gets the GridSplitter's PreviewLayer. + + + + + Gets the GridSplitter's ResizeData. + + + + + Exposes types to + UI automation. + + Mature + + + + Initializes a new instance of the + + class. + + + The to + associate with the + . + + + + + Gets the control type for the element that is associated with the UI + Automation peer. + + The control type. + + + + Called by GetClassName that gets a human readable name that, in + addition to AutomationControlType, differentiates the control + represented by this AutomationPeer. + + The string that contains the name. + + + + Gets the control pattern for the + that is + associated with this + . + + + One of the enumeration values. + + + The object that implements the pattern interface, or null if the + specified pattern interface is not implemented by this peer. + + + + + Moves the control. + + + Absolute screen coordinates of the left side of the control. + + + Absolute screen coordinates of the top of the control. + + + + + Resizes the control. + + The new width of the window, in pixels. + + The new height of the window, in pixels. + + + + + Rotates the control. + + + The number of degrees to rotate the control. A positive number + rotates clockwise; a negative number rotates counterclockwise. + + + + + Gets a value indicating whether the control can be moved. + + + True if the element can be moved; otherwise, false. + + + + + Gets a value indicating whether the UI automation element can be + resized. + + + True if the element can be resized; otherwise, false. + + + + + Gets a value indicating whether the control can be rotated. + + + True if the element can be rotated; otherwise, false. + + + + + Represents the control that shows a preview of the GridSplitter's + redistribution of space between columns or rows of a Grid control. + + Mature + + + + Inherited code: Requires comment. + + + + + Inherited code: Requires comment. + + + + + Is Null until the PreviewControl is bound to a GridSplitter. + + + + + Tracks the bound GridSplitter's location for calculating the + PreviewControl's offset. + + + + + Instantiate the PreviewControl. + + + + + Called when template should be applied to the control. + + + + + Bind the the dimensions of the preview control to the associated + grid splitter. + + GridSplitter instance to target. + + + + Gets or sets Inherited code: Requires comment. + + + + + Gets or sets Inherited code: Requires comment. + + + + + Gets or sets the x-axis offset for the underlying render transform. + + + + + Gets or sets the y-axis offset for the underlying render transform. + + + + + Exposes types to UI + automation. + + Stable + + + + Initializes a new instance of the + + class. + + + The to associate + with the + . + + + + + Gets the control type for the + that is associated + with this + . + This method is called by + . + + + The + + enumeration value. + + + + + Gets the name of the + that is associated + with + . + This method is called by + . + + A string that contains TreeView. + + + + Gets a control pattern for the + that is associated + with this + . + + + One of the enumeration values that indicates the control pattern. + + + The object that implements the pattern interface, or null if the + specified pattern interface is not implemented by this peer. + + + + + Gets the collection of child elements of the + that is associated + with this + . + + The collection of child elements. + + + + Retrieves a UI automation provider for each child element that is + selected. + + An array of UI automation providers. + + This API supports the .NET Framework infrastructure and is not + intended to be used directly from your code. + + + + + Gets the TreeView that owns this TreeViewAutomationPeer. + + + + + Gets a value indicating whether the UI automation provider + allows more than one child element to be selected at the same time. + + + True if multiple selection is allowed; otherwise, false. + + + This API supports the .NET Framework infrastructure and is not + intended to be used directly from your code. + + + + + Gets a value indicating whether the UI automation provider + requires at least one child element to be selected. + + + True if selection is required; otherwise, false. + + + This API supports the .NET Framework infrastructure and is not + intended to be used directly from your code. + + + + + Exposes the items in + types to UI + automation. + + Stable + + + + Initializes a new instance of the + + class. + + + The instance + to associate with this + . + + + + + Gets the control type for the + that is + associated with this + . + This method is called by + . + + + The + + enumeration value. + + + + + Gets the name of the + that is + associated with this + . + This method is called by + . + + A string that contains TreeViewItem. + + + + Gets the control pattern for the + that is + associated with this + . + + + One of the enumeration values. + + + The object that implements the pattern interface, or null if the + specified pattern interface is not implemented by this peer. + + + + + Raise the IsSelected property changed event. + + + A value indicating whether the TreeViewItem is selected. + + + + + Raise an automation event when a TreeViewItem is expanded or + collapsed. + + + A value indicating whether the TreeViewItem was expanded. + + + A value indicating whether the TreeViewItem is expanded. + + + + + Displays all child nodes, controls, or content of the control. + + + This API supports the .NET Framework infrastructure and is not + intended to be used directly from your code. + + + + + Hides all nodes, controls, or content that are descendants of the + control. + + + This API supports the .NET Framework infrastructure and is not + intended to be used directly from your code. + + + + + Adds the current element to the collection of selected items. + + + This API supports the .NET Framework infrastructure and is not + intended to be used directly from your code. + + + + + Clears any selection and then selects the current element. + + + This API supports the .NET Framework infrastructure and is not + intended to be used directly from your code. + + + + + Removes the current element from the collection of selected items. + + + This API supports the .NET Framework infrastructure and is not + intended to be used directly from your code. + + + + + Scrolls the content area of a container object in order to display + the control within the visible region (viewport) of the container. + + + This API supports the .NET Framework infrastructure and is not + intended to be used directly from your code. + + + + + Gets the TreeViewItem that owns this TreeViewItemAutomationPeer. + + + + + Gets the state (expanded or collapsed) of the control. + + + The state (expanded or collapsed) of the control. + + + This API supports the .NET Framework infrastructure and is not + intended to be used directly from your code. + + + + + Gets a value indicating whether an item is selected. + + True if an item is selected; otherwise, false. + + This API supports the .NET Framework infrastructure and is not + intended to be used directly from your code. + + + + + Gets the UI automation provider that implements + + and acts as the container for the calling object. + + The UI automation provider. + + This API supports the .NET Framework infrastructure and is not + intended to be used directly from your code. + + + + + A specialized data template selector. + + + + + Initializes a new instance of the DataTemplateSelector type. + + + + + Convert a value to a data template. + + The value. + The target parameter. + ConverterParameter value. + The culture parameter. + Returns the object. + + + + No 2-way databinding support. + + The value. + The target parameter. + ConverterParameter value. + The culture parameter. + Returns the object. + + + + Gets or sets the default data template. + + + + + Gets or sets the test method template. + + + + + Gets or sets the test class template. + + + + + A specialized bool inversion selector. + + + + + Initializes a new instance of the InvertValueConverter class. + + + + + Convert a value to its opposite. Defines that null value will also + return false. + + The value. + The target parameter. + ConverterParameter value. + The culture parameter. + Returns the object. + + + + No 2-way databinding support. + + The value. + The target parameter. + ConverterParameter value. + The culture parameter. + Returns the object. + + + + A notification type for use in the Notifications ItemsControl. + + + + + Name of the template part. + + + + + Identifies the Title dependency property. + + + + + Identifies the CloseButtonVisibility dependency property. + + + + + Backing field for the close button. + + + + + Initializes a new instance of the Notification class. + + + + + Fires the Closed event. + + The event data. + + + + Overrides the on apply template method. + + + + + Connects to the Click event of the Close button. + + The source object. + The event arguments. + + + + Gets or sets the title of the notification. + + + + + Gets or sets the visibility of the close button. + + + + + Closed event that connects to the close button of the notification. + + + + + A class that contains notification information. + + + + + Initialize a new intance of the Notifications type. + + + + + Overrides the on apply template method. + + + + + Adds a notification object to the set of notifications. Connects the + close button handler to automatically remove the notification from + the visual tree. + + A notification instance. + + + + Handles the Closed event from the notification and removes the + child. + + The source object. + The event data. + + + + This class contains information about the test application and its + deployment settings. + + + + + Initializes a new instance of the class. + + + + + Handles the install state changed event. + + The source object. + The event arguments. + + + + Backing field for an installed property. + + + + + Gets a value indicating whether the test application is currently + installed out of browser. + + + + + Gets the text to show the user the state of the out of browser test + application. + + + + + Gets a value indicating whether out of browser is both supported and + not currently installed. + + + + + Gets a value indicating whether out of browser is supported by this + test application. + + + + + A simple implementation similar to XElement. + + + + + Backing field for child elements. + + + + + Backing field for attributes. + + + + + Backing field for the element name. + + + + + Backing field for optional XML namespace. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the element. + + The name of the element. + + + + Initializes a new instance of the element. + + The name of the element. + The XML namespace of the element. + + + + Initializes a new instance of the class using the reader as the + current root of the element. + + The XmlReader instance. + + + + Sets the value of a new child element. + + The element name. + The value of the new element. + + + + Sets the value of a new child element with an XML namespace value. + + The element name. + The value of the new element. + The XML namespace. + + + + Sets the value of an attribute. + + The attribute name. + The attribute value. + + + + Sets the value of the element. + + The new string value. + + + + Gets an attribute value. + + The attribute name. + Returns an instance of the attribute value. + + + + Adds a child element to the simple element instance. + + The child element instance. + + + + Returns descendants. + + The element name to look for. + Returns an enumeration of elements. + + + + Creates a new SimpleXElement. + + XML content. + Returns a new instance of the element and children. + + + + Parses the current level with the XmlReader instance. + + The reader instance. + A value indicating whether this is the first + parse. Actually this will always be true for now. + + + + Generates the string representation of the element and its tree. + + Returns the string representation of the element. + + + + Writes to the XML writer without document start and ends. + + The writer instance. + + + + Gets the element name. + + + + + Gets or sets the element text, if any. + + + + diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll Binary file SilverlightExampleApp/Libs/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.pdb Binary file SilverlightExampleApp/Libs/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.pdb has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/Libs/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.xml Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,3429 @@ + + + + Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight + + + + + UrlToTest specifies the url that should be requested to give context to the test. + + + + + An unused attribute. + + + + + + Gets the URL to test. + + + + + AspNetDevelopmentServer specifies the settings to be used for the + ASP.NET Development Server for the test. + + + + + Initializes the AspNetDevelopmentServerAttribute. + + The name. + The path to web app. + + + + Initializes the AspNetDevelopmentServerAttribute. + + The name. + The path to web app. + The web app root. + + + + Gets the name. + + + + + Gets the PathToWebApp. + + + + + Gets the web app root. + + + + + AspNetDevelopmentServerHost specifies the settings to be used when + ASP.NET Development Server is the host server for the test. + + + + + Initializes the AspNetDevelopmentServerHostAttribute. + + The path to the web app. + + + + Initializes the AspNetDevelopmentServerHostAttribute. + + The path to the web app. + The web app root. + + + + Gets the path to the web application. + + + + + Gets the WebAppRoot. + + + + + For ASP.NET sites that require basic authentication, specify the + user name and password using the Credential attribute. + WARNING: The password is stored in plain text in source code + and in the compiled assembly. Restrict access to the source code + and assembly to protect this sensitive information. + + + + + Specify the user name and password needed to access the web site under test. + + The user name. + + The password. WARNING: The password is stored in plain text in source code + and in the compiled assembly. Restrict access to the source code and assembly + to protect this sensitive information. + + + + + Specify the user name, password, and domain needed to access the web site under test. + + The user name. + + The password. WARNING: The password is stored in plain text in source code + and in the compiled assembly. Restrict access to the source code and assembly + to protect this sensitive information. + + The domain. + + + + Gets the user name. + + + + + Gets the password. + + + + + Gets the domain. + + + + + Base class for Framework Exceptions, provides localization trick so that messages are in HA locale. + + + + + Initializes a new UnitTestAssertException. + + + + + Initializes UnitTestAssertException. + + The message. + + + + Gets the Message string. + + + + + AssertFailedException class. Used to indicate failure for a test case + + + + + Initializes a new AssertFailedException. + + The message. + + + + AssertFailedException + + The message. + The inner exception. + + + + The AssertInconclusiveException class. + + + + + Initializes a new AssertInconclusiveException. + + The message. + + + + Initializes a new AssertInconclusiveException. + + The message. + The inner exception. + + + + Initializes a new AssertInconclusiveException. + + + + + InternalTestFailureException class. Used to indicate internal failure + for a test case. + + + + + Initializes a new InternalTestFailureException. + + The message. + + + + Initializes a new InternalTestFailureException. + + The message. + The inner exception. + + + + Initializes a new InternalTestFailureException. + + + + + A collection of helper classes to test various conditions within + unit tests. If the condition being tested is not met, an exception + is thrown. + + + + + + + + + + Tests whether the specified condition is true and throws an exception + if the condition is false. + + The condition the test expects to be true. + + Thrown if is false. + + + + + Tests whether the specified condition is true and throws an exception + if the condition is false. + + The condition the test expects to be true. + + The message to include in the exception when + is false. The message is shown in test results. + + + Thrown if is false. + + + + + Tests whether the specified condition is true and throws an exception + if the condition is false. + + The condition the test expects to be true. + + The message to include in the exception when + is false. The message is shown in test results. + + + An array of parameters to use when formatting . + + + Thrown if is false. + + + + + Tests whether the specified condition is false and throws an exception + if the condition is true. + + The condition the test expects to be false. + + Thrown if is true. + + + + + Tests whether the specified condition is false and throws an exception + if the condition is true. + + The condition the test expects to be false. + + The message to include in the exception when + is true. The message is shown in test results. + + + Thrown if is true. + + + + + Tests whether the specified condition is false and throws an exception + if the condition is true. + + The condition the test expects to be false. + + The message to include in the exception when + is true. The message is shown in test results. + + + An array of parameters to use when formatting . + + + Thrown if is true. + + + + + Tests whether the specified object is null and throws an exception + if it is not. + + The object the test expects to be null. + + Thrown if is not null. + + + + + Tests whether the specified object is null and throws an exception + if it is not. + + The object the test expects to be null. + + The message to include in the exception when + is not null. The message is shown in test results. + + + Thrown if is not null. + + + + + Tests whether the specified object is null and throws an exception + if it is not. + + The object the test expects to be null. + + The message to include in the exception when + is not null. The message is shown in test results. + + + An array of parameters to use when formatting . + + + Thrown if is not null. + + + + + Tests whether the specified object is non-null and throws an exception + if it is null. + + The object the test expects not to be null. + + Thrown if is null. + + + + + Tests whether the specified object is non-null and throws an exception + if it is null. + + The object the test expects not to be null. + + The message to include in the exception when + is null. The message is shown in test results. + + + Thrown if is null. + + + + + Tests whether the specified object is non-null and throws an exception + if it is null. + + The object the test expects not to be null. + + The message to include in the exception when + is null. The message is shown in test results. + + + An array of parameters to use when formatting . + + + Thrown if is null. + + + + + Tests whether the specified objects both refer to the same object and + throws an exception if the two inputs do not refer to the same object. + + + The first object to compare. This is the value the test expects. + + + The second object to compare. This is the value produced by the code under test. + + + Thrown if does not refer to the same object + as . + + + + + Tests whether the specified objects both refer to the same object and + throws an exception if the two inputs do not refer to the same object. + + + The first object to compare. This is the value the test expects. + + + The second object to compare. This is the value produced by the code under test. + + + The message to include in the exception when + is not the same as . The message is shown + in test results. + + + Thrown if does not refer to the same object + as . + + + + + Tests whether the specified objects both refer to the same object and + throws an exception if the two inputs do not refer to the same object. + + + The first object to compare. This is the value the test expects. + + + The second object to compare. This is the value produced by the code under test. + + + The message to include in the exception when + is not the same as . The message is shown + in test results. + + + An array of parameters to use when formatting . + + + Thrown if does not refer to the same object + as . + + + + + Tests whether the specified objects refer to different objects and + throws an exception if the two inputs refer to the same object. + + + The first object to compare. This is the value the test expects not + to match . + + + The second object to compare. This is the value produced by the code under test. + + + Thrown if refers to the same object + as . + + + + + Tests whether the specified objects refer to different objects and + throws an exception if the two inputs refer to the same object. + + + The first object to compare. This is the value the test expects not + to match . + + + The second object to compare. This is the value produced by the code under test. + + + The message to include in the exception when + is the same as . The message is shown in + test results. + + + Thrown if refers to the same object + as . + + + + + Tests whether the specified objects refer to different objects and + throws an exception if the two inputs refer to the same object. + + + The first object to compare. This is the value the test expects not + to match . + + + The second object to compare. This is the value produced by the code under test. + + + The message to include in the exception when + is the same as . The message is shown in + test results. + + + An array of parameters to use when formatting . + + + Thrown if refers to the same object + as . + + + + + Tests whether the specified values are equal and throws an exception + if the two values are not equal. Different numeric types are treated + as unequal even if the logical values are equal. 42L is not equal to 42. + + The type of values to compare. + + The first value to compare. This is the value the tests expects. + + + The second value to compare. This is the value produced by the code under test. + + + Thrown if is not equal to + . + + + + + Tests whether the specified values are equal and throws an exception + if the two values are not equal. Different numeric types are treated + as unequal even if the logical values are equal. 42L is not equal to 42. + + The type of values to compare. + + The first value to compare. This is the value the tests expects. + + + The second value to compare. This is the value produced by the code under test. + + + The message to include in the exception when + is not equal to . The message is shown in + test results. + + + Thrown if is not equal to + . + + + + + Tests whether the specified values are equal and throws an exception + if the two values are not equal. Different numeric types are treated + as unequal even if the logical values are equal. 42L is not equal to 42. + + The type of values to compare. + + The first value to compare. This is the value the tests expects. + + + The second value to compare. This is the value produced by the code under test. + + + The message to include in the exception when + is not equal to . The message is shown in + test results. + + + An array of parameters to use when formatting . + + + Thrown if is not equal to + . + + + + + Tests whether the specified values are unequal and throws an exception + if the two values are equal. Different numeric types are treated + as unequal even if the logical values are equal. 42L is not equal to 42. + + The type of values to compare. + + The first value to compare. This is the value the test expects not + to match . + + + The second value to compare. This is the value produced by the code under test. + + + Thrown if is equal to . + + + + + Tests whether the specified values are unequal and throws an exception + if the two values are equal. Different numeric types are treated + as unequal even if the logical values are equal. 42L is not equal to 42. + + The type of values to compare. + + The first value to compare. This is the value the test expects not + to match . + + + The second value to compare. This is the value produced by the code under test. + + + The message to include in the exception when + is equal to . The message is shown in + test results. + + + Thrown if is equal to . + + + + + Tests whether the specified values are unequal and throws an exception + if the two values are equal. Different numeric types are treated + as unequal even if the logical values are equal. 42L is not equal to 42. + + The type of values to compare. + + The first value to compare. This is the value the test expects not + to match . + + + The second value to compare. This is the value produced by the code under test. + + + The message to include in the exception when + is equal to . The message is shown in + test results. + + + An array of parameters to use when formatting . + + + Thrown if is equal to . + + + + + Tests whether the specified objects are equal and throws an exception + if the two objects are not equal. Different numeric types are treated + as unequal even if the logical values are equal. 42L is not equal to 42. + + + The first object to compare. This is the object the tests expects. + + + The second object to compare. This is the object produced by the code under test. + + + Thrown if is not equal to + . + + + + + Tests whether the specified objects are equal and throws an exception + if the two objects are not equal. Different numeric types are treated + as unequal even if the logical values are equal. 42L is not equal to 42. + + + The first object to compare. This is the object the tests expects. + + + The second object to compare. This is the object produced by the code under test. + + + The message to include in the exception when + is not equal to . The message is shown in + test results. + + + Thrown if is not equal to + . + + + + + Tests whether the specified objects are equal and throws an exception + if the two objects are not equal. Different numeric types are treated + as unequal even if the logical values are equal. 42L is not equal to 42. + + + The first object to compare. This is the object the tests expects. + + + The second object to compare. This is the object produced by the code under test. + + + The message to include in the exception when + is not equal to . The message is shown in + test results. + + + An array of parameters to use when formatting . + + + Thrown if is not equal to + . + + + + + Tests whether the specified objects are unequal and throws an exception + if the two objects are equal. Different numeric types are treated + as unequal even if the logical values are equal. 42L is not equal to 42. + + + The first object to compare. This is the value the test expects not + to match . + + + The second object to compare. This is the object produced by the code under test. + + + Thrown if is equal to . + + + + + Tests whether the specified objects are unequal and throws an exception + if the two objects are equal. Different numeric types are treated + as unequal even if the logical values are equal. 42L is not equal to 42. + + + The first object to compare. This is the value the test expects not + to match . + + + The second object to compare. This is the object produced by the code under test. + + + The message to include in the exception when + is equal to . The message is shown in + test results. + + + Thrown if is equal to . + + + + + Tests whether the specified objects are unequal and throws an exception + if the two objects are equal. Different numeric types are treated + as unequal even if the logical values are equal. 42L is not equal to 42. + + + The first object to compare. This is the value the test expects not + to match . + + + The second object to compare. This is the object produced by the code under test. + + + The message to include in the exception when + is equal to . The message is shown in + test results. + + + An array of parameters to use when formatting . + + + Thrown if is equal to . + + + + + Tests whether the specified floats are equal and throws an exception + if they are not equal. + + + The first float to compare. This is the float the tests expects. + + + The second float to compare. This is the float produced by the code under test. + + + The required accuracy. An exception will be thrown only if + is different than + by more than . + + + Thrown if is not equal to + . + + + + + Tests whether the specified floats are equal and throws an exception + if they are not equal. + + + The first float to compare. This is the float the tests expects. + + + The second float to compare. This is the float produced by the code under test. + + + The required accuracy. An exception will be thrown only if + is different than + by more than . + + + The message to include in the exception when + is different than by more than + . The message is shown in test results. + + + Thrown if is not equal to + . + + + + + Tests whether the specified floats are equal and throws an exception + if they are not equal. + + + The first float to compare. This is the float the tests expects. + + + The second float to compare. This is the float produced by the code under test. + + + The required accuracy. An exception will be thrown only if + is different than + by more than . + + + The message to include in the exception when + is different than by more than + . The message is shown in test results. + + + An array of parameters to use when formatting . + + + Thrown if is not equal to + . + + + + + Tests whether the specified floats are unequal and throws an exception + if they are equal. + + + The first float to compare. This is the float the test expects not to + match . + + + The second float to compare. This is the float produced by the code under test. + + + The required accuracy. An exception will be thrown only if + is different than + by at most . + + + Thrown if is equal to . + + + + + Tests whether the specified floats are unequal and throws an exception + if they are equal. + + + The first float to compare. This is the float the test expects not to + match . + + + The second float to compare. This is the float produced by the code under test. + + + The required accuracy. An exception will be thrown only if + is different than + by at most . + + + The message to include in the exception when + is equal to or different by less than + . The message is shown in test results. + + + Thrown if is equal to . + + + + + Tests whether the specified floats are unequal and throws an exception + if they are equal. + + + The first float to compare. This is the float the test expects not to + match . + + + The second float to compare. This is the float produced by the code under test. + + + The required accuracy. An exception will be thrown only if + is different than + by at most . + + + The message to include in the exception when + is equal to or different by less than + . The message is shown in test results. + + + An array of parameters to use when formatting . + + + Thrown if is equal to . + + + + + Tests whether the specified doubles are equal and throws an exception + if they are not equal. + + + The first double to compare. This is the double the tests expects. + + + The second double to compare. This is the double produced by the code under test. + + + The required accuracy. An exception will be thrown only if + is different than + by more than . + + + Thrown if is not equal to + . + + + + + Tests whether the specified doubles are equal and throws an exception + if they are not equal. + + + The first double to compare. This is the double the tests expects. + + + The second double to compare. This is the double produced by the code under test. + + + The required accuracy. An exception will be thrown only if + is different than + by more than . + + + The message to include in the exception when + is different than by more than + . The message is shown in test results. + + + Thrown if is not equal to + . + + + + + Tests whether the specified doubles are equal and throws an exception + if they are not equal. + + + The first double to compare. This is the double the tests expects. + + + The second double to compare. This is the double produced by the code under test. + + + The required accuracy. An exception will be thrown only if + is different than + by more than . + + + The message to include in the exception when + is different than by more than + . The message is shown in test results. + + + An array of parameters to use when formatting . + + + Thrown if is not equal to + . + + + + + Tests whether the specified doubles are unequal and throws an exception + if they are equal. + + + The first double to compare. This is the double the test expects not to + match . + + + The second double to compare. This is the double produced by the code under test. + + + The required accuracy. An exception will be thrown only if + is different than + by at most . + + + Thrown if is equal to . + + + + + Tests whether the specified doubles are unequal and throws an exception + if they are equal. + + + The first double to compare. This is the double the test expects not to + match . + + + The second double to compare. This is the double produced by the code under test. + + + The required accuracy. An exception will be thrown only if + is different than + by at most . + + + The message to include in the exception when + is equal to or different by less than + . The message is shown in test results. + + + Thrown if is equal to . + + + + + Tests whether the specified doubles are unequal and throws an exception + if they are equal. + + + The first double to compare. This is the double the test expects not to + match . + + + The second double to compare. This is the double produced by the code under test. + + + The required accuracy. An exception will be thrown only if + is different than + by at most . + + + The message to include in the exception when + is equal to or different by less than + . The message is shown in test results. + + + An array of parameters to use when formatting . + + + Thrown if is equal to . + + + + + Tests whether the specified strings are equal and throws an exception + if they are not equal. The invariant culture is used for the comparison. + + + The first string to compare. This is the string the tests expects. + + + The second string to compare. This is the string produced by the code under test. + + + A Boolean indicating a case-sensitive or insensitive comparison. (true + indicates a case-insensitive comparison.) + + + Thrown if is not equal to + . + + + + + Tests whether the specified strings are equal and throws an exception + if they are not equal. The invariant culture is used for the comparison. + + + The first string to compare. This is the string the tests expects. + + + The second string to compare. This is the string produced by the code under test. + + + A Boolean indicating a case-sensitive or insensitive comparison. (true + indicates a case-insensitive comparison.) + + + The message to include in the exception when + is not equal to . The message is shown in + test results. + + + Thrown if is not equal to + . + + + + + Tests whether the specified strings are equal and throws an exception + if they are not equal. The invariant culture is used for the comparison. + + + The first string to compare. This is the string the tests expects. + + + The second string to compare. This is the string produced by the code under test. + + + A Boolean indicating a case-sensitive or insensitive comparison. (true + indicates a case-insensitive comparison.) + + + The message to include in the exception when + is not equal to . The message is shown in + test results. + + + An array of parameters to use when formatting . + + + Thrown if is not equal to + . + + + + + Tests whether the specified strings are equal and throws an exception + if they are not equal. + + + The first string to compare. This is the string the tests expects. + + + The second string to compare. This is the string produced by the code under test. + + + A Boolean indicating a case-sensitive or insensitive comparison. (true + indicates a case-insensitive comparison.) + + + A CultureInfo object that supplies culture-specific comparison information. + + + Thrown if is not equal to + . + + + + + Tests whether the specified strings are equal and throws an exception + if they are not equal. + + + The first string to compare. This is the string the tests expects. + + + The second string to compare. This is the string produced by the code under test. + + + A Boolean indicating a case-sensitive or insensitive comparison. (true + indicates a case-insensitive comparison.) + + + A CultureInfo object that supplies culture-specific comparison information. + + + The message to include in the exception when + is not equal to . The message is shown in + test results. + + + Thrown if is not equal to + . + + + + + Tests whether the specified strings are equal and throws an exception + if they are not equal. + + + The first string to compare. This is the string the tests expects. + + + The second string to compare. This is the string produced by the code under test. + + + A Boolean indicating a case-sensitive or insensitive comparison. (true + indicates a case-insensitive comparison.) + + + A CultureInfo object that supplies culture-specific comparison information. + + + The message to include in the exception when + is not equal to . The message is shown in + test results. + + + An array of parameters to use when formatting . + + + Thrown if is not equal to + . + + + + + Tests whether the specified strings are unequal and throws an exception + if they are equal. The invariant culture is used for the comparison. + + + The first string to compare. This is the string the test expects not to + match . + + + The second string to compare. This is the string produced by the code under test. + + + A Boolean indicating a case-sensitive or insensitive comparison. (true + indicates a case-insensitive comparison.) + + + Thrown if is equal to . + + + + + Tests whether the specified strings are unequal and throws an exception + if they are equal. The invariant culture is used for the comparison. + + + The first string to compare. This is the string the test expects not to + match . + + + The second string to compare. This is the string produced by the code under test. + + + A Boolean indicating a case-sensitive or insensitive comparison. (true + indicates a case-insensitive comparison.) + + + The message to include in the exception when + is equal to . The message is shown in + test results. + + + Thrown if is equal to . + + + + + Tests whether the specified strings are unequal and throws an exception + if they are equal. The invariant culture is used for the comparison. + + + The first string to compare. This is the string the test expects not to + match . + + + The second string to compare. This is the string produced by the code under test. + + + A Boolean indicating a case-sensitive or insensitive comparison. (true + indicates a case-insensitive comparison.) + + + The message to include in the exception when + is equal to . The message is shown in + test results. + + + An array of parameters to use when formatting . + + + Thrown if is equal to . + + + + + Tests whether the specified strings are unequal and throws an exception + if they are equal. + + + The first string to compare. This is the string the test expects not to + match . + + + The second string to compare. This is the string produced by the code under test. + + + A Boolean indicating a case-sensitive or insensitive comparison. (true + indicates a case-insensitive comparison.) + + + A CultureInfo object that supplies culture-specific comparison information. + + + Thrown if is equal to . + + + + + Tests whether the specified strings are unequal and throws an exception + if they are equal. + + + The first string to compare. This is the string the test expects not to + match . + + + The second string to compare. This is the string produced by the code under test. + + + A Boolean indicating a case-sensitive or insensitive comparison. (true + indicates a case-insensitive comparison.) + + + A CultureInfo object that supplies culture-specific comparison information. + + + The message to include in the exception when + is equal to . The message is shown in + test results. + + + Thrown if is equal to . + + + + + Tests whether the specified strings are unequal and throws an exception + if they are equal. + + + The first string to compare. This is the string the test expects not to + match . + + + The second string to compare. This is the string produced by the code under test. + + + A Boolean indicating a case-sensitive or insensitive comparison. (true + indicates a case-insensitive comparison.) + + + A CultureInfo object that supplies culture-specific comparison information. + + + The message to include in the exception when + is equal to . The message is shown in + test results. + + + An array of parameters to use when formatting . + + + Thrown if is equal to . + + + + + Tests whether the specified object is an instance of the expected + type and throws an exception if the expected type is not in the + inheritance hierarchy of the object. + + + The object the test expects to be of the specified type. + + + The expected type of . + + + Thrown if is null or + is not in the inheritance hierarchy + of . + + + + + Tests whether the specified object is an instance of the expected + type and throws an exception if the expected type is not in the + inheritance hierarchy of the object. + + + The object the test expects to be of the specified type. + + + The expected type of . + + + The message to include in the exception when + is not an instance of . The message is + shown in test results. + + + Thrown if is null or + is not in the inheritance hierarchy + of . + + + + + Tests whether the specified object is an instance of the expected + type and throws an exception if the expected type is not in the + inheritance hierarchy of the object. + + + The object the test expects to be of the specified type. + + + The expected type of . + + + The message to include in the exception when + is not an instance of . The message is + shown in test results. + + + An array of parameters to use when formatting . + + + Thrown if is null or + is not in the inheritance hierarchy + of . + + + + + Tests whether the specified object is not an instance of the wrong + type and throws an exception if the specified type is in the + inheritance hierarchy of the object. + + + The object the test expects not to be of the specified type. + + + The type that should not be. + + + Thrown if is not null and + is in the inheritance hierarchy + of . + + + + + Tests whether the specified object is not an instance of the wrong + type and throws an exception if the specified type is in the + inheritance hierarchy of the object. + + + The object the test expects not to be of the specified type. + + + The type that should not be. + + + The message to include in the exception when + is an instance of . The message is shown + in test results. + + + Thrown if is not null and + is in the inheritance hierarchy + of . + + + + + Tests whether the specified object is not an instance of the wrong + type and throws an exception if the specified type is in the + inheritance hierarchy of the object. + + + The object the test expects not to be of the specified type. + + + The type that should not be. + + + The message to include in the exception when + is an instance of . The message is shown + in test results. + + + An array of parameters to use when formatting . + + + Thrown if is not null and + is in the inheritance hierarchy + of . + + + + + Throws an AssertFailedException. + + + Always thrown. + + + + + Throws an AssertFailedException. + + + The message to include in the exception. The message is shown in + test results. + + + Always thrown. + + + + + Throws an AssertFailedException. + + + The message to include in the exception. The message is shown in + test results. + + + An array of parameters to use when formatting . + + + Always thrown. + + + + + Throws an AssertInconclusiveException. + + + Always thrown. + + + + + Throws an AssertInconclusiveException. + + + The message to include in the exception. The message is shown in + test results. + + + Always thrown. + + + + + Throws an AssertInconclusiveException. + + + The message to include in the exception. The message is shown in + test results. + + + An array of parameters to use when formatting . + + + Always thrown. + + + + + Helper function that creates and throws an AssertionFailedException. + + name of the assertion throwing an exception. + message describing conditions for assertion failure. + The parameters. + + + + Checks the parameter for valid conditions + + The parameter. + The assertion name. + The parameter name. + The message. + The parameters. + + + + Safely converts an object to a string, handling null values and null characters. + Null values are converted to "(null)". Null characters are converted to "\\0". + + The object to convert to a string. + The converted string. + + + + Replaces null characters ('\0') with "\\0". + + The string to search. + The converted string with null characters replaced by "\\0". + + + + An exception from reflection will always be a TargetInvocationException - however + the goal of Private Accessors is to be seamless to the original code. + The only problem with throwing the inner exception is that the stack trace will + be overwritten. From here we register the stack trace of the inner exception + and then throw it. The Unit Test Adapter will then later rebuild the stack + from the cached shadow information plus the remaining stack from this throw. + + + + + + A collection of helper classes to test various conditions associated + with collections within unit tests. If the condition being tested is not + met, an exception is thrown. + + + + + Tests whether the specified collection contains the specified element + and throws an exception if the element is not in the collection. + + + The collection in which to search for the element. + + + The element that is expected to be in the collection. + + + Thrown if is not found in + . + + + + + Tests whether the specified collection contains the specified element + and throws an exception if the element is not in the collection. + + + The collection in which to search for the element. + + + The element that is expected to be in the collection. + + + The message to include in the exception when + is not in . The message is shown in + test results. + + + Thrown if is not found in + . + + + + + Tests whether the specified collection contains the specified element + and throws an exception if the element is not in the collection. + + + The collection in which to search for the element. + + + The element that is expected to be in the collection. + + + The message to include in the exception when + is not in . The message is shown in + test results. + + + An array of parameters to use when formatting . + + + Thrown if is not found in + . + + + + + Tests whether the specified collection does not contain the specified + element and throws an exception if the element is in the collection. + + + The collection in which to search for the element. + + + The element that is expected not to be in the collection. + + + Thrown if is found in + . + + + + + Tests whether the specified collection does not contain the specified + element and throws an exception if the element is in the collection. + + + The collection in which to search for the element. + + + The element that is expected not to be in the collection. + + + The message to include in the exception when + is in . The message is shown in test + results. + + + Thrown if is found in + . + + + + + Tests whether the specified collection does not contain the specified + element and throws an exception if the element is in the collection. + + + The collection in which to search for the element. + + + The element that is expected not to be in the collection. + + + The message to include in the exception when + is in . The message is shown in test + results. + + + An array of parameters to use when formatting . + + + Thrown if is found in + . + + + + + Tests whether all items in the specified collection are non-null and throws + an exception if any element is null. + + + The collection in which to search for null elements. + + + Thrown if a null element is found in . + + + + + Tests whether all items in the specified collection are non-null and throws + an exception if any element is null. + + + The collection in which to search for null elements. + + + The message to include in the exception when + contains a null element. The message is shown in test results. + + + Thrown if a null element is found in . + + + + + Tests whether all items in the specified collection are non-null and throws + an exception if any element is null. + + + The collection in which to search for null elements. + + + The message to include in the exception when + contains a null element. The message is shown in test results. + + + An array of parameters to use when formatting . + + + Thrown if a null element is found in . + + + + + Tests whether all items in the specified collection are unique or not and + throws if any two elements in the collection are equal. + + + The collection in which to search for duplicate elements. + + + Thrown if a two or more equal elements are found in + . + + + + + Tests whether all items in the specified collection are unique or not and + throws if any two elements in the collection are equal. + + + The collection in which to search for duplicate elements. + + + The message to include in the exception when + contains at least one duplicate element. The message is shown in + test results. + + + Thrown if a two or more equal elements are found in + . + + + + + Tests whether all items in the specified collection are unique or not and + throws if any two elements in the collection are equal. + + + The collection in which to search for duplicate elements. + + + The message to include in the exception when + contains at least one duplicate element. The message is shown in + test results. + + + An array of parameters to use when formatting . + + + Thrown if a two or more equal elements are found in + . + + + + + Tests whether one collection is a subset of another collection and + throws an exception if any element in the subset is not also in the + superset. + + + The collection expected to be a subset of . + + + The collection expected to be a superset of + + + Thrown if an element in is not found in + . + + + + + Tests whether one collection is a subset of another collection and + throws an exception if any element in the subset is not also in the + superset. + + + The collection expected to be a subset of . + + + The collection expected to be a superset of + + + The message to include in the exception when an element in + is not found in . + The message is shown in test results. + + + Thrown if an element in is not found in + . + + + + + Tests whether one collection is a subset of another collection and + throws an exception if any element in the subset is not also in the + superset. + + + The collection expected to be a subset of . + + + The collection expected to be a superset of + + + The message to include in the exception when an element in + is not found in . + The message is shown in test results. + + + An array of parameters to use when formatting . + + + Thrown if an element in is not found in + . + + + + + Tests whether one collection is not a subset of another collection and + throws an exception if all elements in the subset are also in the + superset. + + + The collection expected not to be a subset of . + + + The collection expected not to be a superset of + + + Thrown if every element in is also found in + . + + + + + Tests whether one collection is not a subset of another collection and + throws an exception if all elements in the subset are also in the + superset. + + + The collection expected not to be a subset of . + + + The collection expected not to be a superset of + + + The message to include in the exception when every element in + is also found in . + The message is shown in test results. + + + Thrown if every element in is also found in + . + + + + + Tests whether one collection is not a subset of another collection and + throws an exception if all elements in the subset are also in the + superset. + + + The collection expected not to be a subset of . + + + The collection expected not to be a superset of + + + The message to include in the exception when every element in + is also found in . + The message is shown in test results. + + + An array of parameters to use when formatting . + + + Thrown if every element in is also found in + . + + + + + Tests whether two collections contain the same elements and throws an + exception if either collection contains an element not in the other + collection. + + + The first collection to compare. This contains the elements the test + expects. + + + The second collection to compare. This is the collection produced by + the code under test. + + + Thrown if an element was found in one of the collections but not + the other. + + + + + Tests whether two collections contain the same elements and throws an + exception if either collection contains an element not in the other + collection. + + + The first collection to compare. This contains the elements the test + expects. + + + The second collection to compare. This is the collection produced by + the code under test. + + + The message to include in the exception when an element was found + in one of the collections but not the other. The message is shown + in test results. + + + Thrown if an element was found in one of the collections but not + the other. + + + + + Tests whether two collections contain the same elements and throws an + exception if either collection contains an element not in the other + collection. + + + The first collection to compare. This contains the elements the test + expects. + + + The second collection to compare. This is the collection produced by + the code under test. + + + The message to include in the exception when an element was found + in one of the collections but not the other. The message is shown + in test results. + + + An array of parameters to use when formatting . + + + Thrown if an element was found in one of the collections but not + the other. + + + + + Tests whether two collections contain the different elements and throws an + exception if the two collections contain identical elements without regard + to order. + + + The first collection to compare. This contains the elements the test + expects to be different than the actual collection. + + + The second collection to compare. This is the collection produced by + the code under test. + + + Thrown if the two collections contained the same elements, including + the same number of duplicate occurrences of each element. + + + + + Tests whether two collections contain the different elements and throws an + exception if the two collections contain identical elements without regard + to order. + + + The first collection to compare. This contains the elements the test + expects to be different than the actual collection. + + + The second collection to compare. This is the collection produced by + the code under test. + + + The message to include in the exception when + contains the same elements as . The message + is shown in test results. + + + Thrown if the two collections contained the same elements, including + the same number of duplicate occurrences of each element. + + + + + Tests whether two collections contain the different elements and throws an + exception if the two collections contain identical elements without regard + to order. + + + The first collection to compare. This contains the elements the test + expects to be different than the actual collection. + + + The second collection to compare. This is the collection produced by + the code under test. + + + The message to include in the exception when + contains the same elements as . The message + is shown in test results. + + + An array of parameters to use when formatting . + + + Thrown if the two collections contained the same elements, including + the same number of duplicate occurrences of each element. + + + + + Tests whether all elements in the specified collection are instances + of the expected type and throws an exception if the expected type is + not in the inheritance hierarchy of one or more of the elements. + + + The collection containing elements the test expects to be of the + specified type. + + + The expected type of each element of . + + + Thrown if an element in is null or + is not in the inheritance hierarchy + of an element in . + + + + + Tests whether all elements in the specified collection are instances + of the expected type and throws an exception if the expected type is + not in the inheritance hierarchy of one or more of the elements. + + + The collection containing elements the test expects to be of the + specified type. + + + The expected type of each element of . + + + The message to include in the exception when an element in + is not an instance of + . The message is shown in test results. + + + Thrown if an element in is null or + is not in the inheritance hierarchy + of an element in . + + + + + Tests whether all elements in the specified collection are instances + of the expected type and throws an exception if the expected type is + not in the inheritance hierarchy of one or more of the elements. + + + The collection containing elements the test expects to be of the + specified type. + + + The expected type of each element of . + + + The message to include in the exception when an element in + is not an instance of + . The message is shown in test results. + + + An array of parameters to use when formatting . + + + Thrown if an element in is null or + is not in the inheritance hierarchy + of an element in . + + + + + Tests whether the specified collections are equal and throws an exception + if the two collections are not equal. Equality is defined as having the same + elements in the same order and quantity. Different references to the same + value are considered equal. + + + The first collection to compare. This is the collection the tests expects. + + + The second collection to compare. This is the collection produced by the + code under test. + + + Thrown if is not equal to + . + + + + + Tests whether the specified collections are equal and throws an exception + if the two collections are not equal. Equality is defined as having the same + elements in the same order and quantity. Different references to the same + value are considered equal. + + + The first collection to compare. This is the collection the tests expects. + + + The second collection to compare. This is the collection produced by the + code under test. + + + The message to include in the exception when + is not equal to . The message is shown in + test results. + + + Thrown if is not equal to + . + + + + + Tests whether the specified collections are equal and throws an exception + if the two collections are not equal. Equality is defined as having the same + elements in the same order and quantity. Different references to the same + value are considered equal. + + + The first collection to compare. This is the collection the tests expects. + + + The second collection to compare. This is the collection produced by the + code under test. + + + The message to include in the exception when + is not equal to . The message is shown in + test results. + + + An array of parameters to use when formatting . + + + Thrown if is not equal to + . + + + + + Tests whether the specified collections are unequal and throws an exception + if the two collections are equal. Equality is defined as having the same + elements in the same order and quantity. Different references to the same + value are considered equal. + + + The first collection to compare. This is the collection the tests expects + not to match . + + + The second collection to compare. This is the collection produced by the + code under test. + + + Thrown if is equal to . + + + + + Tests whether the specified collections are unequal and throws an exception + if the two collections are equal. Equality is defined as having the same + elements in the same order and quantity. Different references to the same + value are considered equal. + + + The first collection to compare. This is the collection the tests expects + not to match . + + + The second collection to compare. This is the collection produced by the + code under test. + + + The message to include in the exception when + is equal to . The message is shown in + test results. + + + Thrown if is equal to . + + + + + Tests whether the specified collections are unequal and throws an exception + if the two collections are equal. Equality is defined as having the same + elements in the same order and quantity. Different references to the same + value are considered equal. + + + The first collection to compare. This is the collection the tests expects + not to match . + + + The second collection to compare. This is the collection produced by the + code under test. + + + The message to include in the exception when + is equal to . The message is shown in + test results. + + + An array of parameters to use when formatting . + + + Thrown if is equal to . + + + + + Tests whether the specified collections are equal and throws an exception + if the two collections are not equal. Equality is defined as having the same + elements in the same order and quantity. Different references to the same + value are considered equal. + + + The first collection to compare. This is the collection the tests expects. + + + The second collection to compare. This is the collection produced by the + code under test. + + + The compare implementation to use when comparing elements of the collection. + + + Thrown if is not equal to + . + + + + + Tests whether the specified collections are equal and throws an exception + if the two collections are not equal. Equality is defined as having the same + elements in the same order and quantity. Different references to the same + value are considered equal. + + + The first collection to compare. This is the collection the tests expects. + + + The second collection to compare. This is the collection produced by the + code under test. + + + The compare implementation to use when comparing elements of the collection. + + + The message to include in the exception when + is not equal to . The message is shown in + test results. + + + Thrown if is not equal to + . + + + + + Tests whether the specified collections are equal and throws an exception + if the two collections are not equal. Equality is defined as having the same + elements in the same order and quantity. Different references to the same + value are considered equal. + + + The first collection to compare. This is the collection the tests expects. + + + The second collection to compare. This is the collection produced by the + code under test. + + + The compare implementation to use when comparing elements of the collection. + + + The message to include in the exception when + is not equal to . The message is shown in + test results. + + + An array of parameters to use when formatting . + + + Thrown if is not equal to + . + + + + + Tests whether the specified collections are unequal and throws an exception + if the two collections are equal. Equality is defined as having the same + elements in the same order and quantity. Different references to the same + value are considered equal. + + + The first collection to compare. This is the collection the tests expects + not to match . + + + The second collection to compare. This is the collection produced by the + code under test. + + + The compare implementation to use when comparing elements of the collection. + + + Thrown if is equal to . + + + + + Tests whether the specified collections are unequal and throws an exception + if the two collections are equal. Equality is defined as having the same + elements in the same order and quantity. Different references to the same + value are considered equal. + + + The first collection to compare. This is the collection the tests expects + not to match . + + + The second collection to compare. This is the collection produced by the + code under test. + + + The compare implementation to use when comparing elements of the collection. + + + The message to include in the exception when + is equal to . The message is shown in + test results. + + + Thrown if is equal to . + + + + + Tests whether the specified collections are unequal and throws an exception + if the two collections are equal. Equality is defined as having the same + elements in the same order and quantity. Different references to the same + value are considered equal. + + + The first collection to compare. This is the collection the tests expects + not to match . + + + The second collection to compare. This is the collection produced by the + code under test. + + + The compare implementation to use when comparing elements of the collection. + + + The message to include in the exception when + is equal to . The message is shown in + test results. + + + An array of parameters to use when formatting . + + + Thrown if is equal to . + + + + + Constructs a dictionary containing the number of occurrences of each + element in the specified collection. + + + The collection to process. + + + The number of null elements in the collection. + + + A dictionary containing the number of occurrences of each element + in the specified collection. + + + + + Determines whether the first collection is a subset of the second + collection. If either set contains duplicate elements, the number + of occurrences of the element in the subset must be less than or + equal to the number of occurrences in the superset. + + + The collection the test expects to be contained in . + + + The collection the test expects to contain . + + + True if is a subset of + , false otherwise. + + + + + Finds a mismatched element between the two collections. A mismatched + element is one that appears a different number of times in the + expected collection than it does in the actual collection. The + collections are assumed to be different non-null references with the + same number of elements. The caller is responsible for this level of + verification. If there is no mismatched element, the function returns + false and the out parameters should not be used. + + The first collection to compare. + The second collection to compare. + + The expected number of occurrences of + or 0 if there is no mismatched + element. + + + The actual number of occurrences of + or 0 if there is no mismatched + element. + + + The mismatched element (may be null) or null if there is no + mismatched element. + + + true if a mismatched element was found; false otherwise. + + + + + compares the objects using object.Equals + + + + + This class is designed to help user doing unit testing. + GenericParameterHelper satisfies some comment generic type constraints + such as: + 1. public default constructor + 2. implements common interface: IComparable, IEnumerable, ICloneable + + + + + + public default constructor, satisfies the constraint in C# generics. + This constructor initializes the Data property to a random value. + + + + + This constructor initializes the Data property to a user-supplied value + + + + + + Do the value comparison for two GenericParameterHelper object + + object to do comparison with + true if obj has the same value as 'this' GenericParameterHelper object. + false otherwise. + + + + Returns a hash code for this object. + + + + + + Compares to the object. + + + + + + + Returns an IEnumerator object whose length is derived from + the Data property. + + + + + + Returns a GenericParameterHelper object that is equal to + 'this' one. + + + + + + Gets or sets the Data property. + + + + + Provides method signature discovery for generic methods. + + + + + Given a set of methods that match the base criteria, select a method based + upon an array of types. This method should return null if no method matches + the criteria. + + + + + Set of string assertions. + + + + + Tests whether the specified string contains the specified substring + and throws an exception if the substring does not occur within the + test string. + + + The string that is expected to contain . + + + The string expected to occur within . + + + Thrown if is not found in + . + + + + + Tests whether the specified string contains the specified substring + and throws an exception if the substring does not occur within the + test string. + + + The string that is expected to contain . + + + The string expected to occur within . + + + The message to include in the exception when + is not in . The message is shown in + test results. + + + Thrown if is not found in + . + + + + + Tests whether the specified string contains the specified substring + and throws an exception if the substring does not occur within the + test string. + + + The string that is expected to contain . + + + The string expected to occur within . + + + The message to include in the exception when + is not in . The message is shown in + test results. + + + An array of parameters to use when formatting . + + + Thrown if is not found in + . + + + + + Tests whether the specified string begins with the specified substring + and throws an exception if the test string does not start with the + substring. + + + The string that is expected to begin with . + + + The string expected to be a prefix of . + + + Thrown if does not begin with + . + + + + + Tests whether the specified string begins with the specified substring + and throws an exception if the test string does not start with the + substring. + + + The string that is expected to begin with . + + + The string expected to be a prefix of . + + + The message to include in the exception when + does not begin with . The message is + shown in test results. + + + Thrown if does not begin with + . + + + + + Tests whether the specified string begins with the specified substring + and throws an exception if the test string does not start with the + substring. + + + The string that is expected to begin with . + + + The string expected to be a prefix of . + + + The message to include in the exception when + does not begin with . The message is + shown in test results. + + + An array of parameters to use when formatting . + + + Thrown if does not begin with + . + + + + + Tests whether the specified string ends with the specified substring + and throws an exception if the test string does not end with the + substring. + + + The string that is expected to end with . + + + The string expected to be a suffix of . + + + Thrown if does not end with + . + + + + + Tests whether the specified string ends with the specified substring + and throws an exception if the test string does not end with the + substring. + + + The string that is expected to end with . + + + The string expected to be a suffix of . + + + The message to include in the exception when + does not end with . The message is + shown in test results. + + + Thrown if does not end with + . + + + + + Tests whether the specified string ends with the specified substring + and throws an exception if the test string does not end with the + substring. + + + The string that is expected to end with . + + + The string expected to be a suffix of . + + + The message to include in the exception when + does not end with . The message is + shown in test results. + + + An array of parameters to use when formatting . + + + Thrown if does not end with + . + + + + + Tests whether the specified string matches a regular expression and + throws an exception if the string does not match the expression. + + + The string that is expected to match . + + + The regular expression that is + expected to match. + + + Thrown if does not match + . + + + + + Tests whether the specified string matches a regular expression and + throws an exception if the string does not match the expression. + + + The string that is expected to match . + + + The regular expression that is + expected to match. + + + The message to include in the exception when + does not match . The message is shown in + test results. + + + Thrown if does not match + . + + + + + Tests whether the specified string matches a regular expression and + throws an exception if the string does not match the expression. + + + The string that is expected to match . + + + The regular expression that is + expected to match. + + + The message to include in the exception when + does not match . The message is shown in + test results. + + + An array of parameters to use when formatting . + + + Thrown if does not match + . + + + + + Tests whether the specified string does not match a regular expression + and throws an exception if the string matches the expression. + + + The string that is expected not to match . + + + The regular expression that is + expected to not match. + + + Thrown if matches . + + + + + Tests whether the specified string does not match a regular expression + and throws an exception if the string matches the expression. + + + The string that is expected not to match . + + + The regular expression that is + expected to not match. + + + The message to include in the exception when + matches . The message is shown in test + results. + + + Thrown if matches . + + + + + Tests whether the specified string does not match a regular expression + and throws an exception if the string matches the expression. + + + The string that is expected not to match . + + + The regular expression that is + expected to not match. + + + The message to include in the exception when + matches . The message is shown in test + results. + + + An array of parameters to use when formatting . + + + Thrown if matches . + + + + + TestContext class. This class should be fully abstract and not contain any + members. The adapter will implement the members. Users in the framework should + only access this via a well-defined interface. + + + + + Used to write trace messages while the test is running + + format string + the arguments + + + + Adds a file name to the list in TestResult.ResultFileNames + + + + + Begins a timer with the specified name + + + + + Ends a timer with the specified name + + + + + Per test properties + + + + + + Current data row when test is used for data driven testing. + + + + + Current data connection row when test is used for data driven testing. + + + + + Gets the test logs directory. + + + + + Gets the test directory. + + + + + Gets the test deployment directory. + + + + + Gets the test name. + + + + + Gets the CurrentTestOutcome. + + + + + Outcome of a test or a run. + If a new successful state needs to be added you will need to modify + RunResultAndStatistics in TestRun and TestOutcomeHelper below. + + NOTE: the order is important and is used for computing outcome for aggregations. + More important outcomes come first. See TestOutcomeHelper.GetAggregationOutcome. + + + + + Test was executed, but there were issues. + Issues may involve exceptions or failed assertions. + + + + + Test has completed, but we can't say if it passed or failed. + May be used for aborted tests... + + + + + Test was executed w/o any issues. + + + + + Test is currently executing. + + + + + There was a system error while we were trying to execute a test. + + + + + The test timed out. + + + + + Test was aborted by the user. + + + + + Test is in an unknown state + + + + + The data row. + + + + + The database connection. + + + + + Marks a test class. + + + + + Initializes a new test class attribute. + + + + + Marks a test method. + + + + + Initializes a new TestMethodAttribute. + + + + + A method marker called before a test method runs. + + + + + Initializes a new TestInitializeAttribute. + + + + + A method marker called after a test method runs. + + + + + Initializes a new TestCleanupAttribute. + + + + + Ignores a unit test. + + + + + Initializes a new IgnoreAttribute. + + + + + The ExpectedExceptionAttribute. + + + + + Initializes the ExpectedExceptionAttribute. + + The exception type. + + + + Initializes the ExpectedExceptionAttribute. + + The exception type. + The message. + + + + Gets the exception type. + + + + + Gets the message. + + + + + The test property attribute. + + + + + Initializes the TestPropertyAttribute. + + + + + + + Gets the name. + + + + + Gets the value. + + + + + The ClassInitializeAttribute. + + + + + Initializes the ClassInitializeAttribute. + + + + + The ClassCleanupAttribute. + + + + + Initializes the ClassCleanupAttribute. + + + + + The AssemblyInitializeAttribute. + + + + + Initializes the AssemblyInitializeAttribute. + + + + + The AssemblyCleanupAttribute. + + + + + Initializes the AssemblyCleanupAttribute. + + + + + Description of the test. + + + + + Initializes the DescriptionAttribute. + + The description. + + + + Gets the description. + + + + + The OwnerAttribute. + + + + + Initializes the OwnerAttribute. + + The owner. + + + + Gets the owner. + + + + + CSS Project Structure URI. + + + + + Initializes the CSS Project Structure URI. + + The structure. + + + + Gets the property structure. + + + + + CSS Iteration URI + + + + + Initializes the CssIterationAttribute. + + The parameter. + + + + Gets the CssIteration. + + + + + Priority attribute; used to specify the priority of a unit test. + + + + + Initializes the PriorityAttribute. + + The priority. + + + + Gets the Priority. + + + + + Timeout attribute; used to specify the timeout of a unit test. + + + + + Initializes the TimeoutAttribute. + + + + + + Gets the Timeout. + + + + + WorkItem attribute; used to specify a work item associated with this test. + + + + + Initializes the WorkItemAttribute. + + + + + + Gets the ID. + + + + + HostType specifies the type of host that this unit test will + run in. + + + + + Initializes the host type attribute. + + + + + + Constructor of HostTypeAttribute. + + The type of the host. + Custom data for the host adapter. + + + The reason this is string (and not object) is that currently CMI cannot parse arbitrary instances of object and we deprioritized changing CMI. + + + + Gets the host type. + + + + + Gets the host data. + + + + + Used to specify deployment item (file or directory) for per-test deployment. + Can be specified on test class or test method. + Can have multiple instances of the attribute to specify more than one item. + The item path can be absolute or relative, if relative, it is relative to RunConfig.RelativePathRoot. + + + [DeploymentItem("file1.xml")] + [DeploymentItem("file2.xml", "DataFiles")] + [DeploymentItem("bin\Debug")] + + + + + Initializes DeploymentItemAttribute. + + The path. + + + + Initializes DeploymentItemAttribute. + + The path. + The output directory. + + + + Verifiable interface. + + + + + The IsValid method. + + Returns a value. + + + diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/SLaB.Navigation.ContentLoaders.Auth.dll Binary file SilverlightExampleApp/Libs/SLaB.Navigation.ContentLoaders.Auth.dll has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/SLaB.Navigation.ContentLoaders.Error.dll Binary file SilverlightExampleApp/Libs/SLaB.Navigation.ContentLoaders.Error.dll has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/SLaB.Navigation.ContentLoaders.Utilities.dll Binary file SilverlightExampleApp/Libs/SLaB.Navigation.ContentLoaders.Utilities.dll has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/SLaB.Navigation.ContentLoaders.dll Binary file SilverlightExampleApp/Libs/SLaB.Navigation.ContentLoaders.dll has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/System.Windows.Interactivity.dll Binary file SilverlightExampleApp/Libs/System.Windows.Interactivity.dll has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/Libs/System.Windows.Interactivity.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/Libs/System.Windows.Interactivity.xml Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,1025 @@ + + + + System.Windows.Interactivity + + + + + Represents a collection of IAttachedObject with a shared AssociatedObject and provides change notifications to its contents when that AssociatedObject changes. + + + + + An interface for an object that can be attached to another object. + + + + + Attaches to the specified object. + + The object to attach to. + + + + Detaches this instance from its associated object. + + + + + Gets the associated object. + + The associated object. + Represents the object the instance is attached to. + + + + Initializes a new instance of the class. + + Internal, because this should not be inherited outside this assembly. + + + + Called immediately after the collection is attached to an AssociatedObject. + + + + + Called when the collection is being detached from its AssociatedObject, but before it has actually occurred. + + + + + Called when a new item is added to the collection. + + The new item. + + + + Called when an item is removed from the collection. + + The removed item. + + + Cannot add the instance to a collection more than once. + + + + Attaches to the specified object. + + The object to attach to. + The IAttachedObject is already attached to a different object. + + + + Detaches this instance from its associated object. + + + + + The object on which the collection is hosted. + + + + + Gets the associated object. + + The associated object. + + + + Encapsulates state information and zero or more ICommands into an attachable object. + + The type the can be attached to. + + Behavior is the base class for providing attachable state and commands to an object. + The types the Behavior can be attached to can be controlled by the generic parameter. + Override OnAttached() and OnDetaching() methods to hook and unhook any necessary handlers + from the AssociatedObject. + + + + + Encapsulates state information and zero or more ICommands into an attachable object. + + This is an infrastructure class. Behavior authors should derive from Behavior<T> instead of from this class. + + + + Called after the behavior is attached to an AssociatedObject. + + Override this to hook up functionality to the AssociatedObject. + + + + Called when the behavior is being detached from its AssociatedObject, but before it has actually occurred. + + Override this to unhook functionality from the AssociatedObject. + + + + Attaches to the specified object. + + The object to attach to. + The Behavior is already hosted on a different element. + dependencyObject does not satisfy the Behavior type constraint. + + + + Detaches this instance from its associated object. + + + + + The type to which this behavior can be attached. + + + + + Gets the object to which this behavior is attached. + + + + + Gets the associated object. + + The associated object. + + + + Initializes a new instance of the class. + + + + + Gets the object to which this is attached. + + + + + Represents a collection of behaviors with a shared AssociatedObject and provides change notifications to its contents when that AssociatedObject changes. + + + + + Initializes a new instance of the class. + + Internal, because this should not be inherited outside this assembly. + + + + Called immediately after the collection is attached to an AssociatedObject. + + + + + Called when the collection is being detached from its AssociatedObject, but before it has actually occurred. + + + + + Called when a new item is added to the collection. + + The new item. + + + + Called when an item is removed from the collection. + + The removed item. + + + + Enumerates possible values for reusable property value editors. + + + + + Uses the element picker, if supported, to edit this property at design time. + + + + + Uses the storyboard picker, if supported, to edit this property at design time. + + + + + Uses the state picker, if supported, to edit this property at design time. + + + + + Uses the element-binding picker, if supported, to edit this property at design time. + + + + + Uses the property-binding picker, if supported, to edit this property at design time. + + + + + Associates the given editor type with the property on which the CustomPropertyValueEditor is applied. + + Use this attribute to get improved design-time editing for properties that denote element (by name), storyboards, or states (by name). + + + + Initializes a new instance of the class. + + The custom property value editor. + + + + Gets or sets the custom property value editor. + + The custom property value editor. + + + + Provides design tools information about what to instantiate for a given action or command. + + + + + Initializes a new instance of the class. + + The type this attribute applies to. + The type of to instantiate. + A single argument for the specified . + is not derived from TriggerBase. + This constructor is useful if the specifed has a single argument. The + resulting code will be CLS compliant. + + + + Initializes a new instance of the class. + + The type this attribute applies to. + The type of to instantiate. + The constructor arguments for the specified . + is not derived from TriggerBase. + + + + Instantiates this instance. + + The specified by the DefaultTriggerAttribute. + + + + Gets the type that this DefaultTriggerAttribute applies to. + + The type this DefaultTriggerAttribute applies to. + + + + Gets the type of the to instantiate. + + The type of the to instantiate. + + + + Gets the parameters to pass to the constructor. + + The parameters to pass to the constructor. + + + + This method will use the VisualTreeHelper.GetParent method to do a depth first walk up + the visual tree and return all ancestors of the specified object, including the object itself. + + The object in the visual tree to find ancestors of. + Returns itself an all ancestors in the visual tree. + + + + EventObserver is designed to help manage event handlers by detatching when disposed. Creating this object will also attach in the constructor. + + + + + Creates an instance of EventObserver and attaches to the supplied event on the supplied target. Call dispose to detach. + + The event to attach and detach from. + The target object the event is defined on. Null if the method is static. + The delegate to attach to the event. + + + + Detaches the handler from the event. + + + + + A trigger that listens for a specified event on its source and fires when that event is fired. + + + + + Represents a trigger that can listen to an element other than its AssociatedObject. + + The type that this trigger can be associated with. + + EventTriggerBase extends TriggerBase to add knowledge of another object than the one it is attached to. + This allows a user to attach a Trigger/Action pair to one element and invoke the Action in response to a + change in another object somewhere else. Override OnSourceChanged to hook or unhook handlers on the source + element, and OnAttached/OnDetaching for the associated element. The type of the Source element can be + constrained by the generic type parameter. If you need control over the type of the + AssociatedObject, set a TypeConstraintAttribute on your derived type. + + + + + Represents a trigger that can listen to an object other than its AssociatedObject. + + This is an infrastructure class. Trigger authors should derive from EventTriggerBase<T> instead of this class. + + + + Represents an object that can invoke Actions conditionally. + + This is an infrastructure class. Trigger authors should derive from Trigger<T> instead of this class. + + + + Invoke all actions associated with this trigger. + + Derived classes should call this to fire the trigger. + + + + Called after the trigger is attached to an AssociatedObject. + + + + + Called when the trigger is being detached from its AssociatedObject, but before it has actually occurred. + + + + + Attaches to the specified object. + + The object to attach to. + Cannot host the same trigger on more than one object at a time. + dependencyObject does not satisfy the trigger type constraint. + + + + Detaches this instance from its associated object. + + + + + Gets the object to which the trigger is attached. + + The associated object. + + + + Gets the type constraint of the associated object. + + The associated object type constraint. + + + + Gets the actions associated with this trigger. + + The actions associated with this trigger. + + + + Event handler for registering to PreviewInvoke. + + + + + Gets the associated object. + + The associated object. + + + + Specifies the name of the Event this EventTriggerBase is listening for. + + + + + + Called when the event associated with this EventTriggerBase is fired. By default, this will invoke all actions on the trigger. + + The instance containing the event data. + Override this to provide more granular control over when actions associated with this trigger will be invoked. + + + + Called when the source changes. + + The old source. + The new source. + This function should be overridden in derived classes to hook functionality to and unhook functionality from the changing source objects. + + + + Called after the trigger is attached to an AssociatedObject. + + + + + Called when the trigger is being detached from its AssociatedObject, but before it has actually occurred. + + + + Could not find eventName on the Target. + + + + Gets the type constraint of the associated object. + + The associated object type constraint. + Define a TypeConstraintAttribute on a derived type to constrain the types it may be attached to. + + + + Gets the source type constraint. + + The source type constraint. + + + + Gets or sets the target object. If TargetObject is not set, the target will look for the object specified by TargetName. If an element referred to by TargetName cannot be found, the target will default to the AssociatedObject. This is a dependency property. + + The target object. + + + + Gets or sets the name of the element this EventTriggerBase listens for as a source. If the name is not set or cannot be resolved, the AssociatedObject will be used. This is a dependency property. + + The name of the source element. + + + + Gets the resolved source. If is not set or cannot be resolved, defaults to AssociatedObject. + + The resolved source object. + In general, this property should be used in place of AssociatedObject in derived classes. + The element pointed to by does not satisify the type constraint. + + + + Initializes a new instance of the class. + + + + + Called when the source property changes. + + Override this to hook functionality to and unhook functionality from the specified source, rather than the AssociatedObject. + The old source. + The new source. + + + + Gets the resolved source. If is not set or cannot be resolved, defaults to AssociatedObject. + + The resolved source object. + In general, this property should be used in place of AssociatedObject in derived classes. + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Name of the event. + + + + Gets or sets the name of the event to listen for. This is a dependency property. + + The name of the event. + + + + Static class that owns the Triggers and Behaviors attached properties. Handles propagation of AssociatedObject change notifications. + + + + + This property is used as the internal backing store for the public Triggers attached property. + + + + + This property is used as the internal backing store for the public Behaviors attached property. + + + + + Gets the TriggerCollection containing the triggers associated with the specified object. + + The object from which to retrieve the triggers. + A TriggerCollection containing the triggers associated with the specified object. + + + + Gets the associated with a specified object. + + The object from which to retrieve the . + A containing the behaviors associated with the specified object. + + + Cannot host the same BehaviorCollection on more than one object at a time. + + + Cannot host the same TriggerCollection on more than one object at a time. + + + + A helper function to take the place of FrameworkElement.IsLoaded, as this property is not available in Silverlight. + + The element of interest. + True if the element has been loaded; otherwise, False. + + + + Executes a specified ICommand when invoked. + + + + + Represents an attachable object that encapsulates a unit of functionality. + + The type to which this action can be attached. + + + + Represents an attachable object that encapsulates a unit of functionality. + + This is an infrastructure class. Action authors should derive from TriggerAction<T> instead of this class. + + + + Attempts to invoke the action. + + The parameter to the action. If the action does not require a parameter, the parameter may be set to a null reference. + + + + Invokes the action. + + The parameter to the action. If the action does not require a parameter, the parameter may be set to a null reference. + + + + Called after the action is attached to an AssociatedObject. + + + + + Called when the action is being detached from its AssociatedObject, but before it has actually occurred. + + + + + Attaches to the specified object. + + The object to attach to. + Cannot host the same TriggerAction on more than one object at a time. + dependencyObject does not satisfy the TriggerAction type constraint. + + + + Detaches this instance from its associated object. + + + + + Gets or sets a value indicating whether this action will run when invoked. This is a dependency property. + + + True if this action will be run when invoked; otherwise, False. + + + + + Gets the object to which this action is attached. + + The associated object. + + + + Gets the associated object type constraint. + + The associated object type constraint. + + + + Gets or sets a value indicating whether this instance is attached. + + True if this instance is attached; otherwise, False. + + + + Gets the associated object. + + The associated object. + + + + Initializes a new instance of the class. + + + + + Gets the object to which this is attached. + + The associated object. + + + + Gets the associated object type constraint. + + The associated object type constraint. + + + + Invokes the action. + + The parameter to the action. If the action does not require a parameter, the parameter may be set to a null reference. + + + + Gets or sets the name of the command this action should invoke. + + The name of the command this action should invoke. + This property will be superseded by the Command property if both are set. + + + + Gets or sets the command this action should invoke. This is a dependency property. + + The command to execute. + This property will take precedence over the CommandName property if both are set. + + + + Gets or sets the command parameter. This is a dependency property. + + The command parameter. + This is the value passed to ICommand.CanExecute and ICommand.Execute. + + + + Provides data about which objects were affected when resolving a name change. + + + + + Helper class to handle the logic of resolving a TargetName into a Target element + based on the context provided by a host element. + + + + + Attempts to update the resolved object from the name within the context of the namescope reference element. + + The old resolved object. + + Resets the existing target and attempts to resolve the current TargetName from the + context of the current Host. If it cannot resolve from the context of the Host, it will + continue up the visual tree until it resolves. If it has not resolved it when it reaches + the root, it will set the Target to null and write a warning message to Debug output. + + + + + Occurs when the resolved element has changed. + + + + + Gets or sets the name of the element to attempt to resolve. + + The name to attempt to resolve. + + + + The resolved object. Will return the reference element if TargetName is null or empty, or if a resolve has not been attempted. + + + + + Gets or sets the reference element from which to perform the name resolution. + + The reference element. + + + + Gets or sets a value indicating whether the reference element load is pending. + + + True if [pending reference element load]; otherwise, False. + + + If the Host has not been loaded, the name will not be resolved. + In that case, delay the resolution and track that fact with this property. + + + + + Represents an action that can be targeted to affect an object other than its AssociatedObject. + + The type constraint on the target. + + TargetedTriggerAction extends TriggerAction to add knowledge of another element than the one it is attached to. + This allows a user to invoke the action on an element other than the one it is attached to in response to a + trigger firing. Override OnTargetChanged to hook or unhook handlers on the target element, and OnAttached/OnDetaching + for the associated element. The type of the Target element can be constrained by the generic type parameter. If + you need control over the type of the AssociatedObject, set a TypeConstraintAttribute on your derived type. + + + + + Represents an action that can be targeted to affect an object other than its AssociatedObject. + + This is an infrastructure class. Action authors should derive from TargetedTriggerAction<T> instead of this class. + + + + Called when the target changes. + + The old target. + The new target. + This function should be overriden in derived classes to hook and unhook functionality from the changing source objects. + + + + Called after the action is attached to an AssociatedObject. + + + + + Called when the action is being detached from its AssociatedObject, but before it has actually occurred. + + + + + Gets or sets the target object. If TargetObject is not set, the target will look for the object specified by TargetName. If an element referred to by TargetName cannot be found, the target will default to the AssociatedObject. This is a dependency property. + + The target object. + + + + Gets or sets the name of the object this action targets. If Target is set, this property is ignored. If Target is not set and TargetName is not set or cannot be resolved, the target will default to the AssociatedObject. This is a dependency property. + + The name of the target object. + + + + Gets the target object. If TargetObject is set, returns TargetObject. Else, if TargetName is not set or cannot be resolved, defaults to the AssociatedObject. + + The target object. + In general, this property should be used in place of AssociatedObject in derived classes. + The Target element does not satisfy the type constraint. + + + + Gets the associated object type constraint. + + The associated object type constraint. + Define a TypeConstraintAttribute on a derived type to constrain the types it may be attached to. + + + + Gets the target type constraint. + + The target type constraint. + + + + Initializes a new instance of the class. + + + + + Called when the target property changes. + + Override this to hook and unhook functionality on the specified Target, rather than the AssociatedObject. + The old target. + The new target. + + + + Gets the target object. If TargetName is not set or cannot be resolved, defaults to the AssociatedObject. + + The target. + In general, this property should be used in place of AssociatedObject in derived classes. + + + + Represents a collection of actions with a shared AssociatedObject and provides change notifications to its contents when that AssociatedObject changes. + + + + + Initializes a new instance of the class. + + Internal, because this should not be inherited outside this assembly. + + + + Called immediately after the collection is attached to an AssociatedObject. + + + + + Called when the collection is being detached from its AssociatedObject, but before it has actually occurred. + + + + + Called when a new item is added to the collection. + + The new item. + + + + Called when an item is removed from the collection. + + The removed item. + + + + Represents an object that can invoke actions conditionally. + + The type to which this trigger can be attached. + + TriggerBase is the base class for controlling actions. Override OnAttached() and + OnDetaching() to hook and unhook handlers on the AssociatedObject. You may + constrain the types that a derived TriggerBase may be attached to by specifying + the generic parameter. Call InvokeActions() to fire all Actions associated with + this TriggerBase. + + + + + Initializes a new instance of the class. + + + + + Gets the object to which the trigger is attached. + + The associated object. + + + + Gets the type constraint of the associated object. + + The associated object type constraint. + + + + Argument passed to PreviewInvoke event. Assigning Cancelling to True will cancel the invoking of the trigger. + + This is an infrastructure class. Behavior attached to a trigger base object can add its behavior as a listener to TriggerBase.PreviewInvoke. + + + + Represents a collection of triggers with a shared AssociatedObject and provides change notifications to its contents when that AssociatedObject changes. + + + + + Initializes a new instance of the class. + + Internal, because this should not be inherited outside this assembly. + + + + Called immediately after the collection is attached to an AssociatedObject. + + + + + Called when the collection is being detached from its AssociatedObject, but before it has actually occurred. + + + + + Called when a new item is added to the collection. + + The new item. + + + + Called when an item is removed from the collection. + + The removed item. + + + + Specifies type constraints on the AssociatedObject of TargetedTriggerAction and EventTriggerBase. + + + + + Initializes a new instance of the class. + + The constraint type. + + + + Gets the constraint type. + + The constraint type. + + + + A strongly-typed resource class, for looking up localized strings, etc. + + + + + Returns the cached ResourceManager instance used by this class. + + + + + Overrides the current thread's CurrentUICulture property for all + resource lookups using this strongly typed resource class. + + + + + Looks up a localized string similar to Cannot set the same BehaviorCollection on multiple objects.. + + + + + Looks up a localized string similar to An instance of a Behavior cannot be attached to more than one object at a time.. + + + + + Looks up a localized string similar to Cannot host an instance of a TriggerAction in multiple TriggerCollections simultaneously. Remove it from one TriggerCollection before adding it to another.. + + + + + Looks up a localized string similar to Cannot set the same TriggerCollection on multiple objects.. + + + + + Looks up a localized string similar to An instance of a trigger cannot be attached to more than one object at a time.. + + + + + Looks up a localized string similar to The command "{0}" does not exist or is not publicly exposed on {1}.. + + + + + Looks up a localized string similar to "{0}" is not a valid type for the TriggerType parameter. Make sure "{0}" derives from TriggerBase.. + + + + + Looks up a localized string similar to Cannot add the same instance of "{0}" to a "{1}" more than once.. + + + + + Looks up a localized string similar to The event "{0}" on type "{1}" has an incompatible signature. Make sure the event is public and satisfies the EventHandler delegate.. + + + + + Looks up a localized string similar to Cannot find an event named "{0}" on type "{1}".. + + + + + Looks up a localized string similar to An object of type "{0}" cannot have a {3} property of type "{1}". Instances of type "{0}" can have only a {3} property of type "{2}".. + + + + + Looks up a localized string similar to Cannot attach type "{0}" to type "{1}". Instances of type "{0}" can only be attached to objects of type "{2}".. + + + + + Looks up a localized string similar to Unable to resolve TargetName "{0}".. + + + + diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Interfaces/Models/IClient.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Interfaces/Models/IClient.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,15 @@ +using System; + +namespace SilverlightExampleApp.Interfaces.Models +{ + public interface IClient + { + int Id { get; set; } + ITitle Title { get; set; } + string FirstName { get; set; } + string FamilyName { get; set; } + DateTime DateOfBirth { get; set; } + ICountry Residence { get; set; } + bool ActiveFlag { get; set; } + } +} \ No newline at end of file diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Interfaces/Models/ICountry.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Interfaces/Models/ICountry.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,8 @@ +namespace SilverlightExampleApp.Interfaces.Models +{ + public interface ICountry + { + int Id { get; set; } + string Description { get; set; } + } +} \ No newline at end of file diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Interfaces/Models/ITitle.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Interfaces/Models/ITitle.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,8 @@ +namespace SilverlightExampleApp.Interfaces.Models +{ + public interface ITitle + { + int Id { get; set; } + string Description { get; set; } + } +} \ No newline at end of file diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Interfaces/Properties/AssemblyInfo.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Interfaces/Properties/AssemblyInfo.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("SilverlightExampleApp.SL.Interfaces")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("SilverlightExampleApp.SL.Interfaces")] +[assembly: AssemblyCopyright("Copyright © 2012")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("616d0ea5-191f-4b3d-8c8c-0574a50a49b0")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Interfaces/Services/IClientDataService.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Interfaces/Services/IClientDataService.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,14 @@ +using System.Collections.Generic; +using SilverlightExampleApp.Interfaces.Models; + +namespace SilverlightExampleApp.Interfaces.Services +{ + public interface IClientDataService + { + IClient Get(int id); + IList GetAll(); + void Insert(IClient item); + void Update(IClient item); + void Delete(IClient item); + } +} diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Interfaces/SilverlightExampleApp.Interfaces.csproj --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Interfaces/SilverlightExampleApp.Interfaces.csproj Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,79 @@ + + + + Debug + AnyCPU + 8.0.50727 + 2.0 + {6C96E971-4A29-462B-88CD-4C05065BFE3A} + {A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Library + Properties + SilverlightExampleApp.Interfaces + SilverlightExampleApp.Interfaces + Silverlight + v5.0 + $(TargetFrameworkVersion) + false + true + true + + + + v3.5 + + + true + full + false + Bin\Debug + DEBUG;TRACE;SILVERLIGHT + true + true + prompt + 4 + + + pdbonly + true + Bin\Release + TRACE;SILVERLIGHT + true + true + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/ClientBin/SilverlightExampleApp.xap Binary file SilverlightExampleApp/SilverlightExampleApp.Web/ClientBin/SilverlightExampleApp.xap has changed diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Factories/ClientFactory.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Factories/ClientFactory.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,226 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using SilverlightExampleApp.Interfaces.Models; +using SilverlightExampleApp.Web.Models; + +namespace SilverlightExampleApp.Web.Factories +{ + public class ClientFactory + { + private static List _clients = new List(20) + { + new Client + { + Id = 1, + Title = TitleFactory.Get(1), + FirstName = "Andy", + FamilyName = "Appleton", + DateOfBirth = new DateTime(1951, 01, 01), + Residence = CountryFactory.Get(1), + ActiveFlag = true + }, + new Client + { + Id = 2, + Title = TitleFactory.Get(2), + FirstName = "Ben", + FamilyName = "Birbeck", + DateOfBirth = new DateTime(1952, 02, 02), + Residence = CountryFactory.Get(2), + ActiveFlag = true + }, + new Client + { + Id = 3, + Title = TitleFactory.Get(3), + FirstName = "Calvin", + FamilyName = "Clayton", + DateOfBirth = new DateTime(1953, 03, 03), + Residence = CountryFactory.Get(3), + ActiveFlag = true + }, + new Client + { + Id = 4, + Title = TitleFactory.Get(4), + FirstName = "Derrick", + FamilyName = "Digby", + DateOfBirth = new DateTime(1954, 04, 04), + Residence = CountryFactory.Get(4), + ActiveFlag = true + }, + new Client + { + Id = 5, + Title = TitleFactory.Get(5), + FirstName = "Eddie", + FamilyName = "Edwards", + DateOfBirth = new DateTime(1955, 05, 05), + Residence = CountryFactory.Get(5), + ActiveFlag = true + }, + new Client + { + Id = 6, + Title = TitleFactory.Get(6), + FirstName = "Fred", + FamilyName = "Flint", + DateOfBirth = new DateTime(1956, 06, 06), + Residence = CountryFactory.Get(6), + ActiveFlag = true + }, + new Client + { + Id = 7, + Title = TitleFactory.Get(7), + FirstName = "Greg", + FamilyName = "Gaynor", + DateOfBirth = new DateTime(1957, 07, 07), + Residence = CountryFactory.Get(7), + ActiveFlag = true + }, + new Client + { + Id = 8, + Title = TitleFactory.Get(1), + FirstName = "Harry", + FamilyName = "Hillbilly", + DateOfBirth = new DateTime(1958, 08, 08), + Residence = CountryFactory.Get(1), + ActiveFlag = true + }, + new Client + { + Id = 9, + Title = TitleFactory.Get(2), + FirstName = "Ingrid", + FamilyName = "Inglebert", + DateOfBirth = new DateTime(1959, 9, 9), + Residence = CountryFactory.Get(2), + ActiveFlag = true + }, + new Client + { + Id = 10, + Title = TitleFactory.Get(3), + FirstName = "Jacqui", + FamilyName = "Jackson", + DateOfBirth = new DateTime(1960, 10, 10), + Residence = CountryFactory.Get(3), + ActiveFlag = true + }, + new Client + { + Id = 11, + Title = TitleFactory.Get(1), + FirstName = "Kelly", + FamilyName = "Klackson", + DateOfBirth = new DateTime(1961, 01, 01), + Residence = CountryFactory.Get(4), + ActiveFlag = true + }, + new Client + { + Id = 12, + Title = TitleFactory.Get(2), + FirstName = "Leo", + FamilyName = "Lyons", + DateOfBirth = new DateTime(1952, 02, 02), + Residence = CountryFactory.Get(5), + ActiveFlag = true + }, + new Client + { + Id = 13, + Title = TitleFactory.Get(3), + FirstName = "Marcus", + FamilyName = "Matthews", + DateOfBirth = new DateTime(1953, 03, 03), + Residence = CountryFactory.Get(6), + ActiveFlag = true + }, + new Client + { + Id = 14, + Title = TitleFactory.Get(4), + FirstName = "Nigel", + FamilyName = "Newton", + DateOfBirth = new DateTime(1954, 04, 04), + Residence = CountryFactory.Get(7), + ActiveFlag = true + }, + new Client + { + Id = 15, + Title = TitleFactory.Get(5), + FirstName = "Otis", + FamilyName = "Otherson", + DateOfBirth = new DateTime(1955, 05, 05), + Residence = CountryFactory.Get(1), + ActiveFlag = true + }, + new Client + { + Id = 16, + Title = TitleFactory.Get(6), + FirstName = "Paul", + FamilyName = "Pickles", + DateOfBirth = new DateTime(1956, 06, 06), + Residence = CountryFactory.Get(2), + ActiveFlag = true + }, + new Client + { + Id = 17, + Title = TitleFactory.Get(7), + FirstName = "Richard", + FamilyName = "Rutherford", + DateOfBirth = new DateTime(1957, 07, 07), + Residence = CountryFactory.Get(3), + ActiveFlag = true + }, + new Client + { + Id = 18, + Title = TitleFactory.Get(1), + FirstName = "Steve", + FamilyName = "Saunders", + DateOfBirth = new DateTime(1958, 08, 08), + Residence = CountryFactory.Get(4), + ActiveFlag = true + }, + new Client + { + Id = 19, + Title = TitleFactory.Get(2), + FirstName = "Tommy", + FamilyName = "Tackle", + DateOfBirth = new DateTime(1959, 9, 9), + Residence = CountryFactory.Get(5), + ActiveFlag = true + }, + new Client + { + Id = 20, + Title = TitleFactory.Get(3), + FirstName = "Yohan", + FamilyName = "Yatz", + DateOfBirth = new DateTime(1960, 10, 10), + Residence = CountryFactory.Get(6), + ActiveFlag = true + } + }; + + public static IList GetAll() + { + return _clients; + } + + public static IClient Get(int id) + { + return _clients.FirstOrDefault(c => id == c.Id); + } + } +} \ No newline at end of file diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Factories/CountryFactory.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Factories/CountryFactory.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,32 @@ + +using System.Collections.Generic; +using System.Linq; +using SilverlightExampleApp.Interfaces.Models; +using SilverlightExampleApp.Web.Models; + +namespace SilverlightExampleApp.Web.Factories +{ + public class CountryFactory + { + private readonly static IList _countries = new List(7) + { + new Country() {Id = 1, Description = "England"}, + new Country() {Id = 2, Description = "France"}, + new Country() {Id = 3, Description = "Germany"}, + new Country() {Id = 4, Description = "Italy"}, + new Country() {Id = 5, Description = "Scotland"}, + new Country() {Id = 6, Description = "Spain"}, + new Country() {Id = 7, Description = "Wales"} + }; + + public static IList GetAll() + { + return _countries; + } + + public static ICountry Get(int id) + { + return _countries.FirstOrDefault(t => id == t.Id); + } + } +} \ No newline at end of file diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Factories/TitleFactory.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Factories/TitleFactory.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,30 @@ +using System.Collections.Generic; +using System.Linq; +using SilverlightExampleApp.Interfaces.Models; +using SilverlightExampleApp.Web.Models; + +namespace SilverlightExampleApp.Web.Factories +{ + public class TitleFactory + { + private readonly static IList _titles = new List(7) + { + new Title() {Id = 1, Description = "Mr"}, + new Title() {Id = 2, Description = "Miss"}, + new Title() {Id = 3, Description = "Mrs"}, + new Title() {Id = 4, Description = "Ms"}, + new Title() {Id = 5, Description = "Master"}, + new Title() {Id = 6, Description = "Sir"}, + new Title() {Id = 7, Description = "Dr"} + }; + public static IList GetAll() + { + return _titles; + } + + public static ITitle Get(int id) + { + return _titles.FirstOrDefault(t => id == t.Id); + } + } +} \ No newline at end of file diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Global.asax --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Global.asax Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,1 @@ +<%@ Application Codebehind="Global.asax.cs" Inherits="SilverlightExampleApp.Web.Global" Language="C#" %> diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Global.asax.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Global.asax.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,42 @@ +using System; +using System.Web; + +namespace SilverlightExampleApp.Web +{ + public class Global : HttpApplication + { + protected void Application_Start(object sender, EventArgs e) + { + } + + protected void Session_Start(object sender, EventArgs e) + { + + } + + protected void Application_BeginRequest(object sender, EventArgs e) + { + + } + + protected void Application_AuthenticateRequest(object sender, EventArgs e) + { + + } + + protected void Application_Error(object sender, EventArgs e) + { + + } + + protected void Session_End(object sender, EventArgs e) + { + + } + + protected void Application_End(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Models/Client.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Models/Client.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,16 @@ +using System; +using SilverlightExampleApp.Interfaces.Models; + +namespace SilverlightExampleApp.Web.Models +{ + public class Client : IClient + { + public int Id { get; set; } + public ITitle Title { get; set; } + public string FirstName { get; set; } + public string FamilyName { get; set; } + public DateTime DateOfBirth { get; set; } + public ICountry Residence { get; set; } + public bool ActiveFlag { get; set; } + } +} \ No newline at end of file diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Models/Country.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Models/Country.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,10 @@ +using SilverlightExampleApp.Interfaces.Models; + +namespace SilverlightExampleApp.Web.Models +{ + public class Country : ICountry + { + public int Id { get; set; } + public string Description { get; set; } + } +} \ No newline at end of file diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Models/Title.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Models/Title.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,10 @@ +using SilverlightExampleApp.Interfaces.Models; + +namespace SilverlightExampleApp.Web.Models +{ + public class Title : ITitle + { + public int Id { get; set; } + public string Description { get; set; } + } +} \ No newline at end of file diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Properties/AssemblyInfo.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Properties/AssemblyInfo.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("SilverlightExampleApp.Web")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("SilverlightExampleApp.Web")] +[assembly: AssemblyCopyright("Copyright © Microsoft 2011")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("50ae6a17-f131-493b-8b76-85cbd0a5021b")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Repositories/ClientMockRepository.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Repositories/ClientMockRepository.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,51 @@ +using System.Collections.Generic; +using System.Linq; +using SilverlightExampleApp.Interfaces.Models; +using SilverlightExampleApp.Web.Factories; + +namespace SilverlightExampleApp.Web.Repositories +{ + public class ClientMockRepository : IRepository + { + public IList Clients { get; set; } + + public ClientMockRepository() + { + Clients = ClientFactory.GetAll(); + } + + #region IRepository Members + + public IClient Get(int id) + { + return Clients.FirstOrDefault(c => id == c.Id); + } + + public IList GetAll() + { + return Clients; + } + + public void Insert(IClient item) + { + Clients.Add(item); + } + + public void Update(IClient item) + { + var client = Clients.FirstOrDefault(c => item.Id == c.Id); + client.FirstName = item.FirstName; + client.FamilyName = item.FamilyName; + client.Title = item.Title; + client.Residence = item.Residence; + } + + public void Delete(IClient item) + { + var client = Clients.FirstOrDefault(c => item.Id == c.Id); + Clients.Remove(client); + } + + #endregion + } +} \ No newline at end of file diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Repositories/IRepository.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Repositories/IRepository.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,14 @@ +using System.Collections.Generic; + +namespace SilverlightExampleApp.Web.Repositories +{ + public interface IRepository + { + T Get(int id); + IList GetAll(); + + void Insert(T item); + void Update(T item); + void Delete(T item); + } +} \ No newline at end of file diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Secure/ClientDataService.svc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Secure/ClientDataService.svc Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,1 @@ +<%@ ServiceHost Language="C#" Debug="true" Service="SilverlightExampleApp.Web.Secure.ClientDataService" CodeBehind="ClientDataService.svc.cs" %> diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Secure/ClientDataService.svc.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Secure/ClientDataService.svc.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,58 @@ +using System.Collections.Generic; +using System.ServiceModel; +using System.ServiceModel.Activation; +using SilverlightExampleApp.Interfaces.Models; +using SilverlightExampleApp.Interfaces.Services; +using SilverlightExampleApp.Web.Models; +using SilverlightExampleApp.Web.Repositories; + +namespace SilverlightExampleApp.Web.Secure +{ + [ServiceContract(Namespace = "")] + [SilverlightFaultBehavior] + [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] + public class ClientDataService : IClientDataService + { + private readonly IRepository _repo; + + public ClientDataService() : this(new ClientMockRepository()) + { + + } + + public ClientDataService(IRepository repo) + { + _repo = repo; + } + + [OperationContract] + public IClient Get(int id) + { + return _repo.Get(id); + } + + [OperationContract] + public IList GetAll() + { + return _repo.GetAll(); + } + + [OperationContract] + public void Insert(IClient item) + { + _repo.Insert(item); + } + + [OperationContract] + public void Update(IClient item) + { + _repo.Update(item); + } + + [OperationContract] + public void Delete(IClient item) + { + _repo.Delete(item); + } + } +} diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Secure/SecureService.svc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Secure/SecureService.svc Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,1 @@ +<%@ ServiceHost Language="C#" Debug="true" Service="SilverlightExampleApp.Web.Secure.SecureService" CodeBehind="SecureService.svc.cs" %> diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Secure/SecureService.svc.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Secure/SecureService.svc.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,23 @@ +using System; +using System.Linq; +using System.Runtime.Serialization; +using System.ServiceModel; +using System.ServiceModel.Activation; + +namespace SilverlightExampleApp.Web.Secure +{ + [ServiceContract(Namespace = "")] + [SilverlightFaultBehavior] + [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] + public class SecureService + { + [OperationContract] + public void DoWork() + { + // Add your operation implementation here + return; + } + + // Add more operations here and mark them with [OperationContract] + } +} diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Secure/SilverlightFaultBehavior.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Secure/SilverlightFaultBehavior.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,72 @@ +// This is an auto-generated file to enable WCF faults to reach Silverlight clients. + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Runtime.Serialization; +using System.Net; +using System.ServiceModel; +using System.ServiceModel.Channels; +using System.ServiceModel.Description; +using System.ServiceModel.Dispatcher; + +namespace SilverlightExampleApp.Web.Secure +{ + public class SilverlightFaultBehavior : Attribute, IServiceBehavior + { + private class SilverlightFaultEndpointBehavior : IEndpointBehavior + { + public void AddBindingParameters(ServiceEndpoint endpoint, BindingParameterCollection bindingParameters) + { + } + + public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime) + { + } + + public void ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher) + { + endpointDispatcher.DispatchRuntime.MessageInspectors.Add(new SilverlightFaultMessageInspector()); + } + + public void Validate(ServiceEndpoint endpoint) + { + } + + private class SilverlightFaultMessageInspector : IDispatchMessageInspector + { + public object AfterReceiveRequest(ref Message request, IClientChannel channel, InstanceContext instanceContext) + { + return null; + } + + public void BeforeSendReply(ref Message reply, object correlationState) + { + if ((reply != null) && reply.IsFault) + { + HttpResponseMessageProperty property = new HttpResponseMessageProperty(); + property.StatusCode = HttpStatusCode.OK; + reply.Properties[HttpResponseMessageProperty.Name] = property; + } + } + } + } + + public void AddBindingParameters(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase, Collection endpoints, BindingParameterCollection bindingParameters) + { + } + + public void ApplyDispatchBehavior(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase) + { + foreach (ServiceEndpoint endpoint in serviceDescription.Endpoints) + { + endpoint.Behaviors.Add(new SilverlightFaultEndpointBehavior()); + } + } + + public void Validate(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase) + { + } + } +} diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Services/AuthenticationService.svc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Services/AuthenticationService.svc Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,1 @@ +<%@ ServiceHost Language="C#" Debug="true" Service="SilverlightExampleApp.Web.Services.AuthenticationService" CodeBehind="AuthenticationService.svc.cs" %> diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Services/AuthenticationService.svc.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Services/AuthenticationService.svc.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,35 @@ +using System.ServiceModel; +using System.ServiceModel.Activation; +using System.Web.Security; + +namespace SilverlightExampleApp.Web.Services +{ + [ServiceContract(Namespace = "")] + [SilverlightFaultBehavior] + [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] + public class AuthenticationService + { + [OperationContract] + public bool Authenticate(string username, string password) + { + if (ValidateLogin(username, password)) + { + FormsAuthentication.SetAuthCookie(username, false); + return true; + } + return false; + } + + [OperationContract] + public bool LogOut() + { + FormsAuthentication.SignOut(); + return true; + } + + public bool ValidateLogin(string username, string password) + { + return username == "stevenh" && password == "password"; + } + } +} diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Services/Helpers.asmx --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Services/Helpers.asmx Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,1 @@ +<%@ WebService Language="C#" CodeBehind="Helpers.asmx.cs" Class="SilverlightExampleApp.Web.Services.Helpers" %> diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Services/Helpers.asmx.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Services/Helpers.asmx.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,31 @@ +using System; +using System.Globalization; +using System.Web.Services; +using System.Windows; +using System.Windows.Media; + +namespace SilverlightExampleApp.Web.Services +{ + [WebService(Namespace = "http://silverbladetechnology.com/")] + [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] + [System.ComponentModel.ToolboxItem(false)] + public class Helpers : WebService + { + [WebMethod] + public string Text2Path(String strText, string strCulture, bool LtoR, string strTypeFace, int nSize) + { + if (strCulture == "") + strCulture = "en-us"; + + CultureInfo ci = new CultureInfo(strCulture); + FlowDirection fd = LtoR ? FlowDirection.LeftToRight : FlowDirection.RightToLeft; + FontFamily ff = new FontFamily(strTypeFace); + Typeface tf = new Typeface(ff, FontStyles.Normal, FontWeights.Normal, FontStretches.Normal); + FormattedText t = new FormattedText(strText, ci, fd, tf, nSize, Brushes.Black); + Geometry g = t.BuildGeometry(new Point(0, 0)); + PathGeometry p = g.GetFlattenedPathGeometry(); + + return p.ToString(); + } + } +} diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Services/SilverlightFaultBehavior.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Services/SilverlightFaultBehavior.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,72 @@ +// This is an auto-generated file to enable WCF faults to reach Silverlight clients. + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Runtime.Serialization; +using System.Net; +using System.ServiceModel; +using System.ServiceModel.Channels; +using System.ServiceModel.Description; +using System.ServiceModel.Dispatcher; + +namespace SilverlightExampleApp.Web.Services +{ + public class SilverlightFaultBehavior : Attribute, IServiceBehavior + { + private class SilverlightFaultEndpointBehavior : IEndpointBehavior + { + public void AddBindingParameters(ServiceEndpoint endpoint, BindingParameterCollection bindingParameters) + { + } + + public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime) + { + } + + public void ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher) + { + endpointDispatcher.DispatchRuntime.MessageInspectors.Add(new SilverlightFaultMessageInspector()); + } + + public void Validate(ServiceEndpoint endpoint) + { + } + + private class SilverlightFaultMessageInspector : IDispatchMessageInspector + { + public object AfterReceiveRequest(ref Message request, IClientChannel channel, InstanceContext instanceContext) + { + return null; + } + + public void BeforeSendReply(ref Message reply, object correlationState) + { + if ((reply != null) && reply.IsFault) + { + HttpResponseMessageProperty property = new HttpResponseMessageProperty(); + property.StatusCode = HttpStatusCode.OK; + reply.Properties[HttpResponseMessageProperty.Name] = property; + } + } + } + } + + public void AddBindingParameters(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase, Collection endpoints, BindingParameterCollection bindingParameters) + { + } + + public void ApplyDispatchBehavior(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase) + { + foreach (ServiceEndpoint endpoint in serviceDescription.Endpoints) + { + endpoint.Behaviors.Add(new SilverlightFaultEndpointBehavior()); + } + } + + public void Validate(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase) + { + } + } +} diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Silverlight.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Silverlight.js Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,2 @@ +//v2.0.30511.0 +if(!window.Silverlight)window.Silverlight={};Silverlight._silverlightCount=0;Silverlight.__onSilverlightInstalledCalled=false;Silverlight.fwlinkRoot="http://go2.microsoft.com/fwlink/?LinkID=";Silverlight.__installationEventFired=false;Silverlight.onGetSilverlight=null;Silverlight.onSilverlightInstalled=function(){window.location.reload(false)};Silverlight.isInstalled=function(b){if(b==undefined)b=null;var a=false,m=null;try{var i=null,j=false;if(window.ActiveXObject)try{i=new ActiveXObject("AgControl.AgControl");if(b===null)a=true;else if(i.IsVersionSupported(b))a=true;i=null}catch(l){j=true}else j=true;if(j){var k=navigator.plugins["Silverlight Plug-In"];if(k)if(b===null)a=true;else{var h=k.description;if(h==="1.0.30226.2")h="2.0.30226.2";var c=h.split(".");while(c.length>3)c.pop();while(c.length<4)c.push(0);var e=b.split(".");while(e.length>4)e.pop();var d,g,f=0;do{d=parseInt(e[f]);g=parseInt(c[f]);f++}while(f");delete a.id;delete a.width;delete a.height;for(var c in a)if(a[c])b.push('');b.push("");return b.join("")};Silverlight.createObjectEx=function(b){var a=b,c=Silverlight.createObject(a.source,a.parentElement,a.id,a.properties,a.events,a.initParams,a.context);if(a.parentElement==null)return c};Silverlight.buildPromptHTML=function(b){var a="",d=Silverlight.fwlinkRoot,c=b.version;if(b.alt)a=b.alt;else{if(!c)c="";a="Get Microsoft Silverlight";a=a.replace("{1}",c);a=a.replace("{2}",d+"108181")}return a};Silverlight.getSilverlight=function(e){if(Silverlight.onGetSilverlight)Silverlight.onGetSilverlight();var b="",a=String(e).split(".");if(a.length>1){var c=parseInt(a[0]);if(isNaN(c)||c<2)b="1.0";else b=a[0]+"."+a[1]}var d="";if(b.match(/^\d+\056\d+$/))d="&v="+b;Silverlight.followFWLink("149156"+d)};Silverlight.followFWLink=function(a){top.location=Silverlight.fwlinkRoot+String(a)};Silverlight.HtmlAttributeEncode=function(c){var a,b="";if(c==null)return null;for(var d=0;d96&&a<123||a>64&&a<91||a>43&&a<58&&a!=47||a==95)b=b+String.fromCharCode(a);else b=b+"&#"+a+";"}return b};Silverlight.default_error_handler=function(e,b){var d,c=b.ErrorType;d=b.ErrorCode;var a="\nSilverlight error message \n";a+="ErrorCode: "+d+"\n";a+="ErrorType: "+c+" \n";a+="Message: "+b.ErrorMessage+" \n";if(c=="ParserError"){a+="XamlFile: "+b.xamlFile+" \n";a+="Line: "+b.lineNumber+" \n";a+="Position: "+b.charPosition+" \n"}else if(c=="RuntimeError"){if(b.lineNumber!=0){a+="Line: "+b.lineNumber+" \n";a+="Position: "+b.charPosition+" \n"}a+="MethodName: "+b.methodName+" \n"}alert(a)};Silverlight.__cleanup=function(){for(var a=Silverlight._silverlightCount-1;a>=0;a--)window["__slEvent"+a]=null;Silverlight._silverlightCount=0;if(window.removeEventListener)window.removeEventListener("unload",Silverlight.__cleanup,false);else window.detachEvent("onunload",Silverlight.__cleanup)};Silverlight.__getHandlerName=function(b){var a="";if(typeof b=="string")a=b;else if(typeof b=="function"){if(Silverlight._silverlightCount==0)if(window.addEventListener)window.addEventListener("onunload",Silverlight.__cleanup,false);else window.attachEvent("onunload",Silverlight.__cleanup);var c=Silverlight._silverlightCount++;a="__slEvent"+c;window[a]=b}else a=null;return a};Silverlight.onRequiredVersionAvailable=function(){};Silverlight.onRestartRequired=function(){};Silverlight.onUpgradeRequired=function(){};Silverlight.onInstallRequired=function(){};Silverlight.IsVersionAvailableOnError=function(d,a){var b=false;try{if(a.ErrorCode==8001&&!Silverlight.__installationEventFired){Silverlight.onUpgradeRequired();Silverlight.__installationEventFired=true}else if(a.ErrorCode==8002&&!Silverlight.__installationEventFired){Silverlight.onRestartRequired();Silverlight.__installationEventFired=true}else if(a.ErrorCode==5014||a.ErrorCode==2106){if(Silverlight.__verifySilverlight2UpgradeSuccess(a.getHost()))b=true}else b=true}catch(c){}return b};Silverlight.IsVersionAvailableOnLoad=function(b){var a=false;try{if(Silverlight.__verifySilverlight2UpgradeSuccess(b.getHost()))a=true}catch(c){}return a};Silverlight.__verifySilverlight2UpgradeSuccess=function(d){var c=false,b="2.0.31005",a=null;try{if(d.IsVersionSupported(b+".99")){a=Silverlight.onRequiredVersionAvailable;c=true}else if(d.IsVersionSupported(b+".0"))a=Silverlight.onRestartRequired;else a=Silverlight.onUpgradeRequired;if(a&&!Silverlight.__installationEventFired){a();Silverlight.__installationEventFired=true}}catch(e){}return c} \ No newline at end of file diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/SilverlightExampleApp.Web.csproj --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/SilverlightExampleApp.Web.csproj Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,160 @@ + + + + Debug + AnyCPU + + + 2.0 + {9B9FB230-CA34-4A66-BE74-46EAF73CB863} + {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Library + Properties + SilverlightExampleApp.Web + SilverlightExampleApp.Web + v4.0 + true + {37DC0FAF-3EFE-436A-B8B9-6905F9EF59E0}|..\SilverlightExampleApp\SilverlightExampleApp.csproj|ClientBin|False + + + true + full + false + bin\ + DEBUG;TRACE + prompt + 4 + false + + + pdbonly + true + bin\ + TRACE + prompt + 4 + + + + True + + + + False + ..\Libs\Microsoft.Practices.Unity.dll + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Designer + + + Web.config + + + Web.config + + + + + + + + + Global.asax + + + + + + + + + ClientDataService.svc + + + SecureService.svc + + + + AuthenticationService.svc + + + + Helpers.asmx + Component + + + + + MSBuild:Compile + Designer + + + + + {6C96E971-4A29-462B-88CD-4C05065BFE3A} + SilverlightExampleApp.Interfaces + + + + + + + + + True + True + 0 + / + http://localhost:1233/ + False + False + + + False + + + + + + \ No newline at end of file diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/SplashScreen.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/SplashScreen.js Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,23 @@ +function onSourceDownloadProgressChanged(sender, eventArgs) { + var val = Math.round((eventArgs.progress * 1000)) / 10; + //sender.findName("progressText").Text = String(Math.round(val)); + + if (val <= 25) { + sender.findName("LoadingMask1").ScaleX = val / 25; + } + if (val > 25 && val <= 50) { + sender.findName("LoadingMask1").ScaleX = 1; + sender.findName("LoadingMask2").ScaleX = val / 50; + } + if (val > 50 && val <= 75) { + sender.findName("LoadingMask1").ScaleX = 1; + sender.findName("LoadingMask2").ScaleX = 1; + sender.findName("LoadingMask3").ScaleX = val / 75; + } + if (val > 75 && val <= 100) { + sender.findName("LoadingMask1").ScaleX = 1; + sender.findName("LoadingMask2").ScaleX = 1; + sender.findName("LoadingMask3").ScaleX = 1; + sender.findName("LoadingMask4").ScaleX = val / 100; + } +} \ No newline at end of file diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/SplashScreen.xaml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/SplashScreen.xaml Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Web.Debug.config --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Web.Debug.config Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,30 @@ + + + + + + + + + + \ No newline at end of file diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Web.Release.config --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Web.Release.config Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,31 @@ + + + + + + + + + + + \ No newline at end of file diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/Web.config --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/Web.config Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/default.aspx --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/default.aspx Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,77 @@ +<%@ Page Language="C#" AutoEventWireup="true" %> + + + + + Silverlight App Framework + + + + + + +
+
+ + + + + + + + + + Get Microsoft Silverlight + +
+
+ + diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.Web/index.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.Web/index.html Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,84 @@ + + + + + SilverlightExampleApp + + + + + +
+
+ + + + + + + + Get Microsoft Silverlight + +
+
+ + + + + + + + Get Microsoft Silverlight + +
+
+ + diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp.sln --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp.sln Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,36 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SilverlightExampleApp", "SilverlightExampleApp\SilverlightExampleApp.csproj", "{37DC0FAF-3EFE-436A-B8B9-6905F9EF59E0}" + ProjectSection(ProjectDependencies) = postProject + {9B9FB230-CA34-4A66-BE74-46EAF73CB863} = {9B9FB230-CA34-4A66-BE74-46EAF73CB863} + {9B9FB230-CA34-4A66-BE74-46EAF73CB863} = {9B9FB230-CA34-4A66-BE74-46EAF73CB863} + EndProjectSection +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SilverlightExampleApp.Web", "SilverlightExampleApp.Web\SilverlightExampleApp.Web.csproj", "{9B9FB230-CA34-4A66-BE74-46EAF73CB863}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SilverlightExampleApp.Interfaces", "SilverlightExampleApp.Interfaces\SilverlightExampleApp.Interfaces.csproj", "{6C96E971-4A29-462B-88CD-4C05065BFE3A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {37DC0FAF-3EFE-436A-B8B9-6905F9EF59E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {37DC0FAF-3EFE-436A-B8B9-6905F9EF59E0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {37DC0FAF-3EFE-436A-B8B9-6905F9EF59E0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {37DC0FAF-3EFE-436A-B8B9-6905F9EF59E0}.Release|Any CPU.Build.0 = Release|Any CPU + {9B9FB230-CA34-4A66-BE74-46EAF73CB863}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9B9FB230-CA34-4A66-BE74-46EAF73CB863}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9B9FB230-CA34-4A66-BE74-46EAF73CB863}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9B9FB230-CA34-4A66-BE74-46EAF73CB863}.Release|Any CPU.Build.0 = Release|Any CPU + {6C96E971-4A29-462B-88CD-4C05065BFE3A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6C96E971-4A29-462B-88CD-4C05065BFE3A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6C96E971-4A29-462B-88CD-4C05065BFE3A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6C96E971-4A29-462B-88CD-4C05065BFE3A}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp/App.xaml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp/App.xaml Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,15 @@ + + + + + + + + diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp/App.xaml.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp/App.xaml.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,61 @@ +using System; +using System.Windows; +using SilverlightExampleApp.Helpers; + +namespace SilverlightExampleApp +{ + public partial class App : Application + { + public App() + { + this.Startup += this.Application_Startup; + this.Exit += this.Application_Exit; + this.UnhandledException += this.Application_UnhandledException; + + InitializeComponent(); + } + + private void Application_Startup(object sender, StartupEventArgs e) + { + SessionManager.Session["user"] = null; + this.RootVisual = new HostPage(); + } + + private void Application_Exit(object sender, EventArgs e) + { + SessionManager.Session["user"] = null; + SessionManager.Session = null; + } + + private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) + { + // If the app is running outside of the debugger then report the exception using + // the browser's exception mechanism. On IE this will display it a yellow alert + // icon in the status bar and Firefox will display a script error. + if (!System.Diagnostics.Debugger.IsAttached) + { + + // NOTE: This will allow the application to continue running after an exception has been thrown + // but not handled. + // For production applications this error handling should be replaced with something that will + // report the error to the website and stop the application. + e.Handled = true; + Deployment.Current.Dispatcher.BeginInvoke(delegate { ReportErrorToDOM(e); }); + } + } + + private void ReportErrorToDOM(ApplicationUnhandledExceptionEventArgs e) + { + try + { + string errorMsg = e.ExceptionObject.Message + e.ExceptionObject.StackTrace; + errorMsg = errorMsg.Replace('"', '\'').Replace("\r\n", @"\n"); + + System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight Application " + errorMsg + "\");"); + } + catch (Exception) + { + } + } + } +} diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp/Converters/DateTimeConverter.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp/Converters/DateTimeConverter.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,42 @@ +using System; +using System.Threading; +using System.Windows.Data; + +namespace SilverlightExampleApp.Converters +{ + /* + * Use this converter for formatting dates in XAML databinding + * Example: + * Text="{Binding Path=PublishDate, Converter={StaticResource DateTimeFormatter}, ConverterParameter=MMM yy}" /> + * + * */ + public class DateTimeConverter : IValueConverter + { + #region IValueConverter Members + + public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) + { + DateTime? bindingDate = value as DateTime?; + + if (culture == null) + { + culture = Thread.CurrentThread.CurrentUICulture; + } + + if (bindingDate != null) + { + string dateTimeFormat = parameter as string; + return bindingDate.Value.ToString(dateTimeFormat, culture); + } + + return string.Empty; + } + + public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) + { + throw new NotImplementedException(); + } + + #endregion + } +} \ No newline at end of file diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp/Dialogs/DialogService.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp/Dialogs/DialogService.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,38 @@ +using System; + +namespace SilverlightExampleApp.Dialogs +{ + /// + /// Dialog service implementation + /// + public class DialogService : IDialogService + { + #region IDialogService Members + + /// + /// Show it + /// + /// + /// + /// + /// + public void ShowDialog(string title, string message, bool allowCancel, Action response) + { + var dialog = new SimpleDialog(allowCancel) {Title = title, Message = message, CloseAction = response}; + dialog.Closed += DialogClosed; + dialog.Show(); + } + + /// + /// Closed action + /// + /// + /// + static void DialogClosed(object sender, EventArgs e) + { + ((SimpleDialog) sender).CloseAction(((SimpleDialog)sender).DialogResult == true); + } + + #endregion + } +} diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp/Dialogs/IDialogService.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp/Dialogs/IDialogService.cs Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,19 @@ +using System; + +namespace SilverlightExampleApp.Dialogs +{ + /// + /// Service to show a dialog + /// + public interface IDialogService + { + /// + /// Show the dialog + /// + /// Title to show + /// + /// True = show the Cancel button + /// The user's response + void ShowDialog(string title, string message, bool allowCancel, Action response); + } +} diff -r d617b54e1f47 -r 502f5f365649 SilverlightExampleApp/SilverlightExampleApp/Dialogs/SimpleDialog.xaml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightExampleApp/SilverlightExampleApp/Dialogs/SimpleDialog.xaml Tue Apr 17 17:57:52 2012 +0100 @@ -0,0 +1,16 @@ + + + + + + + +