Cookie Sharing with WebView and the Http Client

Despite their age, cookies remain just as relevant in today’s web as they were when originally introduced. The WebView will handle cookies similar to a regular browser. When making web calls via the native http client, this service also reads and stores cookies as you load webpages that contain them. Thankfully, UWP and iOS share […]

Read More >

Xamarin Forms Debugging The WebView In Chrome

A lesser known feature of debugging on Android, is that you can debug a WebView inside an Android app, in real time. This can be done on your desktop, via Chrome. It allows you to modify HTML and execute Javascript in real time, in the WebView on Android. WebView First, we can start out with […]

Read More >

Introduction To Exrin (Video)

exrin

Exrin is an MVVM framework that sits on top of Xamarin Forms and provides structure and helper code for your application, all while enforcing certain architecture patterns. I also say it is an application library because it contains a little bit more than just MVVM. Exrin is very opinionated, and it strongly encourages a certain […]

Read More >

Xamarin Forms WebView Executing Javascript

The existing WebView control has the function to run Javascript on the loaded page, however it doesn’t have the ability to return the value. This post will walk through how to add that functionality in a bindable property. Extend Control Extending from the base WebView, we add a Function called EvaluateJavascript, that takes a string, […]

Read More >

Xamarin Forms WebView Bindable Actions

The WebView has a number of functions and properties that are only available by directly accessing the control.  To maintain a clean code behind and call functions from the ViewModel, we need to create a new custom control that provides new bindable properties. Extended Control First, lets create a new custom control that inherits from […]

Read More >

Xamarin Forms WebView Advanced Series

The Xamarin Forms WebView control is an abstraction of the platform specific Android WebView, iOS UIWebView and UWP WebBrowser controls. It allows you to view HTML and run Javascript from a local or remote source. While the WebView seems like an odd control to have in a mobile app, it continues to serve a variety […]

Read More >

Xamarin Forms Pull To Refresh With ListView

The Xamarin Forms ListView control has the ability to allow the user to pull down from the top of the ListView to trigger a refresh command. I say a refresh command, because the pull to refresh, just triggers a command and you can do whatever you want in that command, including not updating the ListView. Properties […]

Read More >

Xamarin Forms Layout Engine, Under The Hood

Xamarin Forms has its own layout engine that calculates the position of elements on the screen, converting layout coordinates internally and passing them to the native controls for each platform. While the conversion from a Xamarin Forms control to a native control is easy to follow via a renderer, the layout engine is not as […]

Read More >

Troubleshooting Connecting to Xamarin Mac Agent

Couldn’t connect to mac.local. Please try again. This problem appears more than I would like and it is due to a variety of issues. These normally occur after upgrades or setting up your Mac Build Host for the first time. Connecting To The Mac Agent You have a Mac setup and Visual Studio running and […]

Read More >

Introduction To Xamarin Workbooks

Xamarin Workbooks is a unique product that allows you to write documentation, with runnable code examples and provides a way to visualize the user interfaces. You can create these workbooks for Xamarin Android, Xamarin iOS, WPF and Console. As of the date of this post, Xamarin.Android and Xamarin.iOS don’t have great (or any?) support in […]

Read More >