Skip to content

Instantly share code, notes, and snippets.

@VincentH-Net
Last active December 26, 2015 08:09
Show Gist options
  • Save VincentH-Net/7120250 to your computer and use it in GitHub Desktop.
Save VincentH-Net/7120250 to your computer and use it in GitHub Desktop.
MvvmQuickCross data-binding support code for MultiImageView Xamarin Store component. Insert in MvvmQuickCross\ViewDataBindings.UI.cs in the UpdateView(View view, object value) method, directly below the comment that says: // TODO: Add cases here for specialized view types, as needed
// TODO: Add cases here for specialized view types, as needed
case "Macaw.UIComponents.MultiImageView":
{
if (value is Uri) value = ((Uri)value).AbsoluteUri;
var multiImageView = (Macaw.UIComponents.MultiImageView)view;
multiImageView.LoadImageList(value == null ? null : new[] { (string)value });
multiImageView.LoadImage();
}
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment