本例为一个WPF应用(.NET FrameWork)。
首先创建一个项目
双击xaml文件
双击xaml文件进入如下界面,开始编写代码。
效果如下:
付代码:
<Window x:Class="WpfDemoFW.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