MetroContentControl Class

Summary

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 Constant Value Summary
IsTransitioningProperty
Identifies the IsTransitioning dependency property.
static
OnlyLoadTransitionProperty
Identifies the OnlyLoadTransition dependency property.
static
ReverseTransitionProperty
Identifies the ReverseTransition dependency property.
static
TransitionCompletedEvent
Identifies the TransitionCompleted routed event.
static
TransitionsEnabledProperty
Identifies the TransitionsEnabled dependency property.
static
TransitionStartedEvent
Identifies the TransitionStarted routed event.
static

Properties

Name Value 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 Value Summary
OnApplyTemplate() void
Reload() void
Execute the transition again.