// --------------------------------------------------------------------------------------------------------------------
// <copyright file="WindowCommands.cs" company="Catel development team">
// Copyright (c) 2008 - 2011 Catel development team. All rights reserved.
// </copyright>
// <summary>
// Window commands.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
using System.Windows.Input;
namespace Catel.Windows.Input
{
/// <summary>
/// Window commands.
/// </summary>
public static class WindowCommands
{
/// <summary>
/// Initializes the static members of the <see cref="WindowCommands"/> class.
/// </summary>
static WindowCommands()
{
// Reset layout
ResetLayout = new RoutedUICommand(Properties.Resources.CommandWindowResetLayout, "ResetLayout", typeof(WindowCommands));
// Refresh
InputGestureCollection refreshGestures = new InputGestureCollection();
refreshGestures.Add(new KeyGesture(Key.F5, ModifierKeys.None));
Refresh = new RoutedUICommand(Properties.Resources.CommandWindowRefresh, "Refresh", typeof(WindowCommands), refreshGestures);
// Clear
Clear = new RoutedUICommand(Properties.Resources.CommandWindowClear, "Clear", typeof(WindowCommands));
// OK
InputGestureCollection okGestures = new InputGestureCollection();
OK = new RoutedUICommand(Properties.Resources.CommandWindowOK, "OK", typeof(WindowCommands), okGestures);
// Apply
Apply = new RoutedUICommand(Properties.Resources.CommandWindowApply, "Apply", typeof(WindowCommands));
// Cancel
InputGestureCollection cancelGestures = new InputGestureCollection();
cancelGestures.Add(new KeyGesture(Key.Escape, ModifierKeys.None));
Cancel = new RoutedUICommand(Properties.Resources.CommandWindowCancel, "Cancel", typeof(WindowCommands), cancelGestures);
// Close
InputGestureCollection closeGestures = new InputGestureCollection();
closeGestures.Add(new KeyGesture(Key.Escape, ModifierKeys.None));
Close = new RoutedUICommand(Properties.Resources.CommandWindowClose, "Close", typeof(WindowCommands));
// Copy to clipboard
CopyToClipboard = new RoutedUICommand(Properties.Resources.CommandWindowCopyToClipboard, "CopyToClipboard", typeof(WindowCommands));
}
/// <summary>
/// Reset layout
/// </summary>
public static RoutedUICommand ResetLayout { get; private set; }
/// <summary>
/// Refresh.
/// </summary>
public static RoutedUICommand Refresh { get; private set; }
/// <summary>
/// Clear.
/// </summary>
public static RoutedUICommand Clear { get; private set; }
/// <summary>
/// OK.
/// </summary>
public static RoutedUICommand OK { get; private set; }
/// <summary>
/// Apply.
/// </summary>
public static RoutedUICommand Apply { get; private set; }
/// <summary>
/// Cancel.
/// </summary>
public static RoutedUICommand Cancel { get; private set; }
/// <summary>
/// Close.
/// </summary>
public static RoutedUICommand Close { get; private set; }
/// <summary>
/// Copy to clipboard.
/// </summary>
public static RoutedUICommand CopyToClipboard { get; private set; }
}
}