C# Class MahApps.Metro.Controls.FlipView

Inheritance: System.Windows.Controls.Primitives.Selector
ファイルを表示 Open project: MahApps/MahApps.Metro Class Usage Examples

Public Properties

Property Type Description
BannerTextProperty System.Windows.DependencyProperty
CircularNavigationProperty System.Windows.DependencyProperty
DownTransitionProperty System.Windows.DependencyProperty
IsBannerEnabledProperty System.Windows.DependencyProperty
IsNavigationEnabledProperty System.Windows.DependencyProperty
LeftTransitionProperty System.Windows.DependencyProperty
MouseHoverBorderBrushProperty System.Windows.DependencyProperty
MouseHoverBorderEnabledProperty System.Windows.DependencyProperty
MouseHoverBorderThicknessProperty System.Windows.DependencyProperty
OrientationProperty System.Windows.DependencyProperty
RightTransitionProperty System.Windows.DependencyProperty
UpTransitionProperty System.Windows.DependencyProperty

Public Methods

Method Description
GoBack ( ) : void

Changes the current slide to the previous item.

GoForward ( ) : void

Changes the current to the next item.

HideControlButtons ( ) : void

Removes the control buttons (next/previous) from view.

OnApplyTemplate ( ) : void
ShowControlButtons ( ) : void

Brings the control buttons (next/previous) into view.

Protected Methods

Method Description
GetContainerForItemOverride ( ) : DependencyObject
IsItemItsOwnContainerOverride ( object item ) : bool
OnItemsChanged ( System e ) : void
OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
OnMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnSelectionChanged ( System.Windows.Controls.SelectionChangedEventArgs e ) : void
PrepareContainerForItemOverride ( DependencyObject element, object item ) : void

Private Methods

Method Description
ApplyToNavigationButtons ( Action

Applies actions to navigation buttons.

ChangeBannerText ( string value = null ) : void
CoerceSelectedIndexProperty ( DependencyObject d, object value ) : object

Coerce SelectedIndexProperty's value.

ComputeTransition ( int fromIndex, int toIndex ) : void

Computes the transition when changing selected index.

DetectControlButtonsStatus ( Visibility activeButtonsVisibility = Visibility.Visible ) : void

Sets the visibility of navigation buttons.

ExecuteWhenLoaded ( FlipView flipview, System.Action body ) : void
FlipView ( ) : System
FlipViewLoaded ( object sender, RoutedEventArgs e ) : void
FlipViewUnloaded ( object sender, RoutedEventArgs e ) : void
GetNavigationButtons ( System.Windows.Controls.Button &prevButton, System.Windows.Controls.Button &nextButton, IEnumerable

Gets the navigation buttons.

HideBanner ( ) : void
NextButtonClick ( object sender, RoutedEventArgs e ) : void
OnIsBannerEnabledPropertyChangedCallback ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
PrevButtonClick ( object sender, RoutedEventArgs e ) : void
ShowBanner ( ) : void

Method Details

GetContainerForItemOverride() protected method

protected GetContainerForItemOverride ( ) : DependencyObject
return System.Windows.DependencyObject

GoBack() public method

Changes the current slide to the previous item.
public GoBack ( ) : void
return void

GoForward() public method

Changes the current to the next item.
public GoForward ( ) : void
return void

HideControlButtons() public method

Removes the control buttons (next/previous) from view.
public HideControlButtons ( ) : void
return void

IsItemItsOwnContainerOverride() protected method

protected IsItemItsOwnContainerOverride ( object item ) : bool
item object
return bool

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnItemsChanged() protected method

protected OnItemsChanged ( System e ) : void
e System
return void

OnKeyDown() protected method

protected OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs
return void

OnMouseDown() protected method

protected OnMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

OnSelectionChanged() protected method

protected OnSelectionChanged ( System.Windows.Controls.SelectionChangedEventArgs e ) : void
e System.Windows.Controls.SelectionChangedEventArgs
return void

PrepareContainerForItemOverride() protected method

protected PrepareContainerForItemOverride ( DependencyObject element, object item ) : void
element System.Windows.DependencyObject
item object
return void

ShowControlButtons() public method

Brings the control buttons (next/previous) into view.
public ShowControlButtons ( ) : void
return void

Property Details

BannerTextProperty public_oe static_oe property

public static DependencyProperty,System.Windows BannerTextProperty
return System.Windows.DependencyProperty

CircularNavigationProperty public_oe static_oe property

public static DependencyProperty,System.Windows CircularNavigationProperty
return System.Windows.DependencyProperty

DownTransitionProperty public_oe static_oe property

public static DependencyProperty,System.Windows DownTransitionProperty
return System.Windows.DependencyProperty

IsBannerEnabledProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsBannerEnabledProperty
return System.Windows.DependencyProperty

IsNavigationEnabledProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsNavigationEnabledProperty
return System.Windows.DependencyProperty

LeftTransitionProperty public_oe static_oe property

public static DependencyProperty,System.Windows LeftTransitionProperty
return System.Windows.DependencyProperty

MouseHoverBorderBrushProperty public_oe static_oe property

public static DependencyProperty,System.Windows MouseHoverBorderBrushProperty
return System.Windows.DependencyProperty

MouseHoverBorderEnabledProperty public_oe static_oe property

public static DependencyProperty,System.Windows MouseHoverBorderEnabledProperty
return System.Windows.DependencyProperty

MouseHoverBorderThicknessProperty public_oe static_oe property

public static DependencyProperty,System.Windows MouseHoverBorderThicknessProperty
return System.Windows.DependencyProperty

OrientationProperty public_oe static_oe property

public static DependencyProperty,System.Windows OrientationProperty
return System.Windows.DependencyProperty

RightTransitionProperty public_oe static_oe property

public static DependencyProperty,System.Windows RightTransitionProperty
return System.Windows.DependencyProperty

UpTransitionProperty public_oe static_oe property

public static DependencyProperty,System.Windows UpTransitionProperty
return System.Windows.DependencyProperty