C# Class Microsoft.Phone.Controls.MultiselectItem

Inheritance: System.Windows.Controls.ContentControl
Datei anzeigen Open project: Kinnara/WPToolkit Class Usage Examples

Public Properties

Property Type Description
ContentInfoProperty System.Windows.DependencyProperty
ContentInfoTemplateProperty System.Windows.DependencyProperty
HintPanelHeightProperty System.Windows.DependencyProperty
IsSelectedProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
Cover_Tap void
HintPanel_ManipulationCompleted void
HintPanel_ManipulationDelta void
HintPanel_ManipulationStarted void
OnContentInfoPropertyChanged void
OnContentInfoTemplatePropertyChanged void
OnHintPanelHeightPropertyChanged void
OnIsSelectedPropertyChanged void
RaiseEvent void
UpdateVisualState void

Public Methods

Method Description
MultiselectItem ( ) : System

Initializes a new instance of the MultiselectItem class.

OnApplyTemplate ( ) : void

Gets the template parts and sets event handlers.

Protected Methods

Method Description
OnContentInfoChanged ( object oldContentInfo, object newContentInfo ) : void

Called when the value of the ContentInfo property changes.

OnContentInfoTemplateChanged ( System.Windows.DataTemplate oldContentInfoTemplate, System.Windows.DataTemplate newContentInfoTemplate ) : void

Called when the value of the ContentInfoTemplate property chages.

OnSelected ( RoutedEventArgs e ) : void

Raises a Selected event when the IsSelected property changes from false to true.

OnUnselected ( RoutedEventArgs e ) : void

Raises an Unselected event when the IsSelected property changes from true to false.

Private Methods

Method Description
Cover_Tap ( object sender, System e ) : void

Toogles the selection of a MultiselectItem and fires an OnSelectionChanged event accordingly.

HintPanel_ManipulationCompleted ( object sender, System.Windows.Input.ManipulationCompletedEventArgs e ) : void

Selects this MultiselectItem if the manipulation delta is within limits and fires an OnSelectionChanged event accordingly. Resets the deltas for both axises.

HintPanel_ManipulationDelta ( object sender, System.Windows.Input.ManipulationDeltaEventArgs e ) : void

Triggers a visual transition to the Closed visual state if the manipulation delta goes out of bounds.

HintPanel_ManipulationStarted ( object sender, System.Windows.Input.ManipulationStartedEventArgs e ) : void

Triggers a visual transition to the Exposed visual state.

OnContentInfoPropertyChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void

ContentInfoProperty changed handler.

OnContentInfoTemplatePropertyChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void

ContentInfoTemplate changed handler.

OnHintPanelHeightPropertyChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Sets the vertical alignment of the hint panels to stretch if the height is not manually set. If it is, the alignment is set to top.

OnIsSelectedPropertyChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Adds or removes the item to the selected items collection in the Multiselect List that owns it.

RaiseEvent ( RoutedEventHandler handler, RoutedEventArgs args ) : void

Raises a routed event.

UpdateVisualState ( bool useTransitions ) : void

Updates the visual state.

Method Details

MultiselectItem() public method

Initializes a new instance of the MultiselectItem class.
public MultiselectItem ( ) : System
return System

OnApplyTemplate() public method

Gets the template parts and sets event handlers.
public OnApplyTemplate ( ) : void
return void

OnContentInfoChanged() protected method

Called when the value of the ContentInfo property changes.
protected OnContentInfoChanged ( object oldContentInfo, object newContentInfo ) : void
oldContentInfo object /// The old value of the ContentInfo property. ///
newContentInfo object /// The new value of the ContentInfo property. ///
return void

OnContentInfoTemplateChanged() protected method

Called when the value of the ContentInfoTemplate property chages.
protected OnContentInfoTemplateChanged ( System.Windows.DataTemplate oldContentInfoTemplate, System.Windows.DataTemplate newContentInfoTemplate ) : void
oldContentInfoTemplate System.Windows.DataTemplate /// The old value of the ContentInfoTemplate property. ///
newContentInfoTemplate System.Windows.DataTemplate /// The new value of the ContentInfoTemplate property. ///
return void

OnSelected() protected method

Raises a Selected event when the IsSelected property changes from false to true.
protected OnSelected ( RoutedEventArgs e ) : void
e System.Windows.RoutedEventArgs The event information.
return void

OnUnselected() protected method

Raises an Unselected event when the IsSelected property changes from true to false.
protected OnUnselected ( RoutedEventArgs e ) : void
e System.Windows.RoutedEventArgs The event information.
return void

Property Details

ContentInfoProperty public_oe static_oe property

Identifies the ContentInfo dependency property.
public static DependencyProperty,System.Windows ContentInfoProperty
return System.Windows.DependencyProperty

ContentInfoTemplateProperty public_oe static_oe property

Identifies the ContentInfoTemplate dependency property.
public static DependencyProperty,System.Windows ContentInfoTemplateProperty
return System.Windows.DependencyProperty

HintPanelHeightProperty public_oe static_oe property

Identifies the HintPanelHeight dependency property.
public static DependencyProperty,System.Windows HintPanelHeightProperty
return System.Windows.DependencyProperty

IsSelectedProperty public_oe static_oe property

Identifies the IsSelected dependency property.
public static DependencyProperty,System.Windows IsSelectedProperty
return System.Windows.DependencyProperty