Tag Archives: xamarin-forms

Viand Sync Diary #2 – Refreshing

Syncing data between the device and the cloud will happen at two times: Automatically when the application starts Automatically when the application comes to the foreground Manually when the user makes the refresh gesture on either list While I continue … Continue reading

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

Buy Before Add

On the Add Item screen the “Save to Add list” option is selected by default. Somehow this workflow didn’t seem right. Let’s say you’re on the Add screen, searching for an item to add to your Buy list. You can’t … Continue reading

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

Quantity Data Binding

Right now when a new item is added to one of the item lists it has a default quantity of one. On the Buy list you can increase an item’s quantity in increments of one (you might want to buy … Continue reading

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

Saving and Deleting Items

After some thought I’ve decided to add or remove items from the SQLite database as soon as they’re added to either list or removed from the Add list (the other option I entertained was replacing the entire database contents with … Continue reading

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

Adding a SQLite Database to Android

Implementing a SQLite database on Android went a bit quicker after the iOS work. The steps involved were: Adding the SQLite.Net NuGet package to the Android project Creating an ItemSQLite.db3 link in the Android project Coding the SQLite_Android iSQLite interface … Continue reading

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

Duplicate Item Check

Added code to prevent a duplicate item from being entered into the list

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

Saving Items

I’ve tied the Clicked event of Save Item to a method in the AddItemPage XAML page’s code behind called OnSaveClicked. The AddItemPage code behind page has a boolean field called addToBuyList. This addToBuyList boolean is used to determine which list to … Continue reading

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

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

Adding Items

The penultimate feature is the ability to add new items to the Add list. My initial idea was to allow you to add a new item to the Add list inline but off the top of my head I can’t … Continue reading

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