Concrete ICommand to open apply the "Open" Windows ShellExecute verb to the CommandParameter string.
If the CommandParameter is a web page, OpenPageCommand will open the given page in the user's default browser. You should probably avoid using this command in publicly editable XAML, since the CommandParameter may be changed to Open any arbitrary program.
Public Member Functions |
|
bool | CanExecute (object parameter) |
Determines whether the command can execute
in its current state. |
|
void | Execute (object parameter) |
Runs the Windows "Open" ShellExecute verb on
the given parameter. |
bool WPFCustomControls::OpenPageCommand::CanExecute | ( | object | parameter | ) | [inline] |
Determines whether the command can execute in its current state.
parameter | The parameter provided to Execute. |
void WPFCustomControls::OpenPageCommand::Execute | ( | object | parameter | ) | [inline] |
Runs the Windows "Open" ShellExecute verb on the given parameter.
parameter | String to pass to ShellExecute's Open verb. |