经过两次的安装,终于将Windows SDK安装进去,马上试验了XamlPad,很多xaml都跑不起来(不认Class节点:( ,最后修改出一个,先纪念一下:
显示的效果如下:
<Page xmlns="http://schemas.microsoft.com/winfx/avalon/2005"
xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005">
<StackPanel Orientation="Vertical">
<TextBlock DockPanel.Dock="Top"
Margin="10,10,10,10">Enter Text for Page 2</TextBlock>
<TextBox Name="txtBox"
Width="150"
Height="30"
Horizonta<TextBox AcceptsReturn='True' VerticalScrollBarVisibility='Visible'></TextBox>lAlignment="Left"
Margin="10,10,10,10"/>
<Button
Height="30"
Width="150"
HorizontalAlignment="Left"
Margin="10,10,10,10"
Content="Go To Page 2"/>
</StackPanel>
</Page>
xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005">
<StackPanel Orientation="Vertical">
<TextBlock DockPanel.Dock="Top"
Margin="10,10,10,10">Enter Text for Page 2</TextBlock>
<TextBox Name="txtBox"
Width="150"
Height="30"
Horizonta<TextBox AcceptsReturn='True' VerticalScrollBarVisibility='Visible'></TextBox>lAlignment="Left"
Margin="10,10,10,10"/>
<Button
Height="30"
Width="150"
HorizontalAlignment="Left"
Margin="10,10,10,10"
Content="Go To Page 2"/>
</StackPanel>
</Page>
显示的效果如下: