In This Article

ToggleTransitionPresenter Class

Represents an element that can display various transitions between two elements.

public class ToggleTransitionPresenter : TransitionPresenter
Inheritance:
object Visual UIElement FrameworkElement ContentPresenter TransitionPresenter object

Remarks

For detailed documentation on this control's features and how to use them, please see the Shared Media Animation documentation topic.

Constructors

ToggleTransitionPresenter()

Initializes an instance of the ToggleTransitionPresenter class.

public ToggleTransitionPresenter()

Properties

AlternateContent

Gets or sets the alternate content. This is a dependency property.

public object AlternateContent { get; set; }

Property Value

object:

The alternate content. The default value is null.

AlternateContentTemplate

Gets or sets the DataTemplate used to display the alternate content. This is a dependency property.

public DataTemplate AlternateContentTemplate { get; set; }

Property Value

DataTemplate:

A DataTemplate that specifies the visualization of the alternate content. The default value is null.

AlternateContentTemplateSelector

Gets or sets the custom logic for choosing a template used to display the alternate content. This is a dependency property.

public DataTemplateSelector AlternateContentTemplateSelector { get; set; }

Property Value

DataTemplateSelector:

A custom DataTemplateSelector object that provides logic and returns a DataTemplate. The default value is null.

IsAlternateContentVisible

Gets or sets whether the alternate content is visible. This is a dependency property.

public bool IsAlternateContentVisible { get; set; }

Property Value

bool:

true if the alternate content is visible; otherwise false. The default value is false.

Fields

AlternateContentProperty

Identifies the AlternateContent dependency property. This field is read-only.

public static readonly DependencyProperty AlternateContentProperty

AlternateContentTemplateProperty

Identifies the AlternateContentTemplate dependency property. This field is read-only.

public static readonly DependencyProperty AlternateContentTemplateProperty

AlternateContentTemplateSelectorProperty

Identifies the AlternateContentTemplateSelector dependency property. This field is read-only.

public static readonly DependencyProperty AlternateContentTemplateSelectorProperty

IsAlternateContentVisibleProperty

Identifies the IsAlternateContentVisible dependency property. This field is read-only.

public static readonly DependencyProperty IsAlternateContentVisibleProperty

Inherited Members