RoutedUICommand Class
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
'Declaration <TypeConverterAttribute("System.Windows.Input.CommandConverter, PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")> _ Public Class RoutedUICommand Inherits RoutedCommand 'Usage Dim instance As RoutedUICommand
/** @attribute TypeConverterAttribute("System.Windows.Input.CommandConverter, PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null") */
public class RoutedUICommand extends RoutedCommand
TypeConverterAttribute("System.Windows.Input.CommandConverter, PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null") public class RoutedUICommand extends RoutedCommand
<RoutedUICommand .../>
<object property="predefinedCommandName"/> - or - <object property="predefinedCommandName.predefinedCommandName"/> - or - <object property="{x:Static customClassName.customCommandName}"/>
predefinedClassName One of the predefined command classes. predefinedCommandName One of the predefined commands. prefix The xlmns prefix which maps customClassName. customCommandName to the .NET class. For more information, see XAML Namespaces and Namespace Mapping. customClassName A custom class which contains the custom command. customCommandName A custom command.
The difference between a RoutedUICommand and RoutedCommand is that RoutedUICommand includes a Text property.
The Execute and CanExecute methods on a RoutedCommand do not contain the command logic for the command as is the case with a typical ICommand. These methods raise events that traverse the element tree looking for an object with a CommandBinding. The event handlers attached to the CommandBinding contain the command logic.
The Execute method raises the PreviewExecuted and Executed events. The CanExecute method raises the PreviewCanExecute and CanExecute events.
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.