From e2101e4ea4471ff682525f52d2e393830a03db10 Mon Sep 17 00:00:00 2001 From: Pieter Nijs Date: Tue, 29 Oct 2019 15:09:19 +0100 Subject: [PATCH] iOS: Frame with HasShadow set to true and BackgroundColor alpha < 1 casts shadow on all child views (#7518) * Updated renderer with additional ShadowView * Added buttons to test some behavior * ShadowLayer background color tweaks * Resolved flawed merge, restored _Template page * Apply suggestions from code review Co-Authored-By: Gerald Versluis * Added more descriptive issue Title * Updated Issue5108.xml's properties * Update Xamarin.Forms.Controls.Issues.Shared.projitems Fixed missing closing tags * Updated projitems * Removed eventhandlers from XAML * Update Issue5108.xaml.cs Added eventhandlers in code + surrounded code-behind with APP preprocessor directive to avoid issues when building for UITEST --- .../Issue5108.xaml | 31 ++++++++ .../Issue5108.xaml.cs | 62 +++++++++++++++ .../Xamarin.Forms.Controls.Issues.Shared.projitems | 18 ++++- .../_TemplateMarkup.xaml.cs | 4 +- .../Renderers/FrameRenderer.cs | 91 +++++++++++++++++++--- 5 files changed, 192 insertions(+), 14 deletions(-) create mode 100644 Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue5108.xaml create mode 100644 Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue5108.xaml.cs diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue5108.xaml b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue5108.xaml new file mode 100644 index 0000000..f97917d --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue5108.xaml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + +