你的位置:首页 > 软件开发 > ASP.net > WPF学习之路(五) 实例:写字板

WPF学习之路(五) 实例:写字板

发布时间:2015-04-16 19:03:19
写字板实例一 MainWindow.xaml<Window x:Class="Wordpad01.MainWindow" ="http://schemas.microsoft.com/winfx/2006/xaml/presentat ...

WPF学习之路(五) 实例:写字板

 写字板实例一

 

MainWindow.xaml

<Window x:Class="Wordpad01.MainWindow"    ="http://schemas.microsoft.com/get='_blank'>winfx/2006/xaml/presentation"    ="http://schemas.microsoft.com/winfx/2006/xaml"    Title="WordPad1.0" Height="350" Width="525">  <Grid>    <Grid.RowDefinitions>      <RowDefinition Height="Auto" />      <RowDefinition Height="Auto" />      <RowDefinition Height="*" />    </Grid.RowDefinitions>    <Menu Grid.Row="0">      <MenuItem Header="File" />      <MenuItem Header="Copy" />      <MenuItem Header="Paste" />      <MenuItem Header="Cut" />      <MenuItem Header="Delete" />    </Menu>    <ToolBar Grid.Row="1">      <Button>        <Image Source="/Images/Copy.png" />      </Button>      <Button>        <Image Source="/Images/Paste.png" />      </Button>      <Button>        <Image Source="/Images/Cut.png" />      </Button>      <Button>        <Image Source="/Images/Delete.png" />      </Button>    </ToolBar>    <TextBox x:Name="text" Grid.Row="2" Text="WordPad" FontSize="30" HorizontalAlignment="Center" VerticalAlignment="Center" />  </Grid></Window>

原标题:WPF学习之路(五) 实例:写字板

关键词:wpf

wpf
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。