MetroContentControl Class
A ContentControl which use a transition to slide in the content.
Namespace
MahApps.Metro.Controls
Base Types
  • ContentControl
graph BT Type-->Base0["ContentControl"] Type["MetroContentControl"] class Type type-node

Syntax

public class MetroContentControl : ContentControl

Constructors

Name Summary
MetroContentControl()

Events

Name Type Summary
TransitionCompleted RoutedEventHandler
The event which will be fired when the transition ends.
TransitionStarted RoutedEventHandler
The event which will be fired when the transition starts.

Fields

Name Field Type Constant Value Summary
IsTransitioningProperty DependencyProperty
Identifies the IsTransitioning dependency property.
static
OnlyLoadTransitionProperty DependencyProperty
Identifies the OnlyLoadTransition dependency property.
static
ReverseTransitionProperty DependencyProperty
Identifies the ReverseTransition dependency property.
static
TransitionCompletedEvent RoutedEvent
Identifies the TransitionCompleted routed event.
static
TransitionsEnabledProperty DependencyProperty
Identifies the TransitionsEnabled dependency property.
static
TransitionStartedEvent RoutedEvent
Identifies the TransitionStarted routed event.
static

Properties

Name Property Type Summary
IsTransitioning bool
Gets whether if the content is transitioning.
OnlyLoadTransition bool
Gets or sets whether the transition should be used only at the loaded event of the control.
ReverseTransition bool
Gets or sets whether the reverse version of the transition should be used.
TransitionsEnabled bool
Gets or sets the value if a transition should be used or not.

Methods

Name Return Value Summary
OnApplyTemplate() void
Reload() void
Execute the transition again.