diff options
Diffstat (limited to 'Xamarin.Forms.ControlGallery.WindowsUniversal')
4 files changed, 32 insertions, 2 deletions
diff --git a/Xamarin.Forms.ControlGallery.WindowsUniversal/FocusEffect.cs b/Xamarin.Forms.ControlGallery.WindowsUniversal/FocusEffect.cs index 0d4eba05..73d6d907 100644 --- a/Xamarin.Forms.ControlGallery.WindowsUniversal/FocusEffect.cs +++ b/Xamarin.Forms.ControlGallery.WindowsUniversal/FocusEffect.cs @@ -10,7 +10,6 @@ using Xamarin.Forms; using Xamarin.Forms.ControlGallery.WindowsUniversal; using Xamarin.Forms.Platform.UWP; -[assembly: ResolutionGroupName("Xamarin")] [assembly: ExportEffect(typeof(FocusEffect), "FocusEffect")] namespace Xamarin.Forms.ControlGallery.WindowsUniversal { diff --git a/Xamarin.Forms.ControlGallery.WindowsUniversal/Properties/AssemblyInfo.cs b/Xamarin.Forms.ControlGallery.WindowsUniversal/Properties/AssemblyInfo.cs index b83ca10b..b29a1c4d 100644 --- a/Xamarin.Forms.ControlGallery.WindowsUniversal/Properties/AssemblyInfo.cs +++ b/Xamarin.Forms.ControlGallery.WindowsUniversal/Properties/AssemblyInfo.cs @@ -33,4 +33,5 @@ using Xamarin.Forms.Platform.UWP; [assembly: ComVisible(false)] // Deliberately broken image source and handler so we can test handling of image loading errors -[assembly: ExportImageSourceHandler(typeof(FailImageSource), typeof(BrokenImageSourceHandler))]
\ No newline at end of file +[assembly: ExportImageSourceHandler(typeof(FailImageSource), typeof(BrokenImageSourceHandler))] +[assembly: Xamarin.Forms.ResolutionGroupName (Xamarin.Forms.Controls.Issues.Effects.ResolutionGroupName)]
\ No newline at end of file diff --git a/Xamarin.Forms.ControlGallery.WindowsUniversal/Xamarin.Forms.ControlGallery.WindowsUniversal.csproj b/Xamarin.Forms.ControlGallery.WindowsUniversal/Xamarin.Forms.ControlGallery.WindowsUniversal.csproj index 666cbe76..0c34e5da 100644 --- a/Xamarin.Forms.ControlGallery.WindowsUniversal/Xamarin.Forms.ControlGallery.WindowsUniversal.csproj +++ b/Xamarin.Forms.ControlGallery.WindowsUniversal/Xamarin.Forms.ControlGallery.WindowsUniversal.csproj @@ -121,6 +121,7 @@ </ItemGroup> <ItemGroup> <Compile Include="_57114Renderer.cs" /> + <Compile Include="_58406EffectRenderer.cs" /> <Content Include="coffee.png" /> <Content Include="default.css" /> <Content Include="invalidimage.jpg" /> diff --git a/Xamarin.Forms.ControlGallery.WindowsUniversal/_58406EffectRenderer.cs b/Xamarin.Forms.ControlGallery.WindowsUniversal/_58406EffectRenderer.cs new file mode 100644 index 00000000..64a863b9 --- /dev/null +++ b/Xamarin.Forms.ControlGallery.WindowsUniversal/_58406EffectRenderer.cs @@ -0,0 +1,29 @@ +using System.Linq; +using Windows.UI.Xaml.Controls; +using Xamarin.Forms; +using Xamarin.Forms.Controls.Issues; +using Xamarin.Forms.Platform.UWP; + +[assembly: ExportEffect(typeof(Xamarin.Forms.ControlGallery.WindowsUniversal._58406EffectRenderer), Bugzilla58406.EffectName)] + +namespace Xamarin.Forms.ControlGallery.WindowsUniversal +{ + public class _58406EffectRenderer : PlatformEffect + { + protected override void OnAttached() + { + var textBlock = Control as TextBlock; + + if (textBlock == null) + { + return; + } + + textBlock.Text = new string(textBlock.Text.ToCharArray().Reverse().ToArray()); + } + + protected override void OnDetached() + { + } + } +}
\ No newline at end of file |