コード例 #1
0
        private void listview_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var si           = (ListViewItem)listview.SelectedItem;
            var name         = si.Content;
            var selectedNote = notes.FirstOrDefault(x => x.Name == name.ToString());

            if (ServiceCalls.DeleteNote(context.UserContext.UserName, context.UserContext.Password, name.ToString()))
            {
                listview.Items.Remove(selectedNote);
                Frame.Navigate(typeof(ListDelete), context);
            }
        }