public ImageLayer(Guid id) { ID = id; DrawingImage = new ImageWithTouch { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, BackgroundColor = Color.Transparent }; AbsoluteLayout.SetLayoutFlags(this, AbsoluteLayoutFlags.All); AbsoluteLayout.SetLayoutBounds(this, new Rectangle(0f, 0f, 1f, 1f)); Padding = 5; HasShadow = false; OutlineColor = Color.Black; Content = DrawingImage; }
private Frame BuildDrawingFrame() { DrawingImage = new ImageWithTouch { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, BackgroundColor = Color.White, CurrentLineColor = Color.Black }; DrawingImage.SetBinding(ImageWithTouch.CurrentLineColorProperty, "CurrentLineColor"); var palleteFrame = new Frame { BackgroundColor = Color.White, Padding = 5, HasShadow = false, OutlineColor = Color.Black, Content = DrawingImage }; return(palleteFrame); }
private Frame BuildDrawingFrame() { DrawingImage = new ImageWithTouch { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, BackgroundColor = Color.White, CurrentLineColor = Color.Black }; DrawingImage.SetBinding(ImageWithTouch.CurrentLineColorProperty, "CurrentLineColor"); var palleteFrame = new Frame { BackgroundColor = Color.White, Padding = 5, HasShadow = false, OutlineColor = Color.Black, Content = DrawingImage }; return palleteFrame; }