Browse Source

Use ICommand from System.Windows.Input.

pull/39/head
Steven Kirk 11 years ago
parent
commit
09092afe75
  1. 1
      Perspex.Controls/Button.cs
  2. 19
      Perspex.Input/ICommand.cs
  3. 1
      Perspex.Input/Perspex.Input.csproj

1
Perspex.Controls/Button.cs

@ -7,6 +7,7 @@
namespace Perspex.Controls namespace Perspex.Controls
{ {
using System; using System;
using System.Windows.Input;
using Perspex.Input; using Perspex.Input;
using Perspex.Interactivity; using Perspex.Interactivity;

19
Perspex.Input/ICommand.cs

@ -1,19 +0,0 @@
// -----------------------------------------------------------------------
// <copyright file="ICommand.cs" company="Steven Kirk">
// Copyright 2015 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Input
{
using System;
public interface ICommand
{
event EventHandler CanExecuteChanged;
bool CanExecute(object parameter);
void Execute(object parameter);
}
}

1
Perspex.Input/Perspex.Input.csproj

@ -60,7 +60,6 @@
<Compile Include="FocusManager.cs" /> <Compile Include="FocusManager.cs" />
<Compile Include="FocusNavigationDirection.cs" /> <Compile Include="FocusNavigationDirection.cs" />
<Compile Include="ICloseable.cs" /> <Compile Include="ICloseable.cs" />
<Compile Include="ICommand.cs" />
<Compile Include="IFocusManager.cs" /> <Compile Include="IFocusManager.cs" />
<Compile Include="IFocusScope.cs" /> <Compile Include="IFocusScope.cs" />
<Compile Include="IInputDevice.cs" /> <Compile Include="IInputDevice.cs" />

Loading…
Cancel
Save