Xamarin Tips and Tricks

Xamarin Tips and Tricks In this blog post I’ll cover some of the basics of getting started with Xamarin along with some more advanced features. I’ll also cover common problems that you will doubtless encounter when developing with Xamarin. Installing Xamarin The Xamarin install is now included in Visual Studio 2015 (VS), so make sure…

0

Using the Microsoft OCR Library for WinRT from a desktop app

Recently I had a need to do some OCR processing from a desktop app. Unfortunately the OCR package from Microsoft is for WinRT apps only. However, by using this excellent NuGet package: https://blogs.msdn.microsoft.com/lucian/2015/10/23/how-to-call-uwp-apis-from-a-desktop-vbc-app/#comment-7985 I was able to get this to work from desktop code.         private async Task<string> ExtractText(string filename)         {             OcrEngine ocrEngine…

0

Custom TreeView for WinRT Windows 10 XAML Store Apps

  There are a few implementations of tree views for WinRT available, but none of them did exactly what I wanted. I wanted something very simple (300 lines of code) that I could tailor the look and feel easily without getting bogged down in generic hierarchical data templates etc. I’ve written 2 or 3 tree…

1

Custom app theming using data binding on Windows 10 XAML Store Apps

  XAML provides a rich framework for providing beautiful, responsive designs with many built in controls to simplify the building of apps. However, it is often a requirement to allow the user to choose from a set of themes in order to change the appearance of the entire app. For example, a dark and a…

0

Multiple Windows/Views in a Windows 10 XAML Store App

  Back in Windows 8, Modern Apps were full screen and could only have one window open. In Windows 10, a Universal Application (UWP) can have multiple windows (views) open at once so that a user can, for example, work on multiple documents at once, and switch between windows just like classic Win32 applications such…

0

Outline text from a Windows 10 Store XAML App using SharpDX

  I recently needed to draw text outlines on one of my projects from a Windows 10 Store app. This is not directly supported by XAML so I had to use some SharpDX DirectX code to retrieve the font outlines and then draw as a Path object. The result can be seen here.    …

0