title: How to format double value in XAML to remove zeros at the end, without scientific representation?
body: <p>I need to show double values like: 0.00008 in ListView. Unfortunatelly very often values are represented as exponential/scientific: 1E-8. I don't want users to see 1E-8 type values. I don't know and don't want to know decimal points precision of used doubles. I can't round doubles. I can solve this using c#:</p>
  
  <pre><code>string s = doubleValue.ToString("0.####################");  // gives what I need: 0,00008
  </code></pre>
  
  <p>How to do exactly same formatting using xaml?</p>
  
  <pre><code>&lt;ListView.View&gt;
    &lt;GridView AllowsColumnReorder="False"&gt;
      &lt;GridView.Columns&gt;
       &lt;GridViewColumn.CellTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;Border&gt;
                  &lt;Grid&gt;
                      &lt;TextBlock x:Name="textBlock1" Text="{Binding Path=Profit, StringFormat={{???}}" TextTrimming="CharacterEllipsis"  /&gt;
                  &lt;/Grid&gt;
              &lt;/Border&gt;
          &lt;/DataTemplate&gt;
      &lt;/GridViewColumn.CellTemplate&gt;
    &lt;/GridView.Columns&gt;
   &lt;/GridView&gt;
  &lt;/ListView.View&gt;
  </code></pre>
  
  <p>Or how to do it using c# to assign such formatting to textBlock1 in code behind?</p>