public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            View rootView = inflater.Inflate(Resource.Layout.fragment_list_view_example, container, false);

            this.listView = (RadListView)rootView.FindViewById(Resource.Id.listView).JavaCast <RadListView>();

            ArrayList dataSource = new ArrayList();

            EmailMessage message = new EmailMessage();

            message.title   = "Tech news";
            message.content = "Here is your daily LinkedIn feed with news about .NET, Java, iOS and more...";
            dataSource.Add(message);

            message         = new EmailMessage();
            message.title   = "Awaiting Payment";
            message.content = "Monthly bills summary: water supply, electricity, earth gas...";
            dataSource.Add(message);

            message         = new EmailMessage();
            message.title   = "Greetings from Hawai";
            message.content = "Hey Betty, we've just arrived! What a flight!...";
            dataSource.Add(message);

            this.listView.SetAdapter(new SwipeToExecuteListViewAdapter(dataSource));

            seb = new SwipeExecuteBehavior();

            seb.AddListener(this);

            this.listView.AddBehavior(seb);

            return(rootView);
        }
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            View rootView = inflater.Inflate(Resource.Layout.fragment_list_view_example, container, false);

            this.listView = (RadListView) rootView.FindViewById(Resource.Id.listView).JavaCast<RadListView>();

            ArrayList dataSource = new ArrayList();

            EmailMessage message = new EmailMessage();
            message.title = "Tech news";
            message.content = "Here is your daily LinkedIn feed with news about .NET, Java, iOS and more...";
            dataSource.Add(message);

            message = new EmailMessage();
            message.title = "Awaiting Payment";
            message.content = "Monthly bills summary: water supply, electricity, earth gas...";
            dataSource.Add(message);

            message = new EmailMessage();
            message.title = "Greetings from Hawai";
            message.content = "Hey Betty, we've just arrived! What a flight!...";
            dataSource.Add(message);

            this.listView.SetAdapter(new SwipeToExecuteListViewAdapter(dataSource));

            seb = new SwipeExecuteBehavior();

            seb.AddListener(this);

            this.listView.AddBehavior(seb);

            return rootView;
        }