コード例 #1
0
        private void lvDogs_ItemSelected(object sender,
                                         SelectedItemChangedEventArgs e)
        {
            Dogs current = (Dogs)e.SelectedItem;

            //get the data from current into slOneDog
            //slOneDog has a BindingContext attribute
            s1OneDog.BindingContext = current;
        }
コード例 #2
0
        private void lvDogs_ItemSelected(object sender,
                                         SelectedItemChangedEventArgs e)
        {
            Dogs current = (Dogs)e.SelectedItem;

            slOneDog.BindingContext = current;
            // need to set the button to be disable as setting the
            // data through the BindingContext causes a TextChanged
            // event to fire on the Entry boxes
            btnUpdate.IsEnabled = false;
            slOneDog.IsVisible  = true;
        }