NoesisGUI

RoutedUICommand Class

namespace Noesis | MSDN

A command that is routed through the element tree and contains a text property.

The following built-in commands are available in the ApplicationCommands class:

  • CancelPrint, Close, ContextMenu, Copy, CorrectionList, Cut, Delete, Find, Help, New, Open, Paste, Print, PrintPreview, Properties, Redo, Replace, Save, SaveAs, SelectAll, Stop, Undo

The following built-in commands are available in the ComponentCommands class:

  • ExtendSelectionDown, ExtendSelectionLeft, ExtendSelectionRight, ExtendSelectionUp, MoveDown, MoveFocusBack, MoveFocusDown, MoveFocusForward, MoveFocusPageDown, MoveFocusPageUp, MoveFocusUp, MoveLeft, MoveRight, MoveToEnd, MoveToHome, MoveToPageDown, MoveToPageUp, MoveUp, ScrollByLine, ScrollPageDown, ScrollPageLeft, ScrollPageRight, ScrollPageUp, SelectToEnd, SelectToHome, SelectToPageDown, SelectToPageUp
<Grid
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <DockPanel Width="300" Height="300" Background="#505860">
        <Menu DockPanel.Dock="Top">
            <MenuItem Header="File"/>
            <MenuItem Header="Edit">
                <MenuItem Header="Copy" Command="ApplicationCommands.Copy"/>
                <MenuItem Header="Cut" Command="ApplicationCommands.Cut"/>
                <MenuItem Header="Paste" Command="ApplicationCommands.Paste"/>
            </MenuItem>
            <MenuItem Header="Help"/>
        </Menu>
    </DockPanel>
</Grid>

Inheritance Hierarchy

RoutedUICommand

INDEX Class Hierarchy Index

Methods

From RoutedCommand

Name Description
CanExecute Determines whether this RoutedCommand can execute in its current state
Execute Executes the RoutedCommand on the current command target

From BaseCommand

Name Description
CanExecute Determines whether the command can execute in its current state
CanExecuteChanged Occurs when something changes that affects whether or not the command should execute
Execute This method is called when command is invoked

Properties


Name Description
None Text Gets or sets the text that describes this command

DP_ Dependency Property      RO_ Read-only


From RoutedCommand


Name Description
RO InputGestures Gets the collection of InputGesture objects that are associated with this command
RO Name Gets the name of the command as it is registered in the CommandManager
RO OwnerType Gets the class type of the object that defines the command

DP_ Dependency Property      RO_ Read-only

© 2017 Noesis Technologies