public TagViewModel(ChannelMainControlViewModel viewModel, TagModel tag) { this.viewModel = viewModel; this.Tag = tag; this.DeleteTagCommand = this.CreateCommand(() => { this.viewModel.RemoveTag(this); }); }
public TagViewModel(ChannelMainControlViewModel viewModel, TagModel tag) { this.viewModel = viewModel; this.Tag = tag; this.DeleteTagCommand = this.CreateCommand((parameter) => { this.viewModel.RemoveTag(this); return(Task.FromResult(0)); }); }