title: how to show data from listview to entry in xamarin by selecteditem through mvvm in viewmodel?
body: <p>i am doing crud operation through SQLite in xamarin but i want to show data from listview to entry so that i can update it but i don't know how to call selected item that is binded in xaml</p>
  
  <p></p>
  
  <pre><code>    &lt;ListView  ItemsSource="{Binding companylist}" SelectedItem="{Binding selectedname}" &gt;
          &lt;ListView.ItemTemplate&gt;
              &lt;DataTemplate&gt;
                  &lt;ViewCell&gt;
                      &lt;Label Text="{Binding name}"/&gt;
                  &lt;/ViewCell&gt;
              &lt;/DataTemplate&gt;
          &lt;/ListView.ItemTemplate&gt;
      &lt;/ListView&gt;
      &lt;StackLayout&gt;
  
          &lt;Entry Text="{Binding id}" IsVisible="False"/&gt;
          &lt;Entry Placeholder="Name" Text="{Binding name}"/&gt;
          &lt;Button Text="Update" Command="{Binding UpdateCompanyCommand}"/&gt;
      &lt;/StackLayout&gt;
  &lt;/StackLayout&gt;
  </code></pre>
  
  <p>and code in view model is</p>
  
  <pre><code> public Command UpdateCompanyCommand { get; }
      async Task UpdateCompany()
      {
          var db = new SQLiteConnection(dbpath);
          Company company = new Company()
          {
              id=id,
  
              name = Name
  
  
          };
          db.Update(company);
          await Xamarin.Forms.Application.Current.MainPage.DisplayAlert("Message", "Name is Updated", "Ok");
  
      }
  </code></pre>