Building a Custom Checkbox Control This post is a code dump for a custom checkbox control. There's four main parts for this: Custom Control * Bindings * XAML Host Page * XAML * Viewmodel Bindings XAML Host Page Viewmodel
Xamarin.Forms: Ratings Interface
I recently implemented a Ratings user interface for a Xamarin.Forms app: Here's the XAML for the Rate interface: Here's the ValueConverter implementation: Here's the viewmodel property and command:
Xamarin.Forms: ShellContent Navigation
Intro I came across a scenario in which my app exposed multiple methods for navigating to a particular page. Method 1: XAML One exposed method was from the app menu in which the navigation was implemented in XAML: Method 2: Code-behind of Initial page Another exposed method was to perform navigation from another page's code-behind: Method …
Xamarin.Forms: Conditional StringFormat
The following is a technique used for formatting data-bound text within XAML: Here's the result:
Xamarin.Forms – Obfuscate Bankcard Number
Xamarin.Forms: Validation using Behaviors
xmlns:converters="clr-namespace:Account.UI.Converters"
Xamarin.Forms – Implementing ItemsSource for Custom Control
Here's some code for ItemsSource:
Xamarin.Forms Responsive Layout from Device Rotation
Intro This is a brain dump on implementing a responsive layout based on a device being in Portrait or Landscape mode. In summary, I used a ContentView's ControlTemplate to host a layout that depends on a device being in Portrait or Landscape mode. In addition, I then overrode the OnSizeAllocated method on the ContentPage. XAML …
Continue reading "Xamarin.Forms Responsive Layout from Device Rotation"
Xamarin.Forms: ListView with Images Kata
I record a Kata as I write a Xamarin.Forms app from scratch:
Building a Trading App (Xamarin.Forms & F#)
Intro This is my fourth post on my journey of building a trading app using F# and Xamarin.Forms. In my last post, I brain-dumped XAML and F# for selling shares of stock. In this post, I will brain-dump the syntax for buying shares of stock for both the UI and viewmodels. Solution Explorer I modeled …
Continue reading "Building a Trading App (Xamarin.Forms & F#)"