C# Класс Microsoft.Phone.Controls.MultiselectItem

Наследование: System.Windows.Controls.ContentControl
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ContentInfoProperty System.Windows.DependencyProperty
ContentInfoTemplateProperty System.Windows.DependencyProperty
HintPanelHeightProperty System.Windows.DependencyProperty
IsSelectedProperty System.Windows.DependencyProperty

Private Properties

Свойство Тип Описание
Cover_Tap void
HintPanel_ManipulationCompleted void
HintPanel_ManipulationDelta void
HintPanel_ManipulationStarted void
OnContentInfoPropertyChanged void
OnContentInfoTemplatePropertyChanged void
OnHintPanelHeightPropertyChanged void
OnIsSelectedPropertyChanged void
RaiseEvent void
UpdateVisualState void

Открытые методы

Метод Описание
MultiselectItem ( ) : System

Initializes a new instance of the MultiselectItem class.

OnApplyTemplate ( ) : void

Gets the template parts and sets event handlers.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

MultiselectItem() публичный Метод

Initializes a new instance of the MultiselectItem class.
public MultiselectItem ( ) : System
Результат System

OnApplyTemplate() публичный Метод

Gets the template parts and sets event handlers.
public OnApplyTemplate ( ) : void
Результат void

OnContentInfoChanged() защищенный Метод

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. ///
Результат void

OnContentInfoTemplateChanged() защищенный Метод

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. ///
Результат void

OnSelected() защищенный Метод

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.
Результат void

OnUnselected() защищенный Метод

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.
Результат void

Описание свойств

ContentInfoProperty публичное статическое свойство

Identifies the ContentInfo dependency property.
public static DependencyProperty,System.Windows ContentInfoProperty
Результат System.Windows.DependencyProperty

ContentInfoTemplateProperty публичное статическое свойство

Identifies the ContentInfoTemplate dependency property.
public static DependencyProperty,System.Windows ContentInfoTemplateProperty
Результат System.Windows.DependencyProperty

HintPanelHeightProperty публичное статическое свойство

Identifies the HintPanelHeight dependency property.
public static DependencyProperty,System.Windows HintPanelHeightProperty
Результат System.Windows.DependencyProperty

IsSelectedProperty публичное статическое свойство

Identifies the IsSelected dependency property.
public static DependencyProperty,System.Windows IsSelectedProperty
Результат System.Windows.DependencyProperty