我尝试了,XamlPad只能做Page页面,而Window页面不能产生(改Page为Window),不知什么原因.
感觉越来越像HTML编程了,将来的WEB页面和WinForm页面都采用相同的标记进行统一!
下面是代码部分:
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="About WPF Study" Background="OrangeRed"
>
<StackPanel>
<Label FontWeight="Bold" FontSize="20" Foreground="White">
XUMH'S WPF STUDY DEMO (Version 3.0)
</Label>
<Label>Copyright 2006 XUMINGHUI @ ACCP,YanTai</Label>
<Label>所带班级及课程</Label>
<ListBox>
<ListBoxItem>AS130: C, HTML, SQLSERVER, JAVA</ListBoxItem>
<ListBoxItem>AS216,AS218: SQLSERVER, C#, WINFORM</ListBoxItem>
<ListBoxItem>AS306,AS308: XML, ASP.NET, PM</ListBoxItem>
</ListBox>
<StackPanel>
<Button MinWidth="75" Margin="10">Help</Button>
<Button MinWidth="75" Margin="10">OK</Button>
</StackPanel>
<StatusBar>愿我所有的学员都能找到理想的工作!</StatusBar>
</StackPanel>
</Page>
下面是截图,感觉还是很漂亮呀.xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="About WPF Study" Background="OrangeRed"
>
<StackPanel>
<Label FontWeight="Bold" FontSize="20" Foreground="White">
XUMH'S WPF STUDY DEMO (Version 3.0)
</Label>
<Label>Copyright 2006 XUMINGHUI @ ACCP,YanTai</Label>
<Label>所带班级及课程</Label>
<ListBox>
<ListBoxItem>AS130: C, HTML, SQLSERVER, JAVA</ListBoxItem>
<ListBoxItem>AS216,AS218: SQLSERVER, C#, WINFORM</ListBoxItem>
<ListBoxItem>AS306,AS308: XML, ASP.NET, PM</ListBoxItem>
</ListBox>
<StackPanel>
<Button MinWidth="75" Margin="10">Help</Button>
<Button MinWidth="75" Margin="10">OK</Button>
</StackPanel>
<StatusBar>愿我所有的学员都能找到理想的工作!</StatusBar>
</StackPanel>
</Page>