using Prism.Commands;
using Prism.Mvvm;
using System.Windows.Input;
public partial class MainWindowViewModel : BindableBase
{
...
public ICommand StartCommand { get; set; }
public MainWindowViewModel()
{
Initialize_Command();
}
void Initialize_Command()
{
StartCommand = new DelegateCommand<string>(StartCommand_Function);
}
void StartCommand_Function(string para)
{
// command procedure
}
...
}
'C# > C# WPF' 카테고리의 다른 글
Prism Template Pack (0) | 2022.08.15 |
---|---|
Timer (0) | 2022.07.29 |
Converter (0) | 2022.07.23 |
WPF Label Underline (0) | 2022.07.16 |
WPF Placeholder TextBox (0) | 2022.07.16 |