title: WPF TextBlock Contents not read by screen reader
body: <p>I have an application that contains custom WPF Windows that are used to show a popup similar to the Win32 MessageBox.</p>
  
  <p>As part of the requirements the application must be accessible through Screen Readers, and specifically JAWS.  I have had problems getting the screen reader to read out the text in the dialog, but it will read the values in the buttons ok.</p>
  
  <p>The code in the XAML is as follows</p>
  
  <pre><code>&lt;Window x:Class="UserControls.ModalDialog"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:converters="clr-namespace:UserControls.Converters"
           mc:Ignorable="d" 
           d:DesignHeight="160" d:DesignWidth="400" MinHeight="85" MinWidth="400" MaxWidth="400" SizeToContent="Height" Height="Auto"
          WindowStartupLocation="CenterScreen" ResizeMode="NoResize" Title="Popup Dialog"&gt;
  
  &lt;StackPanel Orientation="Vertical"&gt;
      &lt;StackPanel Orientation="Horizontal"&gt;
          &lt;StackPanel.Resources&gt;
              &lt;converters:DisplayIconToSystemIconConverter x:Key="DisplayIconToSystemIconConverter"/&gt;
          &lt;/StackPanel.Resources&gt;
          &lt;Image Source="{Binding IconType, Converter={StaticResource DisplayIconToSystemIconConverter}}" Height="32" Width="32" Margin="0,0,10,0"/&gt;
          &lt;TextBlock Name="TextBlock" Margin="20,10,0,0" TextWrapping="Wrap" Width="350" Foreground="DarkSlateGray" FontSize="10" FontWeight="Normal"&gt;
              &lt;Run Text="Some text in the dialog"/&gt;
          &lt;/TextBlock&gt;
      &lt;/StackPanel&gt;
  
      &lt;StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,10,5,0"&gt;
          &lt;Button Name="Option1Button" Content="OK" Padding="5,0,5,0" Margin="0,20,5,0" MinWidth="100" IsDefault="True" /&gt;
          &lt;Button Cancel Padding="5,0,5,0"  Margin="2,20,10,0" MinWidth="75" IsCancel="True" Visibility="Visible"/&gt;
      &lt;/StackPanel&gt;
  &lt;/StackPanel&gt;&lt;/Window&gt;
  </code></pre>
  
  <p>This code displays the popup correctly when called, but the screen reader only reads the title twice.</p>
  
  <p>If I add an empty ListView control into the Window as the next element after the TextBlock, the screen reader correctly reads the dialog text, despite the two controls not being explicitly linked, but I cannot have an extra control like this in the control as it will affect the layout.</p>
  
  <p>Is there a way to get the screen reader to correctly read the TextBlock text without having the list view in the control as well?</p>