Skip to content
RyanAveryBSU edited this page Feb 11, 2017 · 4 revisions

Welcome to the Drawit wiki!

If you change ImageWithTouch to this:

using Xamarin.Forms;

namespace DrawIt
{
public class ImageWithTouch : Image 
{
	
	public static readonly BindableProperty CurrentLineColorProperty = 
		BindableProperty.Create(nameof(CurrentLineColor), typeof(Color), typeof(ImageWithTouch), Color.Default);

	public Color CurrentLineColor
	{
		get
		{
			return (Color)GetValue(CurrentLineColorProperty);
		}
		set
		{
			SetValue(CurrentLineColorProperty, value);
		}
	}
}
}

you will no longer get a depreciated code warning.

Clone this wiki locally