Summary
A control that imitate a slide show with back/forward buttons.
- Namespace
- MahApps
.Metro .Controls - Base Types
-
- Selector
graph BT
Type-->Base0["Selector"]
Type["FlipView"]
class Type type-node
Syntax
[TemplatePart(Name = PART_Presenter, Type = typeof(TransitioningContentControl))]
[TemplatePart(Name = PART_BackButton, Type = typeof(Button))]
[TemplatePart(Name = PART_ForwardButton, Type = typeof(Button))]
[TemplatePart(Name = PART_UpButton, Type = typeof(Button))]
[TemplatePart(Name = PART_DownButton, Type = typeof(Button))]
[TemplatePart(Name = PART_BannerGrid, Type = typeof(Grid))]
[TemplatePart(Name = PART_BannerLabel, Type = typeof(Label))]
[TemplatePart(Name = PART_Index, Type = typeof(ListBox))]
[StyleTypedProperty(Property = nameof(NavigationButtonStyle), StyleTargetType = typeof(Button))]
[StyleTypedProperty(Property = nameof(IndexItemContainerStyle), StyleTargetType = typeof(ListBoxItem))]
public class FlipView : Selector
Attributes
Type | Description |
---|---|
TemplatePart | |
TemplatePart | |
TemplatePart | |
TemplatePart | |
TemplatePart | |
TemplatePart | |
TemplatePart | |
TemplatePart | |
StyleTypedProperty | |
StyleTypedProperty |
Constructors
Name | Summary |
---|---|
FlipView |
Fields
Properties
Name | Value | Summary |
---|---|---|
BannerBackground | Brush |
Gets or sets a
System.Windows.Media.Brush that is used to fill the banner.
|
BannerForeground | Brush |
Gets or sets a
System.Windows.Media.Brush that describes the foreground color of the banner label.
|
BannerOpacity | double |
Gets or sets the opacity factor applied to the entire banner when it is rendered in the user interface (UI).
|
BannerText | object |
Gets or sets the banner text.
|
Banner |
string |
Gets or sets a composite string that specifies how to format the BannerText property if it is displayed as a string.
|
BannerTextTemplate | DataTemplate |
Gets or sets the DataTemplate used to display the banner's content.
|
Banner |
DataTemplateSelector |
Gets or sets a template selector for BannerText property that enables an application writer to provide custom template-selection logic .
|
ButtonBackContent | object |
Provides the object content that should be displayed on the Back Button.
|
Button |
string |
Gets or sets a composite string that specifies how to format the ButtonBackContent property if it is displayed as a string.
|
Button |
DataTemplate |
Gets or sets the DataTemplate used to display the Back button's content.
|
ButtonDownContent | object |
Provides the object content that should be displayed on the Down Button.
|
Button |
string |
Gets or sets a composite string that specifies how to format the ButtonDownContent property if it is displayed as a string.
|
Button |
DataTemplate |
Gets or sets the DataTemplate used to display the Down button's content.
|
ButtonForwardContent | object |
Provides the object content that should be displayed on the Forward Button.
|
Button |
string |
Gets or sets a composite string that specifies how to format the ButtonForwardContent property if it is displayed as a string.
|
Button |
DataTemplate |
Gets or sets the DataTemplate used to display the Forward button's content.
|
ButtonUpContent | object |
Provides the object content that should be displayed on the Up Button.
|
Button |
string |
Gets or sets a composite string that specifies how to format the ButtonUpContent property if it is displayed as a string.
|
Button |
DataTemplate |
Gets or sets the DataTemplate used to display the Up button's content.
|
CircularNavigation | bool |
Gets or sets a value indicating whether the navigation is circular, so you get the first after last and the last before first.
|
DownTransition | TransitionType |
Gets or sets the transition of the down navigation.
|
Index |
HorizontalAlignment |
Gets or sets the horizontal alignment characteristics applied to the navigation index.
|
Index |
Style |
Gets or sets a style for the navigation index items.
|
IndexPlacement | Navigation |
Gets or sets a value specifying where the navigation index should be rendered.
|
Index |
VerticalAlignment |
Gets or sets the vertical alignment characteristics applied to the navigation index.
|
IsBannerEnabled | bool |
Gets or sets whether the banner is visible or not.
|
IsNavigationEnabled | bool |
Gets or sets whether the navigation button are visible or not.
|
LeftTransition | TransitionType |
Gets or sets the transition of the left navigation.
|
Mouse |
Brush |
Gets or sets the border brush of the mouse hover effect.
|
Mouse |
bool |
Gets or sets a value indicating whether the border for mouse over effect is enabled or not.
|
Mouse |
Thickness |
Gets or sets the border thickness for the border of the mouse hover effect.
|
Navigation |
Navigation |
Gets or sets the position of the navigation buttons.
|
Navigation |
Style |
Gets or sets the
FrameworkElement.Style for the navigation buttons.
|
Orientation | Orientation |
Gets or sets the orientation of the navigation.
|
RightTransition | TransitionType |
Gets or sets the transition of the right navigation.
|
ShowIndex | bool |
Gets or sets a value indicating whether the navigation index should be visible.
|
UpTransition | TransitionType |
Gets or sets the transition of the up navigation.
|
Methods
Name | Value | Summary |
---|---|---|
Get |
DependencyObject | |
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.
|
Is |
bool | |
OnApplyTemplate |
void | |
OnItemsChanged |
void | |
OnKeyDown |
void | |
OnMouseDown |
void | |
OnSelectionChanged |
void | |
Prepare |
void | |
ShowControlButtons |
void |
Brings the control buttons (next/previous) into view.
|