BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
<listView:SfListView x:Name="listView" ItemSize="70" HeaderSize="50"
ItemsSource="{Binding Contactsinfo}">
<listView:SfListView.HeaderTemplate>
<DataTemplate>
<Grid BackgroundColor="Teal">
<Label Text="{Binding HeaderText,Mode=TwoWay}" TextColor="White"
FontSize="18" LineBreakMode="NoWrap"/>
</Grid>
</DataTemplate>
</listView:SfListView.HeaderTemplate>
</listView:SfListView> |
public string headertext;
public string HeaderText
{
get { return headertext; }
set
{
headertext = value;
RaisedOnPropertyChanged("HeaderText");
}
}
public ContactsViewModel()
{
headertext = "SfListView Header";
contactsinfo = new ObservableCollection<Contacts>();
…
} |
private void headerchanged_Clicked(object sender, EventArgs e)
{
ViewModel.HeaderText = "Contacts Header";
} |