NavigationBar.SetCommand Method
This documentation is no longer available on MSDN, however it is available as a CHM download.
Assigns a command to a specific navigation bar element.
Namespace: Microsoft.Maps.MapControl.Navigation
Assembly: Microsoft.Maps.MapControl (in Microsoft.Maps.MapControl.dll)
Usage
Syntax
'Declaration
Public Shared Sub SetCommand ( _
element As DependencyObject, _
command As NavigationBarCommandBase _
)
public static void SetCommand (
DependencyObject element,
NavigationBarCommandBase command
)
public:
static void SetCommand (
DependencyObject^ element,
NavigationBarCommandBase^ command
)
public static void SetCommand (
DependencyObject element,
NavigationBarCommandBase command
)
public static function SetCommand (
element : DependencyObject,
command : NavigationBarCommandBase
)
Parameters
- element
The navigation bar element.
- command
The command to assign to the element.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Target Platforms
See Also
Reference
NavigationBar Class
NavigationBar Members
Microsoft.Maps.MapControl.Navigation Namespace