C# Class Microsoft.Phone.Controls.ExpanderView

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

Public Properties

Property Type Description
ExpanderProperty System.Windows.DependencyProperty
ExpanderTemplateProperty System.Windows.DependencyProperty
HasItemsProperty System.Windows.DependencyProperty
IsExpandedProperty System.Windows.DependencyProperty
IsNonExpandableProperty System.Windows.DependencyProperty
NonExpandableHeaderProperty System.Windows.DependencyProperty
NonExpandableHeaderTemplateProperty System.Windows.DependencyProperty

Public Methods

Method Description
ExpanderView ( ) : System

Initializes a new instance of the ExpanderView class.

OnApplyTemplate ( ) : void

Gets the template parts and sets event handlers.

Protected Methods

Method Description
OnCollapsed ( RoutedEventArgs e ) : void

Raises a Collapsed event when the IsExpanded property changes from true to false.

OnExpanded ( RoutedEventArgs e ) : void

Raises an Expanded event when the IsExpanded property changes from false to true.

OnExpanderChanged ( object oldExpander, object newExpander ) : void

Called when the value of th Expander property changes.

OnExpanderTemplateChanged ( System.Windows.DataTemplate oldTemplate, System.Windows.DataTemplate newTemplate ) : void

Called when the value of the ExpanderTemplate property changes.

OnItemsChanged ( NotifyCollectionChangedEventArgs e ) : void

Updates the HasItems property.

OnNonExpandableHeaderChanged ( object oldHeader, object newHeader ) : void

Called when the value of the NonExpandableHeader property changes.

OnNonExpandableHeaderTemplateChanged ( System.Windows.DataTemplate oldTemplate, System.Windows.DataTemplate newTemplate ) : void

Called when the value of the NonExpandableHeaderTemplate property changes.

Private Methods

Method Description
AnimateContainerDropDown ( ) : void

Provides the feathered animation for items when the Expander View goes from collapsed to expanded.

OnExpanderPanelTap ( object sender, System e ) : void

Toggles the IsExpanded property.

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

ExpanderProperty changed handler.

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

ExpanderTemplateProperty changed handler.

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

IsExpandedProperty changed handler.

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

IsNonExpandableProperty changed handler.

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

NonExpandableHeaderProperty changed handler.

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

NonExpandableHeaderTemplate changed handler.

OnPresenterSizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void

Recalculates size of canvas based on the size change for the presenter.

OnSizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void

Recalculates the size of the presenter to match its parent.

RaiseEvent ( RoutedEventHandler handler, RoutedEventArgs args ) : void

Raises a routed event.

UpdateVisualState ( bool useTransitions ) : void

Updates the visual state.

Method Details

ExpanderView() public method

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

OnApplyTemplate() public method

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

OnCollapsed() protected method

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

OnExpanded() protected method

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

OnExpanderChanged() protected method

Called when the value of th Expander property changes.
protected OnExpanderChanged ( object oldExpander, object newExpander ) : void
oldExpander object /// The old value of the Expander property. ///
newExpander object /// The new value of the Expander property. ///
return void

OnExpanderTemplateChanged() protected method

Called when the value of the ExpanderTemplate property changes.
protected OnExpanderTemplateChanged ( System.Windows.DataTemplate oldTemplate, System.Windows.DataTemplate newTemplate ) : void
oldTemplate System.Windows.DataTemplate /// The old value of the ExpanderTemplate property. ///
newTemplate System.Windows.DataTemplate /// The new value of the ExpanderTemplate property. ///
return void

OnItemsChanged() protected method

Updates the HasItems property.
protected OnItemsChanged ( NotifyCollectionChangedEventArgs e ) : void
e System.Collections.Specialized.NotifyCollectionChangedEventArgs The event information.
return void

OnNonExpandableHeaderChanged() protected method

Called when the value of the NonExpandableHeader property changes.
protected OnNonExpandableHeaderChanged ( object oldHeader, object newHeader ) : void
oldHeader object /// The old value of the NonExpandableHeader property. ///
newHeader object /// The new value of the NonExpandableHeader property. ///
return void

OnNonExpandableHeaderTemplateChanged() protected method

Called when the value of the NonExpandableHeaderTemplate property changes.
protected OnNonExpandableHeaderTemplateChanged ( System.Windows.DataTemplate oldTemplate, System.Windows.DataTemplate newTemplate ) : void
oldTemplate System.Windows.DataTemplate /// The old value of the NonExpandableHeaderTemplate property. ///
newTemplate System.Windows.DataTemplate /// The new value of the NonExpandableHeaderTemplate property. ///
return void

Property Details

ExpanderProperty public_oe static_oe property

Identifies the Expander dependency property.
public static DependencyProperty,System.Windows ExpanderProperty
return System.Windows.DependencyProperty

ExpanderTemplateProperty public_oe static_oe property

Identifies the ExpanderTemplate dependency property.
public static DependencyProperty,System.Windows ExpanderTemplateProperty
return System.Windows.DependencyProperty

HasItemsProperty public_oe static_oe property

Identifies the HasItems dependency property.
public static DependencyProperty,System.Windows HasItemsProperty
return System.Windows.DependencyProperty

IsExpandedProperty public_oe static_oe property

Identifies the IsExpanded dependency property.
public static DependencyProperty,System.Windows IsExpandedProperty
return System.Windows.DependencyProperty

IsNonExpandableProperty public_oe static_oe property

Identifies the NonExpandable dependency property.
public static DependencyProperty,System.Windows IsNonExpandableProperty
return System.Windows.DependencyProperty

NonExpandableHeaderProperty public_oe static_oe property

Identifies the NonExpandableHeader dependency property.
public static DependencyProperty,System.Windows NonExpandableHeaderProperty
return System.Windows.DependencyProperty

NonExpandableHeaderTemplateProperty public_oe static_oe property

Identifies the NonExpandableHeaderTemplate dependency property.
public static DependencyProperty,System.Windows NonExpandableHeaderTemplateProperty
return System.Windows.DependencyProperty