maui-linux/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issu.../Bugzilla39483.xaml.cs

51 строка
924 B
C#
Исходник Обычный вид История

2016-03-22 23:02:25 +03:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.CustomAttributes;
namespace Xamarin.Forms.Controls.Issues
{
[Issue(IssueTracker.Bugzilla, 39483, "ListView Context Menu localization", PlatformAffected.iOS)]
public partial class Bugzilla39483 : ContentPage
{
public Bugzilla39483 ()
{
#if APP
InitializeComponent ();
BindingContext = new DemoViewModel();
#endif
}
}
public class DemoViewModel : ViewModelBase
{
public DemoViewModel()
{
DataList = new List<string>();
DataList.Add("Listenelement 1");
DataList.Add("Listenelement 2");
DataList.Add("Listenelement 3");
DataList.Add("Listenelement 4");
}
List<string> _dataList;
public List<string> DataList
{
get
{
return _dataList;
}
set { _dataList = value;
OnPropertyChanged();
}
}
}
}