Cocktail Help Reference
WithActivator Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > INavigationServiceConfigurator<T> Interface : WithActivator Method



activator
The activator action to be called upon to activate a new navigation target.

Glossary Item Box

Configures the activator action for the current NavigationService. The activator is responsible for activating the target in the current conductor.

Syntax

Visual Basic (Declaration) 
Function WithActivator( _
   ByVal activator As Action(Of NavigateResult(Of T)) _
) As INavigationServiceConfigurator(Of T)
Visual Basic (Usage)Copy Code
Dim instance As INavigationServiceConfigurator(Of T)
Dim activator As Action(Of NavigateResult(Of T))
Dim value As INavigationServiceConfigurator(Of T)
 
value = instance.WithActivator(activator)

Parameters

activator
The activator action to be called upon to activate a new navigation target.

Remarks

If no activator is configured Caliburn.Micro.IConductor.ActivateItem(System.Object) is called automatically.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.