Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Saving EntryCell Values

$
0
0

Here is an Example by Xamarin for showing an Entry Cell on the Screen. But it is missing a major component! What to do with the value of the Entry Cell once it is entered. Will someone please provide an example of saving the Entry Cell values to another list or somewhere. I'm getting frustrated with a lot of the Forms Gallery examples because all they do is stick a label, list or image on a screen and fail to show any property or event handling. I apologize I'm asking for so much, but I need a working example, not a theory.

namespace FormsGallery
{
class EntryCellDemoPage : ContentPage
{
public EntryCellDemoPage()
{
Label header = new Label
{
Text = "EntryCell",
Font = Font.SystemFontOfSize(50, FontAttributes.Bold),
HorizontalOptions = LayoutOptions.Center
};

        TableView tableView = new TableView
        {
            Intent = TableIntent.Form,
            Root = new TableRoot
            {
                new TableSection
                {
                    new EntryCell
                    {
                        Label = "EntryCell:",
                        Placeholder = "Type Text Here"
                    }
                }
            }
        };

        // Build the page.
        this.Content = new StackLayout
        {
            Children = 
            {
                header,
                tableView
            }
        };
    }
}

}


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>