This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RelayCommand : ICommand | |
{ | |
private Action<object> _execute; | |
private Func<object, bool> _canExecute; | |
public RelayCommand(Action<object> execute) | |
{ | |
_execute = execute; | |
_canExecute = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>Query with handler</Title> | |
<Author>Patrik Šoma</Author> | |
<Description>SLM only!</Description> | |
<Shortcut>qryhnd</Shortcut> | |
</Header> | |
<Snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>Command with handler</Title> | |
<Author>Patrik Šoma</Author> | |
<Description>SLM Only!</Description> | |
<Shortcut>cmdhnd</Shortcut> | |
</Header> | |
<Snippet> |
OlderNewer