<Window x:Class="DispatcherExamples.UseVerifyAccess"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="DispatcherExamples" Height="300" Width="300"
    >
    <Grid>
      <StackPanel>
        <Button Content="Call from UI Thread" x:Name="fromUiButton" />
        <Button Content="Call from Wrong Thread" x:Name="fromWrongButton" />
        <TextBlock x:Name="result" TextWrapping="Wrap" />
      </StackPanel>
    </Grid>
</Window>
