<Window x:Class="DispatcherExamples.MyWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Use BeginInvoke" Height="300" Width="300"
    >
    <Grid>
      <StackPanel>
        <Button x:Name="useBeginInvokeButton" Content="Use BeginInvoke" />
      </StackPanel>
    </Grid>
</Window>
