diff --git a/main/Libs/PushRecipe_WP7_SL/Images/Class Digram.png b/main/Libs/PushRecipe_WP7_SL/Images/Class Digram.png new file mode 100644 index 0000000..4d81d9e Binary files /dev/null and b/main/Libs/PushRecipe_WP7_SL/Images/Class Digram.png differ diff --git a/main/Libs/PushRecipe_WP7_SL/Source/Libraries/Libraries.csproj b/main/Libs/PushRecipe_WP7_SL/Source/Libraries/Libraries.csproj new file mode 100644 index 0000000..98a9240 --- /dev/null +++ b/main/Libs/PushRecipe_WP7_SL/Source/Libraries/Libraries.csproj @@ -0,0 +1,56 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {33915750-A749-4D9D-A5E9-E1B01773D724} + Exe + Properties + Libraries + Libraries + v4.0 + Client + 512 + SAK + SAK + SAK + SAK + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + \ No newline at end of file diff --git a/main/Libs/PushRecipe_WP7_SL/Source/Libraries/WP7_Toolkit/Microsoft.Phone.Controls.Toolkit.Design.dll b/main/Libs/PushRecipe_WP7_SL/Source/Libraries/WP7_Toolkit/Microsoft.Phone.Controls.Toolkit.Design.dll new file mode 100644 index 0000000..7ef11eb Binary files /dev/null and b/main/Libs/PushRecipe_WP7_SL/Source/Libraries/WP7_Toolkit/Microsoft.Phone.Controls.Toolkit.Design.dll differ diff --git a/main/Libs/PushRecipe_WP7_SL/Source/Libraries/WP7_Toolkit/Microsoft.Phone.Controls.Toolkit.dll b/main/Libs/PushRecipe_WP7_SL/Source/Libraries/WP7_Toolkit/Microsoft.Phone.Controls.Toolkit.dll new file mode 100644 index 0000000..8779ae8 Binary files /dev/null and b/main/Libs/PushRecipe_WP7_SL/Source/Libraries/WP7_Toolkit/Microsoft.Phone.Controls.Toolkit.dll differ diff --git a/main/Libs/PushRecipe_WP7_SL/Source/Libraries/WP7_Toolkit/Microsoft.Phone.Controls.Toolkit.pdb b/main/Libs/PushRecipe_WP7_SL/Source/Libraries/WP7_Toolkit/Microsoft.Phone.Controls.Toolkit.pdb new file mode 100644 index 0000000..140a186 Binary files /dev/null and b/main/Libs/PushRecipe_WP7_SL/Source/Libraries/WP7_Toolkit/Microsoft.Phone.Controls.Toolkit.pdb differ diff --git a/main/Libs/PushRecipe_WP7_SL/Source/Libraries/WP7_Toolkit/Microsoft.Phone.Controls.Toolkit.xml b/main/Libs/PushRecipe_WP7_SL/Source/Libraries/WP7_Toolkit/Microsoft.Phone.Controls.Toolkit.xml new file mode 100644 index 0000000..daf19a3 --- /dev/null +++ b/main/Libs/PushRecipe_WP7_SL/Source/Libraries/WP7_Toolkit/Microsoft.Phone.Controls.Toolkit.xml @@ -0,0 +1,2713 @@ + + + + Microsoft.Phone.Controls.Toolkit + + + + + 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. + + + + + Converts instances of other types to and from instances of a double that + represent an object measurement such as a height or width. + + Stable + + + + Conversions from units to pixels. + + + + + Initializes a new instance of the + class. + + + + + Determines whether conversion is possible from a specified type to a + that represents an object + measurement. + + + An + that provides a format context. + + + A that represents the type you want to + convert from. + + + True if this converter can perform the conversion; otherwise, false. + + + + + Converts from the specified value to values of the + type. + + + An + that provides a format context. + + + The to use as the + current culture. + + The value to convert. + The converted value. + + + + Returns whether the type converter can convert a measurement to the + specified type. + + + An + that provides a format context. + + + A that represents the type you want to + convert to. + + + True if this converter can perform the conversion; otherwise, false. + + + + + Converts the specified measurement to the specified type. + + + An object that provides a format context. + + + The to use as the + current culture. + + The value to convert. + + A that represents the type you want to + convert to. + + The converted value. + + + + Return the angle of the hypotenuse of a triangle with + sides defined by deltaX and deltaY. + + Change in X. + Change in Y. + The angle (in degrees). + + + + Return the distance between two points + + The first point. + The second point. + The distance between the two points. + + + + Helper extension method for turning XNA's Vector2 type into a Point + + The Vector2. + The point. + + + + Numeric utility methods used by controls. These methods are similar in + scope to the WPF DoubleUtil class. + + + + + 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 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. + + + + + A helper class for raising events safely. + + + + + Raises an event in a thread-safe manner, also does the null check. + + The event to raise. + The event sender. + + + + Raises an event in a thread-safe manner, also does the null check. + + The event args type. + The event to raise. + The event sender. + The event args. + + + + Raise an event in a thread-safe manner, with the required null check. Lazily creates event args. + + The event args type. + The event to raise. + The event sender. + The delegate to return the event args if needed. + + + + This is a method that returns event args, used for lazy creation. + + The event type. + + + + + Allows time to be set from xaml. + + Preview + This converter is used by xaml and thus uses the + English formats. + + + + BackingField for the TimeFormats being used. + + + + + BackingField for the DateFormats being used. + + + + + Determines whether this instance can convert from + the specified type descriptor context. + + The type descriptor context. + Type of the source. + + True if this instance can convert from the specified type + descriptor context; otherwise, false. + + + + + Determines whether this instance can convert to the specified + type descriptor context. + + The type descriptor context. + Type of the destination. + + True if this instance can convert to the specified type + descriptor context; otherwise, false. + + + + + Converts instances of other data types into instances of DateTime that + represent a time. + + + The type descriptor context. + + The culture used to convert. This culture + is not used during conversion, but a specific set of formats is used. + + The string being converted to the DateTime. + + + A DateTime that is the value of the conversion. + + + + + Converts a DateTime into a string. + + + The type descriptor context. + + The culture used to convert. + + The value that is being converted to a specified type. + + + The type to convert the value to. + + + The value of the conversion to the specified type. + + + + + Represents a 2-tuple, or pair. + + The type of the tuple's first component. + The type of the tuple's second component. + + + + Initializes a new instance of the Tuple(T1, T2) class. + + The value of the tuple's first component. + The value of the tuple's second component. + + + + Gets the value of the current Tuple(T1, T2) object's first component. + + + + + Gets the value of the current Tuple(T1, T2) object's second component. + + + + + Common TypeConverter functionality. + + + + + 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. + + + + + Represents a pop-up menu that enables a control to expose functionality that is specific to the context of the control. + + Preview + + + + Represents a control that defines choices for users to select. + + Preview + + + + Identifies the ItemContainerStyle dependency property. + + + + + Initializes a new instance of the MenuBase class. + + + + + Determines whether the specified item is, or is eligible to be, its own item container. + + The item to check whether it is an item container. + True if the item is a MenuItem or a Separator; otherwise, false. + + + + Creates or identifies the element used to display the specified item. + + A MenuItem. + + + + Prepares the specified element to display the specified item. + + Element used to display the specified item. + Specified item. + + + + Checks 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 the Style that is applied to the container element generated for each item. + + + + + Visibility state group. + + + + + Open visibility state. + + + + + Closed visibility state. + + + + + Stores a reference to the PhoneApplicationPage that contains the owning object. + + + + + Stores a reference to a list of ApplicationBarIconButtons for which the Click event is being handled. + + + + + Stores a reference to the Storyboard used to animate the background resize. + + + + + Stores a reference to the Storyboard used to animate the ContextMenu open. + + + + + Tracks whether the Storyboard used to animate the ContextMenu open is active. + + + + + Tracks the threshold for releasing contact during the ContextMenu open animation. + + + + + Stores a reference to the timer used to detect the tap+hold gesture that opens the ContextMenu. + + + + + Tracks the start point for manipulation events (in root-relative coordinates). + + + + + Stores a reference to the current root visual. + + + + + Stores the last known mouse position (via MouseMove). + + + + + Stores a reference to the object that owns the ContextMenu. + + + + + Stores a reference to the current Popup. + + + + + Stores a reference to the current overlay. + + + + + Stores a reference to the current Popup alignment point. + + + + + Stores a value indicating whether the IsOpen property is being updated by ContextMenu. + + + + + Identifies the IsZoomEnabled dependency property. + + + + + Identifies the VerticalOffset dependency property. + + + + + Handles changes to the HorizontalOffset or VerticalOffset DependencyProperty. + + DependencyObject that changed. + Event data for the DependencyPropertyChangedEvent. + + + + Identifies the IsOpen dependency property. + + + + + Handles changes to the IsOpen DependencyProperty. + + DependencyObject that changed. + Event data for the DependencyPropertyChangedEvent. + + + + Handles changes to the IsOpen property. + + New value. + + + + Called when the Opened event occurs. + + Event arguments. + + + + Called when the Closed event occurs. + + Event arguments. + + + + Initializes a new instance of the ContextMenu class. + + + + + Called when a new Template is applied. + + + + + Handles the Completed event of the opening Storyboard. + + Source of the event. + Event arguments. + + + + Uses VisualStateManager to go to a new visual state. + + The state to transition to. + true to use a System.Windows.VisualTransition to transition between states; otherwise, false. + + + + Called when the left mouse button is pressed. + + The event data for the MouseLeftButtonDown event. + + + + Responds to the KeyDown event. + + The event data for the KeyDown event. + + + + Handles the LayoutUpdated event to capture Application.Current.RootVisual. + + Source of the event. + Event arguments. + + + + Handles the RootVisual's MouseMove event to track the last mouse position. + + Source of the event. + Event arguments. + + + + Handles the ManipulationCompleted event for the RootVisual. + + Source of the event. + Event arguments. + + + + Handles the ManipulationStarted event of the Owner element. + + Source of the event. + Event arguments. + + + + Handles the ManipulationDelta or ManipulationCompleted events of the Owner element. + + Source of the event. + Event arguments. + + + + Handles the Tick event of the DispatcherTimer for tap+hold detection. + + Source of the event. + Event arguments. + + + + Identifies the ApplicationBarMirror dependency property. + + + + + Handles changes to the ApplicationBarMirror DependencyProperty. + + DependencyObject that changed. + Event data for the DependencyPropertyChangedEvent. + + + + Handles changes to the ApplicationBarMirror property. + + Old value. + New value. + + + + Handles an event which should close an open ContextMenu. + + Source of the event. + Event arguments. + + + + Handles the Loaded event of the Owner. + + Source of the event. + Event arguments. + + + + Handles the Unloaded event of the Owner. + + Source of the event. + Event arguments. + + + + Handles the BackKeyPress of the containing PhoneApplicationPage. + + Source of the event. + Event arguments. + + + + Initialize the _rootVisual property (if possible and not already done). + + + + + Sets focus to the next item in the ContextMenu. + + True to move the focus down; false to move it up. + + + + Called when a child MenuItem is clicked. + + + + + Handles the SizeChanged event for the ContextMenu or RootVisual. + + Source of the event. + Event arguments. + + + + Handles the MouseButtonDown events for the overlay. + + Source of the event. + Event arguments. + + + + Updates the location and size of the Popup and overlay. + + + + + Opens the Popup. + + Position to place the Popup. + + + + Closes the Popup. + + + + + Gets or sets the owning object for the ContextMenu. + + + + + Gets or sets a value indicating whether the background will zoom out when the ContextMenu is open. + + + + + Gets or sets the vertical distance between the target origin and the popup alignment point. + + + + + Gets or sets a value indicating whether the ContextMenu is visible. + + + + + Occurs when a particular instance of a ContextMenu opens. + + + + + Occurs when a particular instance of a ContextMenu closes. + + + + + Provides the system implementation for displaying a ContextMenu. + + Preview + + + + Gets the value of the ContextMenu property of the specified object. + + Object to query concerning the ContextMenu property. + Value of the ContextMenu property. + + + + Sets the value of the ContextMenu property of the specified object. + + Object to set the property on. + Value to set. + + + + Identifies the ContextMenu attached property. + + + + + Handles changes to the ContextMenu DependencyProperty. + + DependencyObject that changed. + Event data for the DependencyPropertyChangedEvent. + + + + Represents a selectable item inside a Menu or ContextMenu. + + Preview + + + + 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. + + + + + Stores a value indicating whether this element has logical focus. + + + + + Identifies the Command dependency property. + + + + + Handles changes to the Command DependencyProperty. + + DependencyObject that changed. + Event data for the DependencyPropertyChangedEvent. + + + + Handles changes to the Command property. + + Old value. + New value. + + + + Identifies the CommandParameter dependency property. + + + + + Handles changes to the CommandParameter DependencyProperty. + + DependencyObject that changed. + Event data for the DependencyPropertyChangedEvent. + + + + Handles changes to the CommandParameter property. + + + + + Initializes a new instance of the MenuItem class. + + + + + Called when the template's tree is generated. + + + + + Invoked whenever an unhandled GotFocus event reaches this element in its route. + + A RoutedEventArgs that contains event data. + + + + Raises the LostFocus routed event by using the event data that is provided. + + A RoutedEventArgs that contains event data. + + + + Called whenever the mouse enters a MenuItem. + + The event data for the MouseEnter event. + + + + Called whenever the mouse leaves a MenuItem. + + The event data for the MouseLeave event. + + + + Called when the left mouse button is released. + + The event data for the MouseLeftButtonUp event. + + + + Responds to the KeyDown event. + + The event data for the KeyDown event. + + + + Called when the Items property changes. + + The event data for the ItemsChanged event. + + + + Called when a MenuItem is clicked and raises a Click event. + + + + + Handles the CanExecuteChanged event of the Command property. + + Source of the event. + Event arguments. + + + + Updates the IsEnabled property. + + + WPF overrides the local value of IsEnabled according to ICommand, so Silverlight does, too. + + True if ChangeVisualState should be called. + + + + Called when the IsEnabled property changes. + + Source of the event. + Event arguments. + + + + Called when the Loaded event is raised. + + Source of the event. + Event arguments. + + + + Changes to the correct visual state(s) for the control. + + True to use transitions; otherwise false. + + + + Occurs when a MenuItem is clicked. + + + + + Gets or sets a reference to the MenuBase parent. + + + + + Gets or sets the command associated with the menu item. + + + + + Gets or sets the parameter to pass to the Command property of a MenuItem. + + + + + Control that is used to separate items in items controls. + + Preview + + + + Initializes a new instance of the Separator class. + + + + + 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. + + + + + Represents a page used by the TimePicker control that allows the user to choose a time (hour/minute/am/pm). + + + + + Represents a base class for pages that work with DateTimePickerBase to allow users to choose a date/time. + + + + + Represents an interface for DatePicker/TimePicker to use for communicating with a picker page. + + + + + Gets or sets the DateTime to show in the picker page and to set when the user makes a selection. + + + + + Initializes the DateTimePickerPageBase class; must be called from the subclass's constructor. + + Primary selector. + Secondary selector. + Tertiary selector. + + + + Called when the Back key is pressed. + + Event arguments. + + + + Gets a sequence of LoopingSelector parts ordered according to culture string for date/time formatting. + + LoopingSelectors ordered by culture-specific priority. + + + + Gets a sequence of LoopingSelector parts ordered according to culture string for date/time formatting. + + Culture-specific date/time format string. + Date/time format string characters for the primary/secondary/tertiary LoopingSelectors. + Instances for the primary/secondary/tertiary LoopingSelectors. + LoopingSelectors ordered by culture-specific priority. + + + + Called when a page is no longer the active page in a frame. + + An object that contains the event data. + + + + Called when a page becomes the active page in a frame. + + An object that contains the event data. + + + + Gets or sets the DateTime to show in the picker page and to set when the user makes a selection. + + + + + Initializes a new instance of the TimePickerPage control. + + + + + Gets a sequence of LoopingSelector parts ordered according to culture string for date/time formatting. + + LoopingSelectors ordered by culture-specific priority. + + + + Handles changes to the page's Orientation property. + + Event arguments. + + + + InitializeComponent + + + + + Defines how the LoopingSelector communicates with data source. + + + + + Get the next datum, relative to an existing datum. + + The datum the return value will be relative to. + The next datum. + + + + Get the previous datum, relative to an existing datum. + + The datum the return value will be relative to. + The previous datum. + + + + The selected item. Should never be null. + + + + + Raised when the selection changes. + + + + + Represents a control that allows the user to choose a date (day/month/year). + + + + + Represents a base class for controls that allow the user to choose a date/time. + + + + + Identifies the Value DependencyProperty. + + + + + Called when the value changes. + + The event data. + + + + Identifies the ValueString DependencyProperty. + + + + + Identifies the ValueStringFormat DependencyProperty. + + + + + Identifies the Header DependencyProperty. + + + + + Identifies the HeaderTemplate DependencyProperty. + + + + + Identifies the PickerPageUri DependencyProperty. + + + + + Initializes a new instance of the DateTimePickerBase control. + + + + + Called when the control's Template is expanded. + + + + + Event that is invoked when the Value property changes. + + + + + Gets or sets the DateTime value. + + + + + Gets the string representation of the selected value. + + + + + Gets or sets the format string to use when converting the Value property to a string. + + + + + Gets or sets the header of the control. + + + + + Gets or sets the template used to display the control's header. + + + + + Gets or sets the Uri to use for loading the IDateTimePickerPage instance when the control is clicked. + + + + + Initializes a new instance of the DatePicker control. + + + + + Represents a page used by the DatePicker control that allows the user to choose a date (day/month/year). + + + + + Initializes a new instance of the DatePickerPage control. + + + + + Gets a sequence of LoopingSelector parts ordered according to culture string for date/time formatting. + + LoopingSelectors ordered by culture-specific priority. + + + + Handles changes to the page's Orientation property. + + Event arguments. + + + + InitializeComponent + + + + + Provides access to the localized resources used by the DatePicker and TimePicker. + + + + + Gets the localized DatePicker title string. + + + + + Gets the localized TimePicker title string. + + + + + Implements a wrapper for DateTime that provides formatted strings for DatePicker. + + + + + Initializes a new instance of the DateTimeWrapper class. + + DateTime to wrap. + + + + Returns a value indicating whether the current culture uses a 24-hour clock. + + True if it uses a 24-hour clock; false otherwise. + + + + Gets the DateTime being wrapped. + + + + + Gets the 4-digit year as a string. + + + + + Gets the 2-digit month as a string. + + + + + Gets the month name as a string. + + + + + Gets the 2-digit day as a string. + + + + + Gets the day name as a string. + + + + + Gets the hour as a string. + + + + + Gets the 2-digit minute as a string. + + + + + Gets the AM/PM designator as a string. + + + + + Provides data for the DatePicker and TimePicker's ValueChanged event. + + + + + Initializes a new instance of the DateTimeValueChangedEventArgs class. + + Old DateTime value. + New DateTime value. + + + + Gets or sets the old DateTime value. + + + + + Gets or sets the new DateTime value. + + + + + Represents a control that allows the user to choose a time (hour/minute/am/pm). + + + + + Initializes a new instance of the TimePicker control. + + + + + The GestureListener class raises events similar to those provided by the XNA TouchPanel, but it is designed for + Silverlight's event-driven model, rather than XNA's loop/polling model, and it also takes care of the hit testing + and event routing. + + + + + Handle touch events. + + + + + + + A touch has started. + + + + + A touch is continuing... + + + + + A touch has ended. + + + + + This method does all the necessary work to raise a gesture event. It sets the orginal source, does the routing, + handles Handled, and only creates the event args if they are needed. + + This is the type of event args that will be raised. + Gets the specific event to raise. + Lazy creator function for the event args. + Indicates whether the mouse capture should be released + + + + The Tap event (touch, release, no movement). + + + + + The DoubleTap event is raised instead of Tap if the time between two taps is short eonugh. + + + + + The Hold event (touch and hold for one second) + + + + + The DragStarted event. + + + + + The DragDelta event. + + + + + The DragCompleted event. Will be raised on touch release after a drag, or + when a second touch point is added. + + + + + The Flick event. Raised when a drag that was fast enough ends with a release. + + + + + The PinchStarted event. + + + + + Any two-touch point (two finger) operation. + + + + + The end of a pinch operation. + + + + + The base class for all gesture events. Also used by Tap, DoubleTap and Hold. + + + + + Returns the position of the gesture's starting point relative to a given UIElement. + + The return value will be relative to this element. + The gesture's starting point relative to the given UIElement. + + + + Returns the position of a given point relative to a given UIElement. + + The return value will be relative to this element. + The point to translate. + The given point relative to the given UIElement. + + + + The point, in unrotated screen coordinates, where the gesture occurred. + + + + + The first hit-testable item under the touch point. Determined by a combination of order in the tree and + Z-order. + + + + + If an event handler sets this to true, it stops event bubbling. + + + + + The event args used in the DragStarted event. + + + + + The direction of the drag gesture, as determined by the initial drag change. + + + + + The event args used by the DragDelta event. + + + + + The horizontal (X) change for this drag event. + + + + + The vertical (Y) change for this drag event. + + + + + The direction of the drag gesture, as determined by the initial drag change. + + + + + The event args used by the DragCompleted event. + + + + + The total horizontal (X) change of the drag event. + + + + + The total vertical (Y) change of the drag event. + + + + + The direction of the drag gesture, as determined by the initial drag change. + + + + + The final horizontal (X) velocity of the drag, if the drag was inertial. + + + + + The final vertical (Y) velocity of the drag, if the drag was inertial. + + + + + The event args used by the Flick event. + + + + + The horizontal (X) velocity of the flick. + + + + + The vertical (Y) velocity of the flick. + + + + + The angle of the flick. + + + + + The direction of the flick gesture, as determined by the flick velocities. + + + + + The base class for multi-touch gesture event args. Currently used only for + two-finger (pinch) operations. + + + + + Returns the position of either of the two touch points (0 or 1) relative to + the UIElement provided. + + The return value will be relative to this element. + The touchpoint to use (0 or 1). + The gesture's starting point relative to the given UIElement. + + + + The second touch point. The first is stored in GestureEventArgs. + + + + + The event args used by the PinchStarted event. + + + + + The distance between the two touch points. + + + + + The angle defined by the two touch points. + + + + + The event args used by the PinchDelta and PinchCompleted events. + + + + + Returns the ratio of the current distance between touchpoints / the original distance + between the touchpoints. + + + + + Returns the difference in angle between the current touch positions and the original + touch positions. + + + + + The GestureService class is the helper for getting and setting GestureListeners + on elements. + + + + + Gets a GestureListener for the new element. Will create a new one if necessary. + + The object to get the GestureListener from. + Either the previously existing GestureListener, or a new one. + + + + Gets the GestureListener on an element. If one is not set, can create a new one + so that this will never return null, depending on the state of the createIfMissing + flag. + + The object to get the GestureListener from. + When this is true, if the attached property was not set on the element, it will create one and set it on the element. + + + + + Sets the GestureListener on an element. Needed for XAML, but should not be used in code. Use + GetGestureListener instead, which will create a new instance if one is not already set, to + add your handlers to an element. + + The object to set the GestureListener on. + The GestureListener. + + + + This is used to set the value of the attached DependencyProperty internally. + + The object to set the GestureListener on. + The GestureListener. + + + + The definition of the GestureListener attached DependencyProperty. + + + + + An infinitely scrolling, UI- and data-virtualizing selection control. + + + + + The DataSource DependencyProperty + + + + + The ItemTemplate DependencyProperty + + + + + Creates a new LoopingSelector. + + + + + The IsExpanded DependencyProperty. + + + + + When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . + In simplest terms, this means the method is called just before a UI element displays in an application. + For more information, see Remarks. + + + + + Balances the items. + + + + + The data source that the this control is the view for. + + + + + The ItemTemplate property + + + + + The size of the items, excluding the ItemMargin. + + + + + The margin around the items, to be a part of the touchable area. + + + + + The IsExpanded property controls the expanded state of this control. + + + + + The IsExpandedChanged event will be raised whenever the IsExpanded state changes. + + + + + The items that will be contained in the LoopingSelector. + + + + + Create a new LoopingSelectorItem. + + + + + Put this item into a new state. + + The new state. + Flag indicating that transitions should be used when going to the new state. + + + + Returns the current state. + + The current state. + + + + Override of OnApplyTemplate + + + + + The Click event. This is needed because there is no gesture for touch-down, pause + longer than the Hold time, and touch-up. Tap will not be raise, and Hold is not + adequate. + + + + + The states that this can be in. + + + + + Not visible + + + + + Visible + + + + + Selected + + + + + Represents a switch that can be toggled between two states. + + + + + Common visual states. + + + + + Normal visual state. + + + + + Disabled visual state. + + + + + Check visual states. + + + + + Checked visual state. + + + + + Dragging visual state. + + + + + Unchecked visual state. + + + + + Switch root template part name. + + + + + Switch background template part name. + + + + + Switch track template part name. + + + + + Switch thumb template part name. + + + + + The minimum translation. + + + + + Identifies the SwitchForeground dependency property. + + + + + The background TranslateTransform. + + + + + The thumb TranslateTransform. + + + + + The root template part. + + + + + The track template part. + + + + + The thumb template part. + + + + + The maximum translation. + + + + + The drag translation. + + + + + Whether the translation ever changed during the drag. + + + + + Whether the dragging state is current. + + + + + Initializes a new instance of the ToggleSwitch class. + + + + + Change the visual state. + + Indicates whether to use animation transitions. + + + + Called by the OnClick method to implement toggle behavior. + + + + + Gets all the template parts and initializes the corresponding state. + + + + + Handles started drags on the root. + + The event sender. + The event information. + + + + Handles drags on the root. + + The event sender. + The event information. + + + + Handles completed drags on the root. + + The event sender. + The event information. + + + + Handles changed sizes for the track and the thumb. + Sets the clip of the track and computes the indeterminate and checked translations. + + The event sender. + The event information. + + + + Gets or sets the switch foreground. + + + + + Gets and sets the thumb and background translation. + + The translation. + + + + Converts bool? values to "Off" and "On" strings. + + + + + Converts a value. + + The value produced by the binding source. + The type of the binding target property. + The converter parameter to use. + The culture to use in the converter. + A converted value. If the method returns null, the valid null value is used. + + + + Converts a value. + + The value produced by the binding source. + The type of the binding target property. + The converter parameter to use. + The culture to use in the converter. + A converted value. If the method returns null, the valid null value is used. + + + + Represents a switch that can be toggled between two states. + + + + + Common visual states. + + + + + Normal visual state. + + + + + Disabled visual state. + + + + + The ToggleButton that drives this. + + + + + Identifies the Header dependency property. + + + + + Identifies the HeaderTemplate dependency property. + + + + + The IsChecked DependencyProperty definition. + + + + + The Switch part. + + + + + Whether the content was set. + + + + + Initializes a new instance of the ToggleSwitch class. + + + + + Makes the content an "Off" or "On" string to match the state. + + + + + Change the visual state. + + Indicates whether to use animation transitions. + + + + Makes the content an "Off" or "On" string to match the state if the content is set to null in the design tool. + + The old content. + The new content. + + + + Gets all the template parts and initializes the corresponding state. + + + + + Handles the loading of this control. + Sets the content if it is null when the control is loaded. + + The event sender. + The event information. + + + + Checks the state when the toggle switch is checked and simulates the event. + + The event sender. + The event information. + + + + Unchecks the state when the toggle switch is unchecked and simulates the event. + + The event sender. + The event information. + + + + Gets or sets the header. + + + + + Gets or sets the header template. + + + + + Gets and sets the IsChecked property. + + + + + The Checked event handler. Will be raised when the switch is checked. + + + + + The Unchecked event handler. Will be raised when the switch is unchecked. + + + + + Gets or sets the toggle switch. + + + + + 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 CHOOSE DATE. + + + + + Looks up a localized string similar to cancel. + + + + + Looks up a localized string similar to done. + + + + + Looks up a localized string similar to Off. + + + + + Looks up a localized string similar to On. + + + + + Looks up a localized string similar to CHOOSE TIME. + + + + + Looks up a localized string similar to '{0}' is unable to convert '{1}' to '{2}'.. + + + + + Looks up a localized string similar to '{0}' cannot convert from '{1}'.. + + + + + Looks up a localized string similar to The type was unexpected.. + + + + + Looks up a localized string similar to Invalid length value '{0}'.. + + + + + Looks up a localized string similar to Invalid Orientation value '{0}'.. + + + + + The OrientedSize structure is used to abstract the growth direction from + the layout algorithms of WrapPanel. When the growth direction is + oriented horizontally (ex: the next element is arranged on the side of + the previous element), then the Width grows directly with the placement + of elements and Height grows indirectly with the size of the largest + element in the row. When the orientation is reversed, so is the + directional growth with respect to Width and Height. + + + + + 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. + + + + + Positions child elements sequentially from left to right or top to + bottom. When elements extend beyond the panel edge, elements are + positioned in the next row or column. + + 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 + + dependency property. + + + The identifier for the + + dependency property + + + + + Identifies the + + dependency property. + + + The identifier for the + + dependency property. + + + + + Identifies the + + dependency property. + + + The identifier for the + + dependency property. + + + + + OrientationProperty property changed handler. + + WrapPanel that changed its Orientation. + Event arguments. + + + + Initializes a new instance of the + class. + + + + + Property changed handler for ItemHeight and ItemWidth. + + + WrapPanel that changed its ItemHeight or ItemWidth. + + Event arguments. + + + + Measures the child elements of a + in anticipation + of arranging them during the + + pass. + + + The size available to child elements of the wrap panel. + + + The size required by the + and its + elements. + + + + + Arranges and sizes the + control and its + child elements. + + + The area within the parent that the + should use + arrange itself and its children. + + + The actual size used by the + . + + + + + 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 height of the layout area for each item that is + contained in a . + + + The height applied to the layout area of each item that is contained + within a . The + default value is . + + + + + Gets or sets the width of the layout area for each item that is + contained in a . + + + The width that applies to the layout area of each item that is + contained in a . + The default value is . + + + + + Gets or sets the direction in which child elements are arranged. + + + One of the + values. The default is + . + + + + diff --git a/main/Libs/PushRecipe_WP7_SL/Source/Libraries/WPF_Interactivity/System.Windows.Interactivity.dll b/main/Libs/PushRecipe_WP7_SL/Source/Libraries/WPF_Interactivity/System.Windows.Interactivity.dll new file mode 100644 index 0000000..0419e95 Binary files /dev/null and b/main/Libs/PushRecipe_WP7_SL/Source/Libraries/WPF_Interactivity/System.Windows.Interactivity.dll differ diff --git a/main/Libs/PushRecipe_WP7_SL/Source/Libraries/WPF_Interactivity/System.Windows.Interactivity.xml b/main/Libs/PushRecipe_WP7_SL/Source/Libraries/WPF_Interactivity/System.Windows.Interactivity.xml new file mode 100644 index 0000000..c50e371 --- /dev/null +++ b/main/Libs/PushRecipe_WP7_SL/Source/Libraries/WPF_Interactivity/System.Windows.Interactivity.xml @@ -0,0 +1,1072 @@ + + + + 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. + + + + Creates a new instance of the BehaviorCollection. + + The new instance. + + + + 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. + + + + + Creates a new instance of the TriggerBase derived class. + + The new instance. + + + + 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 not exposed publicly. This forces clients to use the GetTriggers and SetTriggers methods to access the + collection, ensuring the collection exists and is set before it is used. + + + + + This property is used as the internal backing store for the public Behaviors attached property. + + + This property is not exposed publicly. This forces clients to use the GetBehaviors and SetBehaviors methods to access the + collection, ensuring the collection exists and is set before it is used. + + + + + 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. + + + + Gets or sets a value indicating whether to run as if in design mode. + + + True if [should run in design mode]; otherwise, False. + + Not to be used outside unit tests. + + + + 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. + + + + + When implemented in a derived class, creates a new instance of the derived class. + + The new instance. + + + + 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. + + + + Creates a new instance of the TriggerActionCollection. + + The new instance. + + + + 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. + + + + Creates a new instance of the . + + The new instance. + + + + 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 --git a/main/Libs/PushRecipe_WP7_SL/Source/WindowsPhone.Recipes.Push.Client/App.xaml b/main/Libs/PushRecipe_WP7_SL/Source/WindowsPhone.Recipes.Push.Client/App.xaml new file mode 100644 index 0000000..24ea7c7 --- /dev/null +++ b/main/Libs/PushRecipe_WP7_SL/Source/WindowsPhone.Recipes.Push.Client/App.xaml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/main/Libs/PushRecipe_WP7_SL/Source/WindowsPhone.Recipes.Push.Client/App.xaml.cs b/main/Libs/PushRecipe_WP7_SL/Source/WindowsPhone.Recipes.Push.Client/App.xaml.cs new file mode 100644 index 0000000..62550e1 --- /dev/null +++ b/main/Libs/PushRecipe_WP7_SL/Source/WindowsPhone.Recipes.Push.Client/App.xaml.cs @@ -0,0 +1,137 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Animation; +using System.Windows.Navigation; +using System.Windows.Shapes; +using Microsoft.Phone.Controls; +using Microsoft.Phone.Shell; + +namespace WindowsPhone.Recipes.Push.Client +{ + public partial class App : Application + { + internal const string ServerAddress = "http://localhost:8000"; + + /// + /// Provides easy access to the root frame of the Phone Application. + /// + /// The root frame of the Phone Application. + public PhoneApplicationFrame RootFrame { get; private set; } + + /// + /// Constructor for the Application object. + /// + public App() + { + // Global handler for uncaught exceptions. + UnhandledException += Application_UnhandledException; + + // Show graphics profiling information while debugging. + if (System.Diagnostics.Debugger.IsAttached) + { + // Display the current frame rate counters. + Application.Current.Host.Settings.EnableFrameRateCounter = true; + + // Show the areas of the app that are being redrawn in each frame. + //Application.Current.Host.Settings.EnableRedrawRegions = true; + + // Enable non-production analysis visualization mode, + // which shows areas of a page that are being GPU accelerated with a colored overlay. + //Application.Current.Host.Settings.EnableCacheVisualization = true; + } + + // Standard Silverlight initialization + InitializeComponent(); + + // Phone-specific initialization + InitializePhoneApplication(); + } + + // Code to execute when the application is launching (eg, from Start) + // This code will not execute when the application is reactivated + private void Application_Launching(object sender, LaunchingEventArgs e) + { + } + + // Code to execute when the application is activated (brought to foreground) + // This code will not execute when the application is first launched + private void Application_Activated(object sender, ActivatedEventArgs e) + { + } + + // Code to execute when the application is deactivated (sent to background) + // This code will not execute when the application is closing + private void Application_Deactivated(object sender, DeactivatedEventArgs e) + { + } + + // Code to execute when the application is closing (eg, user hit Back) + // This code will not execute when the application is deactivated + private void Application_Closing(object sender, ClosingEventArgs e) + { + } + + // Code to execute if a navigation fails + private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e) + { + if (System.Diagnostics.Debugger.IsAttached) + { + // A navigation has failed; break into the debugger + System.Diagnostics.Debugger.Break(); + } + } + + // Code to execute on Unhandled Exceptions + private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) + { + if (System.Diagnostics.Debugger.IsAttached) + { + // An unhandled exception has occurred; break into the debugger + System.Diagnostics.Debugger.Break(); + } + } + + #region Phone application initialization + + // Avoid double-initialization + private bool phoneApplicationInitialized = false; + + // Do not add any additional code to this method + private void InitializePhoneApplication() + { + if (phoneApplicationInitialized) + return; + + // Create the frame but don't set it as RootVisual yet; this allows the splash + // screen to remain active until the application is ready to render. + RootFrame = new PhoneApplicationFrame(); + RootFrame.Navigated += CompleteInitializePhoneApplication; + + // Handle navigation failures + RootFrame.NavigationFailed += RootFrame_NavigationFailed; + + // Ensure we don't initialize again + phoneApplicationInitialized = true; + } + + // Do not add any additional code to this method + private void CompleteInitializePhoneApplication(object sender, NavigationEventArgs e) + { + // Set the root visual to allow the application to render + if (RootVisual != RootFrame) + RootVisual = RootFrame; + + // Remove this handler since it is no longer needed + RootFrame.Navigated -= CompleteInitializePhoneApplication; + } + + #endregion + } +} \ No newline at end of file diff --git a/main/Libs/PushRecipe_WP7_SL/Source/WindowsPhone.Recipes.Push.Client/ApplicationIcon.png b/main/Libs/PushRecipe_WP7_SL/Source/WindowsPhone.Recipes.Push.Client/ApplicationIcon.png new file mode 100644 index 0000000..5859393 Binary files /dev/null and b/main/Libs/PushRecipe_WP7_SL/Source/WindowsPhone.Recipes.Push.Client/ApplicationIcon.png differ diff --git a/main/Libs/PushRecipe_WP7_SL/Source/WindowsPhone.Recipes.Push.Client/Background.png b/main/Libs/PushRecipe_WP7_SL/Source/WindowsPhone.Recipes.Push.Client/Background.png new file mode 100644 index 0000000..e46f21d Binary files /dev/null and b/main/Libs/PushRecipe_WP7_SL/Source/WindowsPhone.Recipes.Push.Client/Background.png differ diff --git a/main/Libs/PushRecipe_WP7_SL/Source/WindowsPhone.Recipes.Push.Client/Controls/NotificationBox.xaml b/main/Libs/PushRecipe_WP7_SL/Source/WindowsPhone.Recipes.Push.Client/Controls/NotificationBox.xaml new file mode 100644 index 0000000..7045771 --- /dev/null +++ b/main/Libs/PushRecipe_WP7_SL/Source/WindowsPhone.Recipes.Push.Client/Controls/NotificationBox.xaml @@ -0,0 +1,19 @@ + + + + + + +