<Window x:Class="WpfBackgroundWorker.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfBackgroundWorker"
        mc:Ignorable="d"
        Title="MainWindow" Height="125" Width="373">
    <Grid Margin="0,0,2,3">
        <Label x:Name="label" Content="زمان سیستم" HorizontalAlignment="Left" Margin="281,9,0,0" VerticalAlignment="Top"/>
        <TextBox x:Name="txtTime" HorizontalAlignment="Left" Height="23" Margin="21,12,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="245"/>
        <Button x:Name="btnStart" Content="شروع" HorizontalAlignment="Left" Margin="146,40,0,0" VerticalAlignment="Top" Width="120" Click="btnStart_Click"/>
        <Button x:Name="btnCancel" IsEnabled="False" Content="توقف" HorizontalAlignment="Left" Margin="21,40,0,0" VerticalAlignment="Top" Width="120" Click="btnCancel_Click"/>
        <ProgressBar Name="ProgressBar1" HorizontalAlignment="Left" Height="13" VerticalAlignment="Top" Width="245" Margin="21,65,0,0"/>

    </Grid>
</Window>
