diff options
Diffstat (limited to 'Xamarin.Forms.ControlGallery.WindowsUniversal/_58406EffectRenderer.cs')
-rw-r--r-- | Xamarin.Forms.ControlGallery.WindowsUniversal/_58406EffectRenderer.cs | 29 |
1 files changed, 29 insertions, 0 deletions
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 |