/// <summary>
 /// Raise a UI Automation event for a TextBlock.
 /// </summary>
 /// <param name="textBlock">The TextBlock that has changed content.</param>
 private static void NotifyTextBlockChanged(TextBlock textBlock)
 {
     System.Windows.Automation.Peers.AutomationPeer peer = System.Windows.Automation.Peers.UIElementAutomationPeer.FromElement(textBlock);
     if (peer == null)
     {
         return;
     }
     peer.RaiseAutomationEvent(System.Windows.Automation.Peers.AutomationEvents.LiveRegionChanged);
 }
 protected internal System.Windows.Automation.Provider.IRawElementProviderSimple ProviderFromPeer(System.Windows.Automation.Peers.AutomationPeer peer)
 {
     return(default(System.Windows.Automation.Provider.IRawElementProviderSimple));
 }