XAML code
& lt; Button x: Name="startupdate" Content="start upgrade Margin"="is 68.718, 5" Grid. Row="0" is the Grid. The Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Height="28" Width="88" IsEnabled="False" Click="Update_Click"/& gt;
C # code
private void Update_Click (object sender, RoutedEventArgs e)
{
Task task_Updata=https://bbs.csdn.net/topics/new Task (Senddata publishes the event);
Task_Updata. Start ();
//Senddata publishes the event ();
}
Task_Updata cannot be started
CodePudding user response:
There is no reason to not start, debugging, may be wrong
CodePudding user response:
Can't debugging, is to start, will start synchronization execution
CodePudding user response: