XAML文件内容
<Window x:Class="Wpf_demo1.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:Wpf_demo1"
mc:Ignorable="d"
Title="我爱学编程" Height="450" Width="800">
<!--x:Class="Wpf_demo1.MainWindow"这里的MainWindow名称与.xaml.cs上的public partial class 名称相同-->
<!--上述区域代表非客户区,正常来说只能修改Title的属性-->
<!--<Grid>
-->
<!--Grid区域代表客户区-->
<!-