标签:hello alignment res nts loaded grid content enter 语言
一直期待GUI,有了方便的GUI才能方便得到友好的应用.html,css,js有浏览器,c#的xaml有vs和图形视图,都是描述性语言.
自动给的代码不管,我也没能得到编辑完xaml后得到的源代码,或者C#干脆就是两个源代码吗?
xmal代码:
<Window x:Class="WPFHello.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Hello" Height="350" Width="525" Loaded="Window_Loaded">
<Grid Width="615" Height="346">
<Label Content="Please enter your name" Height="39" HorizontalAlignment="Left" Name="labela" VerticalAlignment="Top" Width="248" FontSize="20" Margin="115,95,0,0" />
<TextBox Height="23" HorizontalAlignment="Left" Margin="123,140,0,0" Name="textBox" VerticalAlignment="Top" Width="223" />
<Button Content="OK" Height="27" HorizontalAlignment="Left" Margin="196,177,0,0" Name="button1" VerticalAlignment="Top" Width="75" />
</Grid>
</Window>
在有ide的情况下也没啥好记的,就注意下vs的一些工具.
标签:hello alignment res nts loaded grid content enter 语言
原文地址:http://www.cnblogs.com/zhyusblogs/p/7768970.html