Category: XAML

Xamarin Dev Days Cranbury NJ

Infragistics is hosting Xamarin Dev Days on 19 Nov 2016 at our corporate office in Cranbury, NJ.

The very popular Xamarin Dev Days event sold out in one day, but there is a wait list and you can register here.

In addition to the standard curriculum, there will be an optional Bonus Content session given by Infragistics Engineers that wrote the Infragistics Xamarin Forms product.

Attend the fun day of learning with fellow developers and MVP’s at our excellent facility.

Have a great day,

Just a grain of sand on the world’s beaches

 

 

 

XAML Designer Brush Editor Fixed

Introduction

Since the release of Visual Studio 2015 Update 3, the VS XAML Designer pop up brush editor quit working in the Properties window when properties were sorted by name, or when properties of type brush were not in the Brush category.  This issue affected both Visual Studio and Blend for Visual Studio 2015.

Fix

Microsoft posted the fix in this cumulative servicing update:

Microsoft Visual Studio 2015 Update 3 (KB3165756)  

https://msdn.microsoft.com/en-us/library/mt752379.aspx

I have installed the update and tested various controls and use cases and can confirm the fix corrected the problem.

Close

Have a great day.

Just a grain of sand on the worlds beaches.

 

Xamarin Forms Bindable Picker v2

Introduction

I’ve updated the BindablePicker from a previous blog post, added new features and created a github reopro for the code.

Xamarin Forms is a new and cool API for quickly building native apps for IOS, Android, and Windows UWP in C#.

The Xamarin Forms API comes with a primitive Picker control that lacks typical bindable properties that developers expect a Picker (similar functionally that a desktop ComboBox has) to have.

Xamarin Forms makes it very easy for developers to extend the API, write your own custom controls, or write custom renderers for controls.

This BindablePIcker is the result of studying blog and forum posts and receiving feedback and bug report on the original version.

API Comparison

Xamarin Forms Picker API

  • SelectedIndex (bindable)
  • Items (not bindable)

Bindable Picker API

  • ItemsSource (bindable)
  • SelectedItem (bindable)
  • SelectedValue (bindable)
  • DisplayMemberPath
  • SelectedValuePath

New Features Added

  • Support for collections that implement INotityCollectionChanged like the ObservableCollection

Bug Fixed

The original BindablePicker did not correctly set the SelectedItem after the ItemsSource was refreshed at runtime.

Bindable Picker Source

This repro contains a project that demonstrates scenarios for using this control and it has the source for the BindablePicker.

https://github.com/Oceanware/XamarinFormsBindablePicker

Training Video – XAML Power Toys BindablePicker Scenarios

This short video explains three common use cases for the BindablePicker.

Close

Have a great day.

Just a grain of sand on the worlds beaches.

Visual Studio XAML Designer Needs Culture Support

Introduction

I just got back from a trip to Japan.  It’s amazing when you leave your country and discover how developers around the world are solving problems.

One problem that should be very easy to address is actual globalization and culture support in the XAML Designer.

I met with several customer that ship WPF products that support Japanese, Chinese, and English.  These customers use the XAML Designer to view their forms in all supported languages.  Currently it is a real pain to quickly display XAML forms in other languages.

One customer actually wrote their own localization system to get around the pain of using the current culture support in the Visual Studio 2015 XAML Designer to render their forms in multiple languages.

There is a very good article on Code Project that helps developers to be productive:  http://www.codeproject.com/Articles/35159/WPF-Localization-Using-RESX-Files

Solution

I’m proposing to the XAML Tools Team that they provide a ComboBox at the bottom of the XAML Designer that allows the developer to switch cultures and when they do, reload the designer using that culture.

Microsoft is a global company, it’s customers write software all over the world in many languages. The XAML Designer has an opportunity to come along side these developers and enable them to be more productive.  I hear the term “productive” in many Microsoft keynotes and presentations.  Thank you for helping international developers all over the world.

MicrosoftPlease

Close

Hope this helps someone and have a great day.

Just a grain of sand on the worlds beaches.