Xamarin Forms EnumBindablePicker

,
April 5, 2016 / 2 Comments

One of the controls missing from Xamarin Forms is a “BindablePicker” that allows you to dynamically bind an ItemsSource and SelectedItem from your view model. Fortunately, the Xamarin forums provide a solution to this problem found here:
https://forums.xamarin.com/discussion/30801/xamarin-forms-bindable-picker
The original implementation of this BindablePicker worked great as long as you had a list of strings as your ItemSource. But what […]
Read more

Making Sense of AssemblyVersion Numbers

,
March 15, 2016 / No Comment

The components of a Microsoft DLL or EXE version number are Major, Minor, Build and Revision. According to Microsoft, the components are used by convention as follows:
Major: Assemblies with the same name but different major versions are not interchangeable. A higher version number might indicate a major rewrite of a product where backward compatibility cannot be assumed.
Minor: If […]
Read more

AUTHOR: CATEGORY: .Net, Blog

MultiBinding in Xamarin.Forms

,
March 15, 2016 / No Comment

The current release of Xamarin.Forms does not contain an implementation for a MultiBinding object. For those of us who have a strong WPF background, this is a feature that would be very beneficial. With a little work, it is possible for us to implement our own MultiBinding class using the current Xamarin.Forms framework.
Creating a basic MultiBinding
The existing Binding […]
Read more

AUTHOR: CATEGORY: .Net, Blog

Essential .NET – Configuration in .NET Core (MSDN)

,
February 4, 2016 / No Comment

Note: Just prior to press time, Microsoft announced name changes to ASP.NET 5 and related stacks. ASP.NET 5 is now ASP.NET Core 1.0. Entity Framework (EF) 7 is now Entity Framework (EF) Core 1.0. The ASP.NET 5 and EF7 packages and namespaces will change, but otherwise the new nomenclature has no impact on the lessons of this article.
Those of […]
Read more

AUTHOR: CATEGORY: .Net, Blog, Headlines

Self-Hosted Integration Testing Of OData and WebApi

,
January 15, 2016 / No Comment

Full-stack testing of OData 4.0 and Web API 2.2 ASP.Net MVC controllers
Why Are Unit Tests of OData Web API Controllers Insufficient?
A common pattern for testing ASP.Net Web API 2 controller methods is to call them directly after mocking or setting up the Request and Configuration properties. When OData v4 is then added to this mix, more setup or […]
Read more

AUTHOR: CATEGORY: .Net, ASP.Net, Blog, C#

Essential .NET – C# Scripting (MSDN)

,
January 6, 2016 / No Comment

With the arrival of Visual Studio 2015 Update 1, henceforth Update 1, comes a new C# read-evaluate-print-loop (REPL), available as a new interactive window within Visual Studio 2015 or as a new command-line interface (CLI) called CSI. In addition to bringing the C# language to the command line, Update 1 also introduces a new C# scripting language, traditionally saved into […]
Read more

AUTHOR: CATEGORY: .Net, Blog, C#, Headlines

Display a Custom Tooltip at the Mouse Position on a Large WPF Control

,
December 16, 2015 / No Comment

In my work for an electric utility, we have a WPF based map control used to show the location of power lines, along with other devices such as transformers and points of service. We wanted to show a tooltip when a user clicks on one of the power lines to identify what is called the “feeder”, which essentially defines the […]
Read more

AUTHOR: CATEGORY: .Net, Blog, C#

Designing C# 7

,
December 9, 2015 / No Comment

“By the time you read this, the C# 7 design team will have been discussing, planning, experimenting and programming for about a year. In this installment, I’ll sample some of the ideas they’ve been exploring.
In reviewing, be mindful that at this time these are still ideas for what to include in C# 7. Some of the ideas the team […]
Read more

AUTHOR: CATEGORY: .Net, Blog, C#