AsyncRelayCommand示例学习
1. 话不多说先上代码
完整代码如下
MainWindow.xaml
<Window x:Class="AsyncRelayCommandSample.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:AsyncRelayCommandSample"mc:Ignorable="d"Title="AsyncRelayCommand 示例" Height="700" Width="500"><Grid Margin="20"><Grid.RowDefinitions><