private void OnExcuteMethod(object p) { StringModel stringModel = new StringModel { Name = Input }; userControlViewModel.ItemList.Add(stringModel); Input = ""; }
private void OnExcuteMethod(object p) { //ItemList.Remove(p.ToString()); StringModel stringModel = p as StringModel; if (stringModel != null) { ItemList.Remove(stringModel); } }