コード例 #1
0
        //Update the list view of the dictionary after an item has been added or removed
        public void UpdateItemsOnListaPreviaDeNumeros()
        {
            VistaPrevia.ItemsSource = Jugada_Puntos;
            VistaPrevia.Items.Refresh();
            VistaPrevia.SelectedIndex = VistaPrevia.Items.Count - 1;
            VistaPrevia.ScrollIntoView(VistaPrevia.SelectedItem);
            int    itemsTotal = Jugada_Puntos.Sum(v => v.Value);
            string price      = (itemsTotal.ToString() + ".00 € ");

            totalSum.Text = price;
        }