Last active
December 26, 2015 08:09
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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