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
.