title: Unable to clear TextDecoration in Xamarin Forms UWP App
body: <p>Using Xamarin Forms (version 2.5.0.121934), I'm working on an app targeting Android, iOS, and UWP. I need to add underlining and strikethrough to some text, which require custom renderers. For Android and iOS, everything is working fine, and on UWP, <em>applying</em> strikethrough or underline works correctly, but removing those decorations isn't working.</p>
  
  <p>Here's the entirety of the UWP renderer:</p>
  
  <pre><code>[assembly: ExportRenderer(typeof(EnhancedLabel), typeof(EnhancedLabelRenderer))]
  namespace myApp.UWP
  {
      public class EnhancedLabelRenderer : LabelRenderer
      {
          protected override void OnElementPropertyChanged(object sender, PropertyChangedEventArgs e)
          {
              base.OnElementPropertyChanged(sender, e);
  
              var strikethrough = ((EnhancedLabel)sender).Strikethrough;
              var underline = ((EnhancedLabel)sender).Underline;
  
              if (strikethrough &amp;&amp; underline)
              {
                  Control.TextDecorations = TextDecorations.Strikethrough | TextDecorations.Underline;
              }
              else if (strikethrough)
              {
                  Control.TextDecorations = TextDecorations.Strikethrough;
              }
              else if (underline)
              {
                  Control.TextDecorations = TextDecorations.Underline;
              }
              else
              {
                  Control.TextDecorations = TextDecorations.None;
              }
          }
      }
  }
  </code></pre>
  
  <p><code>EnhancedLabel</code> is a simple class that extends <code>Xamarin.Forms.Label</code> and adds the simple <code>BindableProperty</code> fields that specify strikethrough or underlining. </p>
  
  <p>The renderer is properly setting <code>TextDecorations.None</code>, but that isn't having an effect on the UI. I've worked through this in the debugger, and can actually see that the state of the <code>TextBlock</code> within the <code>ExtendedLabel</code> has <code>TextDecorations.None</code>, but the UI is still drawing it with underlining or strikethrough (essentially, either of those can be added, but neither can be removed).</p>
  
  <p>I've gone through the Xamarin documentation and looked at the bugs in Bugzilla, and haven't found any clues. Has any one else encountered this? Wondering if there's a UWP-specific call I need to make that I missed, or if using <code>TextDecorations</code> is the wrong way to apply the styles, or if I've actually stumbled across a bug.</p>