Tag Archives: c#

XAML Formatting and Code Behind

I added some padding and spacing to the parent StackLayout to move it down on the screen and put a bit of space between the individual elements. I also user the Orientation property of the individual elements to center them nicely … Continue reading

Posted in Side Projects, Software Development | Tagged , , , , | Leave a comment

Initial XAML for Add Item Screen

In less than an hour I was able to add a Forms ContentPage XAML to my Viand project by right clicking on the Viand project, selecting Add -> New File -> Forms -> Forms Content Page Xaml, and adding the XAML below to … Continue reading

Posted in Side Projects, Software Development | Tagged , , , , , | Leave a comment

Alphabetizing Buy

I alphabetized the Buy list items but didn’t refactor the code to add headers or a jump list. I figure this list will always be shorter than the Add list so headers and a jump list should be unnecessary.

Posted in Side Projects, Software Development | Tagged , , , | Leave a comment

Alphabetizing Add

Because the Add list had the potential to be much longer than the Buy list I wanted to alphabetize that list’s contents to make it easy to find items, avoiding the “search an unalphabetized list for a particular item, can’t … Continue reading

Posted in Side Projects, Software Development | Tagged , , , | Leave a comment

Three Context Items

Since I gave the user the ability to increase the quantity of an item on the Buy list by one I wanted to see if I could add another context action that would let them decrease the quantity by one. … Continue reading

Posted in Side Projects, Software Development | Tagged , , , | Leave a comment

Buy Page – ItemBought and ItemQuantityIncreased

Writing the BuyPage code to buy and item (ItemBought) or increase its quantity (ItemQuantityIncreased) was also relatively straightforward. ItemBought Again the allItems list is searched for the item whose Bought context action was tapped. When found, it’s Buy property is … Continue reading

Posted in Side Projects, Software Development | Tagged , , , | Leave a comment

AddPage – BuyItem and RemoveItem

Writing the AddPage code to move an item to the Buy list (BuyItem) or remove an item from the Add list (RemoveItem) was relatively straightforward. BuyItem For BuyItem the allItems list that was populated when the AddPage constructor was called … Continue reading

Posted in Side Projects, Software Development | Tagged , , , | Leave a comment

Hooking Up Contextual Actions to Methods

The next step was to hook up the item contextual actions that I created in my previous post to the actual methods that would do the work when they were tapped. I planned on putting the methods in the BuyPage … Continue reading

Posted in Side Projects, Software Development | Tagged , , , | Leave a comment

Contextual Actions for List Items

Rather than in-cell controls I want to use item-based context actions to allow the buying of items on the Buy page and the adding of items to the Buy page from the Add page. Xamarin.Forms supports these contextual actions–on iOS … Continue reading

Posted in Side Projects, Software Development | Tagged , , , , | 1 Comment

A ContentPage Wrapped in a TabPage Wrapped in a NavigationPage

A redesign adds a NavigationBar at the top so the application name can be displayed along with a Settings button on the Buy page and an Add button on the Add page. A ContentPage doesn’t have a NavigationBar at the … Continue reading

Posted in Side Projects, Software Development | Tagged , , , | Leave a comment