Wpf Backgroundworker
2021-02-03 03:15
标签:textbox ane control maximum thread partial nim ext main Wpf Backgroundworker 标签:textbox ane control maximum thread partial nim ext main 原文地址:https://www.cnblogs.com/Fred1987/p/11523444.htmlWindow x:Class="WpfApp53.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:WpfApp53"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
Grid>
Grid.RowDefinitions>
RowDefinition Height="*"/>
RowDefinition Height="Auto"/>
RowDefinition Height="Auto"/>
RowDefinition Height="Auto"/>
Grid.RowDefinitions>
ListBox Grid.Row="0" x:Name="listBox1"/>
ProgressBar Grid.Row="1" x:Name="progressBar1" Height="20" Margin="5"/>
StackPanel Grid.Row="2" Orientation="Horizontal" Margin="5">
TextBlock Text="Status: "/>
TextBlock x:Name="statusTextBox"/>
StackPanel>
Grid Grid.Row="3" Margin="10">
Grid.ColumnDefinitions>
ColumnDefinition Width="*"/>
ColumnDefinition Width="*"/>
Grid.ColumnDefinitions>
Button Grid.Column="0" x:Name="startBtn" Content="Start" Click="StartBtn_Click"/>
Button Grid.Column="1" x:Name="cancelBtn" Content="Cancel" Click="CancelBtn_Click"/>
Grid>
Grid>
Window>
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Linq;
5 using System.Text;
6 using System.Threading;
7 using System.Threading.Tasks;
8 using System.Windows;
9 using System.Windows.Controls;
10 using System.Windows.Data;
11 using System.Windows.Documents;
12 using System.Windows.Input;
13 using System.Windows.Media;
14 using System.Windows.Media.Imaging;
15 using System.Windows.Navigation;
16 using System.Windows.Shapes;
17
18 namespace WpfApp53
19 {
20 ///
上一篇:C# 表达式树分页扩展(三)
下一篇:C# 表达式树遍历(二)
文章标题:Wpf Backgroundworker
文章链接:http://soscw.com/index.php/essay/50232.html