Timeline.CreateClock Method (Boolean)

Creates a new Clock from this Timeline and specifies whether the new Clock is controllable. If this Timeline has children, a tree of clocks is created with this Timeline as the root.

Namespace: System.Windows.Media.Animation
Assembly: PresentationCore (in presentationcore.dll)

public Clock CreateClock (
	bool hasControllableRoot
)
public Clock CreateClock (
	boolean hasControllableRoot
)
public function CreateClock (
	hasControllableRoot : boolean
) : Clock
You cannot use methods in XAML.

Parameters

hasControllableRoot

true if the root Clock returned should return a ClockController from its Controller property so that the Clock tree can be interactively controlled; otherwise, false.

Return Value

A new Clock constructed from this Timeline. If this Timeline is a TimelineGroup that contains child timelines, a tree of Clock objects is created with a controllable Clock created from this Timeline as the root.

Although this Timeline may be the child of one or more TimelineGroup objects, this information is ignored: this method treats the current Timeline as a root Timeline.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show: