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 >

Resource Files in Xamarin Forms

Resource files allow you to define a name and a resource, normally a string, that can change depending upon the language of the device. Each native platform has a resource file structure and setup that can be used. Xamarin.Android and Xamarin.iOS will use resx and UWP uses resw. Interestingly with both of these file extensions, […]

Read More >

Platform Specifics in Xamarin Forms

Platform specifics allow you to enhance a control in Xamarin Forms on a particular platform. Now you can add specific platform only properties to Xamarin Forms controls, starting with Xamarin Forms 2.3.3, in Shared and PCL based projects in either code behind or XAML. Built-in Platform Specifics Xamarin Forms comes with built-in platform specifics. You have two […]

Read More >

The Advanced Navigation of Exrin in Xamarin Forms

Exrin is an MVVM framework, with higher levels of abstraction that most other frameworks. It is designed for Xamarin Forms but has no dependency on Xamarin Forms. It certainly pushes its opinions on how your project should be set up, but in doing so gives some very advanced navigation features with relative ease. Exrin is […]

Read More >

Configuration Files In Xamarin Forms

The Xamarin Forms framework does not include a way to read configuration files out of the box, much like ASP.NET. Because of this, many developers hard code static values. In these configuration files developers will normally put API uri’s, local DB connection strings etc. However this makes it hard to manage, especially when going into […]

Read More >

Navigating in Xamarin Forms

Switching pages in Xamarin Forms is simple, once you understand the core concepts of setting the MainPage or using a page with navigational abilities. Main Page In App.cs or App.xaml.cs you will have an assignment to your MainPage. MainPage = new ContentPage() { Content = new Label() { Text= “Hello World” } }; A TabbedPage, ContentPage, NavigationPage can be […]

Read More >