public PhotoTakerControlsOverlayView(Context Context) : base(Context) { closeButton = new SvgButton("close_button.svg", "close_button_touched.svg", SKMatrix.MakeScale(0.8f, 0.8f), Context); takeButton = new SvgButton("take_button.svg", "take_button_touched.svg", SKMatrix.MakeScale(1.5f, 1.5f), Context); galleryButton = new SvgButton("gallery_button.svg", "gallery_button.svg", SKMatrix.MakeScale(2.5f, 2.5f), Context); sendButton = new SvgButton("send_button.svg", "send_button_touched.svg", SKMatrix.MakeScale(2.5f, 2.5f), Context); counterButton = new SvgButton("counter_button.svg", "counter_button.svg", SKMatrix.MakeScale(2.5f, 2.5f), Context); flashButton = new SvgButton("flash_button.svg", "flash_button_touched.svg", "flash_button_touched.svg", SKMatrix.MakeScale(0.8f, 0.8f), Context); cameraButton = new SvgButton("camera_button.svg", "camera_button_front.svg", "camera_button_front.svg", SKMatrix.MakeScale(2.5f, 2.5f), Context); flashButton.IsToggleButton = true; cameraButton.IsToggleButton = true; sendButton.IsVisible = false; counterButton.IsVisible = true; galleryButton.IsVisible = false; buttons.AddRange(new[] { closeButton, takeButton, galleryButton, cameraButton, counterButton, flashButton, sendButton }); PaintSurface += Handle_PaintSurface; SetBackgroundColor(graphics.Color.Transparent); Device.StartTimer(TimeSpan.FromMilliseconds(1000 / 60), () => { Invalidate(); return(timerActive); }); }
public MultiPhotoSelectioControlsOverlayView(Context context) : base(context) { PaintSurface += Handle_PaintSurface; SetBackgroundColor(graphics.Color.Transparent); paint.IsAntialias = true; closeButton = new SvgButton("close_button.svg", "close_button_touched.svg", SKMatrix.MakeScale(0.8f, 0.8f), context); trashButton = new SvgButton("trash_button.svg", "trash_button_touched.svg", SKMatrix.MakeScale(0.8f, 0.8f), context); sendButton = new SvgButton("send_button.svg", "send_button_touched.svg", SKMatrix.MakeScale(2.5f, 2.5f), context); buttons.AddRange(new[] { closeButton, trashButton, sendButton }); Device.StartTimer(TimeSpan.FromMilliseconds(1000 / 60), () => { Invalidate(); return(timerActive); }); }