Question: There is a ListView in my App and the ListView has a selector. I want to make the first item of this ListView to be selected **as default** at the very **startup of App**, How? Can anyone give some tips? THX a lot.

Answer: 
I have used data binding to solve this,

using the following codebehind:

```
private List<Unit> _units;
private Unit _selectedUnit;
public Unit selectedUnit{
  get{
    if (_selectedUnit is null){
      return _units.Count > 0 ? _units[0] : null;
    }else{
      return _selectedUnit;
    }
  }
  set{
    if (_selectedUnit != value){
      _selectedUnit = value;
      OnPropertyChanged("selectedUnit");
    }
  }
}
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged(string propertyName){
  var changed = PropertyChanged;
  if (changed != null){
    PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  }
}

```

and XAML

```
<ListView ItemsSource="{Binding units}"
          SelectedItem="{Binding selectedUnit, Mode=TwoWay}">

```
```
if(position == 0){
        // This is the first item, you need to select this
        //rowview which u inflate under getview 
        rowView.performClick();

    }

```

i think this will help you . it works for me