Created
May 29, 2020 19:40
-
-
Save Char0394/532bc622fd8a7cfec45017e01422895a to your computer and use it in GitHub Desktop.
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
using System; | |
using Xamarin.Forms; | |
using Xamarin.Forms.Xaml; | |
namespace WhiteLabelingXFSample | |
{ | |
[ContentProperty("Source")] | |
public class ImageExtension : IMarkupExtension | |
{ | |
public string Source { get; set; } | |
public object ProvideValue(IServiceProvider serviceProvider) | |
{ | |
if (Source == null) | |
return null; | |
return $"{Source}{WhiteLabelingConfig.Instance.ImageSufixName}"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment