Skip to content

Instantly share code, notes, and snippets.

@matsukurou
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matsukurou/148d9624ca096e24cefe to your computer and use it in GitHub Desktop.
Save matsukurou/148d9624ca096e24cefe to your computer and use it in GitHub Desktop.
Xamarin.FormsでImageをカスタマイズする(共通プロジェクト)
using System;
using Xamarin.Forms;
namespace CustomImage
{
/// <summary>
/// Imageを継承したImageカスタム用のビュー
/// </summary>
public class CustomImage : Image
{
/// <summary>
/// 画像に設定するカラーのプロパティ
/// </summary>
public Color ImageColor { get; set; }
public CustomImage()
{
ImageColor = Color.Transparent;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment