Skip to content

you can bind this pre-definded commands in your xaml

Commands

CommandDescription
OpenLinkOpen Link
ShutdownAppClose Application
PushMainWindow2TopOpen MainWindow in front
CloseWindowClose Current Window
StartScreenshotTake Screenshot
<Button Command="hc:ControlCommands.OpenLink" CommandParameter="https://google.com" Content="Open Link" />

ShutdownApp

<Button Command="hc:ControlCommands.ShutdownApp" Content="ShutDown App"/>

PushMainWindow2Top

<Button Command="hc:ControlCommands.PushMainWindow2Top" Content="Push Main Window"/>

CloseWindow

<Button Command="hc:ControlCommands.CloseWindow" CommandParameter="{Binding RelativeSource={RelativeSource Self}}" Content="Close Window"/>

StartScreenshot

<Button Command="hc:ControlCommands.StartScreenshot" Content="Start Screen Shot"/>

Released under the MIT License.