-
Notifications
You must be signed in to change notification settings - Fork 1
Commads
ekral edited this page Nov 3, 2017
·
14 revisions
- Ukázka zjednodušené verze RelayCommandu, která jen volá metodu bez parametru pomocí delegáta.
private Action _action;
public void Execute(object parameter)
{
_action?.Invoke();
}- Ukázka použití RelayCommandu atributu CommandParameter pro předávání parametrů
<Button Content="Přičti 1" Command="{Binding CommandZmena}" CommandParameter="1" />